Home
last modified time | relevance | path

Searched refs:selected_index (Results 1 – 25 of 50) sorted by relevance

12

/external/chromium_org/ui/views/controls/combobox/
Dcombobox_unittest.cc167 perform_action_index_ = combobox->selected_index(); in OnPerformAction()
267 EXPECT_EQ(combobox_->selected_index() + 1, model_->GetItemCount()); in TEST_F()
269 EXPECT_EQ(combobox_->selected_index(), 0); in TEST_F()
272 EXPECT_EQ(combobox_->selected_index(), 2); in TEST_F()
274 EXPECT_EQ(combobox_->selected_index(), 2); in TEST_F()
276 EXPECT_EQ(combobox_->selected_index(), 2); in TEST_F()
278 EXPECT_EQ(combobox_->selected_index(), 1); in TEST_F()
280 EXPECT_EQ(combobox_->selected_index(), 0); in TEST_F()
282 EXPECT_EQ(combobox_->selected_index(), model_->GetItemCount() - 1); in TEST_F()
311 EXPECT_EQ(0, combobox_->selected_index()); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/sessions/
Dpersistent_tab_restore_service.cc155 void ScheduleCommandsForTab(const Tab& tab, int selected_index);
270 int selected_index = GetSelectedNavigationIndexToPersist(*tab); in Save() local
271 if (selected_index != -1) in Save()
272 ScheduleCommandsForTab(*tab, selected_index); in Save()
415 int selected_index = GetSelectedNavigationIndexToPersist(window.tabs[i]); in ScheduleCommandsForWindow() local
416 if (selected_index != -1) in ScheduleCommandsForWindow()
417 ScheduleCommandsForTab(window.tabs[i], selected_index); in ScheduleCommandsForWindow()
423 int selected_index) { in ScheduleCommandsForTab() argument
430 int first_index_to_persist = selected_index; in ScheduleCommandsForTab()
431 for (int i = selected_index - 1; i >= 0 && in ScheduleCommandsForTab()
[all …]
Dsession_restore.cc636 int selected_index = tab.current_navigation_index; in RestoreForeignTab() local
637 selected_index = std::max( in RestoreForeignTab()
639 std::min(selected_index, in RestoreForeignTab()
648 RecordAppLaunchForTab(browser, tab, selected_index); in RestoreForeignTab()
655 selected_index, in RestoreForeignTab()
667 selected_index, in RestoreForeignTab()
946 int selected_index) { in RecordAppLaunchForTab() argument
947 DCHECK(selected_index >= 0 && in RecordAppLaunchForTab()
948 selected_index < static_cast<int>(tab.navigations.size())); in RecordAppLaunchForTab()
949 GURL url = tab.navigations[selected_index].virtual_url(); in RecordAppLaunchForTab()
[all …]
Dsession_restore_android.cc36 int selected_index = session_tab.normalized_navigation_index(); in RestoreForeignSessionTab() local
38 selected_index, in RestoreForeignSessionTab()
/external/chromium_org/chrome/browser/omnibox/
Domnibox_log.cc12 size_t selected_index, in OmniboxLog() argument
24 selected_index(selected_index), in OmniboxLog()
Domnibox_log.h27 size_t selected_index,
53 size_t selected_index; member
/external/chromium_org/chrome/browser/android/
Dforeign_session_helper.cc53 int selected_index = session_tab.current_navigation_index; in ShouldSkipTab() local
54 if (selected_index < 0 || in ShouldSkipTab()
55 selected_index >= static_cast<int>(session_tab.navigations.size())) in ShouldSkipTab()
59 session_tab.navigations.at(selected_index); in ShouldSkipTab()
98 int selected_index = session_tab.current_navigation_index; in CopyTabsToJava() local
99 DCHECK(selected_index >= 0); in CopyTabsToJava()
100 DCHECK(selected_index < static_cast<int>(session_tab.navigations.size())); in CopyTabsToJava()
103 session_tab.navigations.at(selected_index); in CopyTabsToJava()
/external/chromium_org/chrome/browser/ui/tabs/
Dtab_strip_model_order_controller.cc88 int selected_index = tabstrip_->active_index(); in DetermineNewSelectedIndex() local
89 if (selected_index >= (tab_count - 1)) in DetermineNewSelectedIndex()
90 return selected_index - 1; in DetermineNewSelectedIndex()
92 return selected_index; in DetermineNewSelectedIndex()
/external/chromium_org/content/renderer/
Dexternal_popup_menu_browsertest.cc62 int selected_index = -1; in GetSelectedIndex() local
63 ExecuteJavaScriptAndReturnIntValue(script, &selected_index); in GetSelectedIndex()
64 return selected_index; in GetSelectedIndex()
Dexternal_popup_menu.h36 void DidSelectItem(int selected_index);
/external/chromium_org/chrome/browser/ui/webui/options/
Dstartup_pages_handler.cc141 int selected_index; in RemoveStartupPages() local
142 CHECK(args->GetInteger(i, &selected_index)); in RemoveStartupPages()
144 if (selected_index < 0 || in RemoveStartupPages()
145 selected_index >= startup_custom_pages_table_model_->RowCount()) { in RemoveStartupPages()
149 startup_custom_pages_table_model_->Remove(selected_index); in RemoveStartupPages()
/external/chromium_org/chrome/browser/chromeos/options/
Dwifi_config_view.cc240 switch (eap_method_combobox_->selected_index()) { in GetItemCount()
421 eap_method_combobox_->selected_index() == EAP_METHOD_INDEX_NONE) in CanLogin()
442 int index = user_cert_combobox_->selected_index(); in IsUserCertValid()
462 int index = eap_method_combobox_->selected_index(); in PassphraseActive()
465 return security_combobox_->selected_index() != SECURITY_INDEX_NONE; in PassphraseActive()
473 return eap_method_combobox_->selected_index() == EAP_METHOD_INDEX_TLS; in UserCertActive()
481 int index = eap_method_combobox_->selected_index(); in CaCertActive()
531 eap_method_combobox_->selected_index() == EAP_METHOD_INDEX_TLS; in RefreshEapFields()
553 security_combobox_->selected_index() == SECURITY_INDEX_NONE) { in RefreshShareCheckbox()
557 (eap_method_combobox_->selected_index() == EAP_METHOD_INDEX_TLS || in RefreshShareCheckbox()
[all …]
/external/chromium_org/chrome/browser/android/omnibox/
Dautocomplete_controller_android.h58 jint selected_index,
64 void DeleteSuggestion(JNIEnv* env, jobject obj, int selected_index);
68 jint selected_index,
Dautocomplete_controller_android.cc209 jint selected_index, in OnSuggestionSelected() argument
228 selected_index, in OnSuggestionSelected()
246 int selected_index) { in DeleteSuggestion() argument
248 const AutocompleteMatch& match = result.match_at(selected_index); in DeleteSuggestion()
257 jint selected_index, in UpdateMatchDestinationURL() argument
265 autocomplete_controller_->result().match_at(selected_index)); in UpdateMatchDestinationURL()
/external/chromium_org/ui/views/examples/
Dtext_example.cc208 switch (combobox->selected_index()) { in OnPerformAction()
222 switch (combobox->selected_index()) { in OnPerformAction()
237 switch (combobox->selected_index()) { in OnPerformAction()
250 switch (combobox->selected_index()) { in OnPerformAction()
Dcombobox_example.cc50 combobox->selected_index())).c_str()); in OnPerformAction()
Dexamples_window.cc190 DCHECK(combobox->selected_index() < combobox_model_.GetItemCount()); in OnPerformAction()
193 combobox->selected_index())); in OnPerformAction()
/external/chromium_org/chrome/browser/extensions/api/sessions/
Dsessions_api.h39 int selected_index);
57 int selected_index);
Dsessions_api.cc79 int selected_index, in CreateTabModelHelper() argument
98 tab_struct->selected = index == selected_index; in CreateTabModelHelper()
146 const TabRestoreService::Tab& tab, int session_id, int selected_index) { in CreateTabModel() argument
152 selected_index, in CreateTabModel()
241 int selected_index) { in CreateTabModel() argument
249 selected_index, in CreateTabModel()
/external/chromium_org/chrome/browser/ui/bookmarks/
Drecently_used_folders_combo_model.cc226 int selected_index) { in MaybeChangeParent() argument
227 if (items_[selected_index].type != Item::TYPE_NODE) in MaybeChangeParent()
230 const BookmarkNode* new_parent = GetNodeAt(selected_index); in MaybeChangeParent()
/external/chromium_org/ui/app_list/views/
Dsearch_result_list_view.cc79 void SearchResultListView::SetSelectedIndex(int selected_index) { in SetSelectedIndex() argument
80 if (selected_index_ == selected_index) in SetSelectedIndex()
89 selected_index_ = selected_index; in SetSelectedIndex()
/external/chromium_org/chrome/browser/ui/views/
Dsigned_certificate_timestamps_views.cc119 DCHECK_LT(combobox->selected_index(), sct_list_model_->GetItemCount()); in OnPerformAction()
120 ShowSCTInfo(combobox->selected_index()); in OnPerformAction()
/external/chromium_org/chrome/browser/ui/views/translate/
Dtranslate_bubble_view.cc362 int index = denial_combobox_->selected_index(); in HandleComboboxPerformAction()
381 source_language_combobox_->selected_index()) { in HandleComboboxPerformAction()
385 source_language_combobox_->selected_index()); in HandleComboboxPerformAction()
391 target_language_combobox_->selected_index()) { in HandleComboboxPerformAction()
395 target_language_combobox_->selected_index()); in HandleComboboxPerformAction()
/external/chromium_org/chrome/browser/search_engines/
Dtemplate_url_service_android.cc55 jint selected_index) { in SetUserSelectedDefaultSearchProvider() argument
58 size_t selected_index_size_t = static_cast<size_t>(selected_index); in SetUserSelectedDefaultSearchProvider()
Dtemplate_url_service_android.h26 jint selected_index);

12