chrome/browser/chromeos/input_method/candidate_window_view.cc
// Computes the page index. For instance, if the page size is 9, and the
// cursor is pointing to 13th candidate, the page index will be 1 (2nd
// page, as the index is zero-origin). Returns -1 on error.
Computes the page index. For instance, if the page size is 9, and the
cursor is pointing to 13th candidate, the page index will be 1 (2nd
page, as the index is zero-origin). Returns -1 on error.
Computes the page index . For instance if the page size is 9 and the cursor is pointing to 13th candidate the page index will be 1 ( 2nd page as the index is zero - origin ) . Returns - 1 on error .
int ComputePageIndex(const InputMethodLookupTable& lookup_table) {
  if (lookup_table.page_size > 0)
    return lookup_table.cursor_absolute_index / lookup_table.page_size;
  return -1;
}
int ComputePageIndex ( const InputMethodLookupTable & lookup_table ) { if ( lookup_table . page_size > 0 ) return lookup_table . cursor_absolute_index / lookup_table . page_size ; return -1 ; }
Computes the page index.
Computes the page index .