Home
last modified time | relevance | path

Searched refs:combobox (Results 1 – 25 of 36) sorted by relevance

12

/external/chromium_org/chrome/browser/ui/views/autofill/
Dautofill_dialog_view_tester_views.cc45 views::Combobox* combobox = view_->ComboboxForType(type); in GetTextContentsOfInput() local
46 if (combobox) in GetTextContentsOfInput()
47 return combobox->model()->GetItemAt(combobox->selected_index()); in GetTextContentsOfInput()
62 views::Combobox* combobox = view_->ComboboxForType(type); in SetTextContentsOfInput() local
63 if (combobox) { in SetTextContentsOfInput()
64 if (!combobox->SelectValue(contents)) in SetTextContentsOfInput()
65 combobox->SetSelectedIndex(combobox->model()->GetDefaultIndex()); in SetTextContentsOfInput()
Dautofill_dialog_views.cc147 void SelectComboboxValueOrSetToDefault(views::Combobox* combobox, in SelectComboboxValueOrSetToDefault() argument
149 if (!combobox->SelectValue(value)) in SelectComboboxValueOrSetToDefault()
150 combobox->SetSelectedIndex(combobox->model()->GetDefaultIndex()); in SelectComboboxValueOrSetToDefault()
1708 void AutofillDialogViews::OnPerformAction(views::Combobox* combobox) { in OnPerformAction() argument
1709 DialogSection section = GroupForView(combobox)->section; in OnPerformAction()
1710 InputEditedOrActivated(TypeForCombobox(combobox), gfx::Rect(), true); in OnPerformAction()
1948 views::Combobox* combobox = new views::Combobox(input_model); in InitInputsView() local
1949 combobox->set_listener(this); in InitInputsView()
1950 comboboxes->insert(std::make_pair(input.type, combobox)); in InitInputsView()
1951 SelectComboboxValueOrSetToDefault(combobox, input.initial_value); in InitInputsView()
[all …]
/external/chromium_org/ui/views/examples/
Dtext_example.cc136 Combobox* combobox = new Combobox(model); in AddCombobox() local
137 combobox->SetSelectedIndex(0); in AddCombobox()
138 combobox->set_listener(this); in AddCombobox()
139 layout->AddView(combobox, kNumColumns - 1, 1); in AddCombobox()
140 return combobox; in AddCombobox()
201 void TextExample::OnPerformAction(Combobox* combobox) { in OnPerformAction() argument
203 if (combobox == h_align_cb_) { in OnPerformAction()
207 switch (combobox->selected_index()) { in OnPerformAction()
220 } else if (combobox == text_cb_) { in OnPerformAction()
221 switch (combobox->selected_index()) { in OnPerformAction()
[all …]
Dlabel_example.cc128 void LabelExample::OnPerformAction(Combobox* combobox) { in OnPerformAction() argument
129 if (combobox == alignment_) { in OnPerformAction()
131 static_cast<gfx::HorizontalAlignment>(combobox->selected_index())); in OnPerformAction()
132 } else if (combobox == elide_behavior_) { in OnPerformAction()
134 static_cast<gfx::ElideBehavior>(combobox->selected_index())); in OnPerformAction()
207 Combobox* combobox = new Combobox(model); in AddCombobox() local
208 combobox->SetSelectedIndex(0); in AddCombobox()
209 combobox->set_listener(this); in AddCombobox()
210 layout->AddView(combobox); in AddCombobox()
211 return combobox; in AddCombobox()
Dcombobox_example.cc47 void ComboboxExample::OnPerformAction(Combobox* combobox) { in OnPerformAction() argument
48 DCHECK_EQ(combobox_, combobox); in OnPerformAction()
50 combobox->selected_index())).c_str()); in OnPerformAction()
Dexamples_window.cc189 virtual void OnPerformAction(Combobox* combobox) OVERRIDE { in OnPerformAction() argument
190 DCHECK_EQ(combobox, combobox_); in OnPerformAction()
191 DCHECK(combobox->selected_index() < combobox_model_.GetItemCount()); in OnPerformAction()
194 combobox->selected_index())); in OnPerformAction()
Dcombobox_example.h41 virtual void OnPerformAction(Combobox* combobox) OVERRIDE;
Dlabel_example.h39 virtual void OnPerformAction(Combobox* combobox) OVERRIDE;
Dtext_example.h46 virtual void OnPerformAction(Combobox* combobox) OVERRIDE;
/external/chromium_org/ui/views/controls/combobox/
Dcombobox_unittest.cc160 virtual void OnPerformAction(Combobox* combobox) OVERRIDE { in OnPerformAction() argument
161 delete combobox; in OnPerformAction()
178 virtual void OnPerformAction(views::Combobox* combobox) OVERRIDE { in OnPerformAction() argument
179 perform_action_index_ = combobox->selected_index(); in OnPerformAction()
494 TestCombobox* combobox = new TestCombobox(&model); in TEST_F() local
496 combobox->set_listener(evil_listener.get()); in TEST_F()
497 ASSERT_NO_FATAL_FAILURE(combobox->ExecuteCommand(2)); in TEST_F()
502 combobox = new TestCombobox(&model); in TEST_F()
504 combobox->set_listener(evil_listener.get()); in TEST_F()
505 combobox->SetStyle(Combobox::STYLE_ACTION); in TEST_F()
[all …]
Dcombobox_listener.h25 virtual void OnPerformAction(Combobox* combobox) = 0;
/external/chromium_org/chrome/browser/ui/views/
Dsigned_certificate_timestamps_views.cc117 views::Combobox* combobox) { in OnPerformAction() argument
118 DCHECK_EQ(combobox, sct_selector_box_.get()); in OnPerformAction()
119 DCHECK_LT(combobox->selected_index(), sct_list_model_->GetItemCount()); in OnPerformAction()
120 ShowSCTInfo(combobox->selected_index()); in OnPerformAction()
Dsigned_certificate_timestamps_views.h53 virtual void OnPerformAction(views::Combobox* combobox) OVERRIDE;
/external/chromium_org/chrome/browser/ui/views/website_settings/
Dpermissions_bubble_view.cc199 virtual void OnPerformAction(views::Combobox* combobox) OVERRIDE;
276 PermissionCombobox* combobox = new PermissionCombobox( in PermissionsBubbleDelegateView() local
281 row_layout->AddView(combobox); in PermissionsBubbleDelegateView()
282 customize_comboboxes_.push_back(combobox); in PermissionsBubbleDelegateView()
405 views::Combobox* combobox) { in OnPerformAction() argument
406 if (combobox == allow_combobox_) { in OnPerformAction()
407 if (combobox->selected_index() == in OnPerformAction()
410 else if (combobox->selected_index() == in OnPerformAction()
/external/chromium_org/chrome/browser/resources/print_preview/
Dprint_preview.js1053 var combobox = document.querySelector('.layout-settings-select');
1054 if (combobox.value == 'portrait') {
1057 combobox.value = 'landscape';
1117 var combobox = document.querySelector('.margin-settings-select');
1118 if (margins == combobox.selectedIndex) {
1120 } else if (margins >= 0 && margins < combobox.length) {
1121 combobox.selectedIndex = margins;
/external/chromium_org/chrome/browser/ui/views/apps/app_info_dialog/
Dapp_info_summary_panel.h46 virtual void OnPerformAction(views::Combobox* combobox) OVERRIDE;
Dapp_info_summary_panel.cc308 void AppInfoSummaryPanel::OnPerformAction(views::Combobox* combobox) { in OnPerformAction() argument
309 if (combobox == launch_options_combobox_) { in OnPerformAction()
/external/chromium_org/chrome/browser/ui/views/bookmarks/
Dbookmark_bubble_view.h87 virtual void OnPerformAction(views::Combobox* combobox) OVERRIDE;
Dbookmark_bubble_view.cc319 void BookmarkBubbleView::OnPerformAction(views::Combobox* combobox) { in OnPerformAction() argument
320 if (combobox->selected_index() + 1 == parent_model_.GetItemCount()) { in OnPerformAction()
/external/chromium_org/ui/views/focus/
Dfocus_traversal_unittest.cc373 Combobox* combobox = new Combobox(&combobox_model_); in InitContentView() local
374 combobox->SetBounds(label_x + label_width + 5, y, 150, 30); in InitContentView()
375 combobox->set_id(kComboboxID); in InitContentView()
376 left_container_->AddChildView(combobox); in InitContentView()
/external/chromium_org/ui/views/
Dviews.gyp62 'controls/combobox/combobox.cc',
63 'controls/combobox/combobox.h',
64 'controls/combobox/combobox_listener.h',
506 'controls/combobox/combobox_unittest.cc',
/external/chromium_org/chrome/browser/ui/views/translate/
Dtranslate_bubble_view.h78 virtual void OnPerformAction(views::Combobox* combobox) OVERRIDE;
/external/chromium_org/chrome/browser/chromeos/options/
Dvpn_config_view.h63 virtual void OnPerformAction(views::Combobox* combobox) OVERRIDE;
Dwifi_config_view.h73 virtual void OnPerformAction(views::Combobox* combobox) OVERRIDE;
Dwifi_config_view.cc632 void WifiConfigView::OnPerformAction(views::Combobox* combobox) { in OnPerformAction() argument
633 if (combobox == security_combobox_) { in OnPerformAction()
641 } else if (combobox == user_cert_combobox_) { in OnPerformAction()
643 } else if (combobox == eap_method_combobox_) { in OnPerformAction()

12