Lines Matching refs:combobox
50 #include "ui/views/controls/combobox/combobox.h"
147 void SelectComboboxValueOrSetToDefault(views::Combobox* combobox,
149 if (!combobox->SelectValue(value))
150 combobox->SetSelectedIndex(combobox->model()->GetDefaultIndex());
446 // Gets either the Combobox or ExpandingTextfield that is an ancestor (including
449 if (view->GetClassName() == views::Combobox::kViewClassName)
1708 void AutofillDialogViews::OnPerformAction(views::Combobox* combobox) {
1709 DialogSection section = GroupForView(combobox)->section;
1710 InputEditedOrActivated(TypeForCombobox(combobox), gfx::Rect(), true);
1711 // NOTE: |combobox| may have been deleted.
1886 // Inputs container (manual inputs + combobox).
1948 views::Combobox* combobox = new views::Combobox(input_model);
1949 combobox->set_listener(this);
1950 comboboxes->insert(std::make_pair(input.type, combobox));
1951 SelectComboboxValueOrSetToDefault(combobox, input.initial_value);
1952 view_to_add.reset(combobox);
2029 else if (focused->GetClassName() == views::Combobox::kViewClassName)
2030 type = TypeForCombobox(static_cast<views::Combobox*>(focused));
2059 views::Combobox* combobox = combo_mapping->second;
2060 if (combobox->selected_index() == combobox->model()->GetDefaultIndex())
2061 SelectComboboxValueOrSetToDefault(combobox, input.initial_value);
2149 bool show_above = view->GetClassName() == views::Combobox::kViewClassName;
2217 views::Combobox* combobox = iter->second;
2219 combobox->model()->GetItemAt(combobox->selected_index());
2259 views::Combobox* combobox = ComboboxForType(type);
2263 if (!combobox && !textfield)
2266 DCHECK_NE(!!combobox, !!textfield);
2268 GroupForView(combobox);
2271 combobox->model()->GetItemAt(combobox->selected_index());
2417 views::Combobox* AutofillDialogViews::ComboboxForType(
2434 const views::Combobox* combobox) const {
2443 if (combo_it->second == combobox)
2493 views::Combobox* combobox = combo_mapping->second;
2494 combobox->SetEnabled(editable);