Home
last modified time | relevance | path

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

123

/external/chromium_org/ui/views/controls/combobox/
Dcombobox_unittest.cc247 EXPECT_EQ(combobox_->selected_index() + 1, model_->GetItemCount()); in TEST_F()
249 EXPECT_EQ(combobox_->selected_index(), 0); in TEST_F()
252 EXPECT_EQ(combobox_->selected_index(), 2); in TEST_F()
254 EXPECT_EQ(combobox_->selected_index(), 2); in TEST_F()
256 EXPECT_EQ(combobox_->selected_index(), 2); in TEST_F()
258 EXPECT_EQ(combobox_->selected_index(), 1); in TEST_F()
260 EXPECT_EQ(combobox_->selected_index(), 0); in TEST_F()
262 EXPECT_EQ(combobox_->selected_index(), model_->GetItemCount() - 1); in TEST_F()
291 EXPECT_EQ(0, combobox_->selected_index()); in TEST_F()
293 EXPECT_EQ(1, 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.cc606 int selected_index = tab.current_navigation_index; in RestoreForeignTab() local
607 selected_index = std::max( in RestoreForeignTab()
609 std::min(selected_index, in RestoreForeignTab()
618 RecordAppLaunchForTab(browser, tab, selected_index); in RestoreForeignTab()
625 selected_index, in RestoreForeignTab()
637 selected_index, in RestoreForeignTab()
949 int selected_index) { in RecordAppLaunchForTab() argument
950 DCHECK(selected_index >= 0 && in RecordAppLaunchForTab()
951 selected_index < static_cast<int>(tab.navigations.size())); in RecordAppLaunchForTab()
952 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.cc11 size_t selected_index, in OmniboxLog() argument
21 selected_index(selected_index), in OmniboxLog()
Domnibox_log.h25 size_t selected_index,
45 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/chrome/browser/ui/webui/options/
Dbrowser_options_handler.cc282 int selected_index = -1; in SetDefaultSearchEngine() local
283 if (!ExtractIntegerValue(args, &selected_index)) { in SetDefaultSearchEngine()
290 if (selected_index >= 0 && in SetDefaultSearchEngine()
291 selected_index < static_cast<int>(model_urls.size())) in SetDefaultSearchEngine()
292 template_url_model_->SetDefaultSearchProvider(model_urls[selected_index]); in SetDefaultSearchEngine()
364 int selected_index; in RemoveStartupPages() local
365 base::StringToInt(string_value, &selected_index); in RemoveStartupPages()
366 if (selected_index < 0 || in RemoveStartupPages()
367 selected_index >= startup_custom_pages_table_model_->RowCount()) { in RemoveStartupPages()
371 startup_custom_pages_table_model_->Remove(selected_index); in RemoveStartupPages()
/external/chromium/chrome/browser/sessions/
Dtab_restore_service.cc463 int selected_index = GetSelectedNavigationIndexToPersist(*tab); in Save() local
464 if (selected_index != -1) in Save()
465 ScheduleCommandsForTab(*tab, selected_index); in Save()
587 int selected_index = GetSelectedNavigationIndexToPersist(window.tabs[i]); in ScheduleCommandsForWindow() local
588 if (selected_index != -1) in ScheduleCommandsForWindow()
589 ScheduleCommandsForTab(window.tabs[i], selected_index); in ScheduleCommandsForWindow()
594 int selected_index) { in ScheduleCommandsForTab() argument
600 int first_index_to_persist = selected_index; in ScheduleCommandsForTab()
601 for (int i = selected_index - 1; i >= 0 && in ScheduleCommandsForTab()
689 int selected_index = tab.current_navigation_index; in GetSelectedNavigationIndexToPersist() local
[all …]
/external/chromium/chrome/browser/tabs/
Dtab_strip_model_order_controller.cc102 int selected_index = tabstrip_->active_index(); in DetermineNewSelectedIndex() local
103 if (selected_index >= (tab_count - 1)) in DetermineNewSelectedIndex()
104 return selected_index - 1; in DetermineNewSelectedIndex()
106 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()
/external/chromium_org/chrome/browser/ui/webui/options/
Dstartup_pages_handler.cc140 int selected_index; in RemoveStartupPages() local
141 CHECK(args->GetInteger(i, &selected_index)); in RemoveStartupPages()
143 if (selected_index < 0 || in RemoveStartupPages()
144 selected_index >= startup_custom_pages_table_model_->RowCount()) { in RemoveStartupPages()
148 startup_custom_pages_table_model_->Remove(selected_index); in RemoveStartupPages()
/external/chromium_org/chrome/browser/chromeos/options/
Dwifi_config_view.cc238 switch (eap_method_combobox_->selected_index()) { in GetItemCount()
415 eap_method_combobox_->selected_index() == EAP_METHOD_INDEX_NONE) in CanLogin()
436 int index = user_cert_combobox_->selected_index(); in IsUserCertValid()
456 int index = eap_method_combobox_->selected_index(); in PassphraseActive()
459 return security_combobox_->selected_index() != SECURITY_INDEX_NONE; in PassphraseActive()
467 return eap_method_combobox_->selected_index() == EAP_METHOD_INDEX_TLS; in UserCertActive()
475 int index = eap_method_combobox_->selected_index(); in CaCertActive()
525 eap_method_combobox_->selected_index() == EAP_METHOD_INDEX_TLS; in RefreshEapFields()
547 security_combobox_->selected_index() == SECURITY_INDEX_NONE) { in RefreshShareCheckbox()
551 (eap_method_combobox_->selected_index() == EAP_METHOD_INDEX_TLS || in RefreshShareCheckbox()
[all …]
/external/chromium/chrome/browser/ui/webui/
Dforeign_session_handler.cc201 int selected_index = tab.current_navigation_index; in SessionTabToValue() local
202 selected_index = std::max( in SessionTabToValue()
204 std::min(selected_index, in SessionTabToValue()
207 tab.navigations.at(selected_index); in SessionTabToValue()
/external/chromium/chrome/browser/autocomplete/
Dautocomplete.h733 size_t selected_index, in AutocompleteLog()
738 selected_index(selected_index), in AutocompleteLog()
747 size_t selected_index; member
/external/chromium_org/ui/app_list/views/
Dsearch_result_list_view.cc54 void SearchResultListView::SetSelectedIndex(int selected_index) { in SetSelectedIndex() argument
55 if (selected_index_ == selected_index) in SetSelectedIndex()
64 selected_index_ = selected_index; in SetSelectedIndex()
/external/chromium_org/ui/views/examples/
Dtext_example.cc262 switch (combobox->selected_index()) { in OnSelectedIndexChanged()
276 switch (combobox->selected_index()) { in OnSelectedIndexChanged()
294 switch (combobox->selected_index()) { in OnSelectedIndexChanged()
314 switch (combobox->selected_index()) { in OnSelectedIndexChanged()
Dexamples_window.cc120 DCHECK(combobox->selected_index() < combobox_model_.GetItemCount()); in OnSelectedIndexChanged()
123 combobox->selected_index())); in OnSelectedIndexChanged()
Dexamples_window_with_content.cc124 DCHECK(combobox->selected_index() < combobox_model_.GetItemCount()); in OnSelectedIndexChanged()
127 combobox->selected_index())); in OnSelectedIndexChanged()
Dcombobox_example.cc50 combobox->selected_index())).c_str()); in OnSelectedIndexChanged()
/external/chromium_org/chrome/browser/extensions/api/sessions/
Dsessions_api.h38 int selected_index);
56 int selected_index);
Dsessions_api.cc76 int selected_index, in CreateTabModelHelper() argument
95 tab_struct->selected = index == selected_index; in CreateTabModelHelper()
143 const TabRestoreService::Tab& tab, int session_id, int selected_index) { in CreateTabModel() argument
149 selected_index, in CreateTabModel()
229 int selected_index) { in CreateTabModel() argument
236 selected_index, in CreateTabModel()
/external/chromium_org/chrome/browser/ui/bookmarks/
Drecently_used_folders_combo_model.cc224 int selected_index) { in MaybeChangeParent() argument
225 if (items_[selected_index].type != Item::TYPE_NODE) in MaybeChangeParent()
228 const BookmarkNode* new_parent = GetNodeAt(selected_index); in MaybeChangeParent()
/external/chromium_org/chrome/browser/search_engines/
Dtemplate_url_service_android.cc52 jint selected_index) { in SetDefaultSearchProvider() argument
55 size_t selected_index_size_t = static_cast<size_t>(selected_index); in SetDefaultSearchProvider()

123