Lines Matching defs:Combobox
5 #include "ui/views/controls/combobox/combobox.h"
28 #include "ui/views/controls/combobox/combobox_listener.h"
50 // Limit how small a combobox can be.
53 // Size of the combobox arrow margins
225 const char Combobox::kViewClassName[] = "views/Combobox";
228 // Combobox, public:
230 Combobox::Combobox(ui::ComboboxModel* model)
274 Combobox::~Combobox() {
279 const gfx::FontList& Combobox::GetFontList() {
284 void Combobox::SetStyle(Style style) {
297 void Combobox::ModelChanged() {
303 void Combobox::SetSelectedIndex(int index) {
311 bool Combobox::SelectValue(const base::string16& value) {
324 void Combobox::SetAccessibleName(const base::string16& name) {
328 void Combobox::SetInvalid(bool invalid) {
338 ui::TextInputClient* Combobox::GetTextInputClient() {
344 void Combobox::Layout() {
370 bool Combobox::IsItemChecked(int id) const {
374 bool Combobox::IsCommandEnabled(int id) const {
378 void Combobox::ExecuteCommand(int id) {
383 bool Combobox::GetAccelerator(int id, ui::Accelerator* accel) const {
387 int Combobox::GetRowCount() {
391 int Combobox::GetSelectedRow() {
395 void Combobox::SetSelectedRow(int row) {
402 base::string16 Combobox::GetTextForRow(int row) {
408 // Combobox, View overrides:
410 gfx::Size Combobox::GetPreferredSize() const {
424 const char* Combobox::GetClassName() const {
428 bool Combobox::SkipDefaultKeyEventProcessing(const ui::KeyEvent& e) {
437 bool Combobox::OnKeyPressed(const ui::KeyEvent& e) {
516 bool Combobox::OnKeyReleased(const ui::KeyEvent& e) {
526 void Combobox::OnPaint(gfx::Canvas* canvas) {
542 void Combobox::OnFocus() {
549 void Combobox::OnBlur() {
557 void Combobox::GetAccessibleState(ui::AXViewState* state) {
565 void Combobox::OnComboboxModelChanged(ui::ComboboxModel* model) {
570 void Combobox::ButtonPressed(Button* sender, const ui::Event& event) {
595 void Combobox::UpdateFromModel() {
596 const gfx::FontList& font_list = Combobox::GetFontList();
600 dropdown_list_menu_runner_.reset(new MenuRunner(menu_, MenuRunner::COMBOBOX));
633 void Combobox::UpdateBorder() {
642 void Combobox::AdjustBoundsForRTLUI(gfx::Rect* rect) const {
646 void Combobox::PaintText(gfx::Canvas* canvas) {
669 const gfx::FontList& font_list = Combobox::GetFontList();
700 void Combobox::PaintButtons(gfx::Canvas* canvas) {
757 void Combobox::ShowDropDownMenu(ui::MenuSourceType source_type) {
761 // Extend the menu to the width of the combobox.
771 // with the border of the combobox.
807 void Combobox::OnPerformAction() {
811 // This combobox may be deleted by the listener.
812 base::WeakPtr<Combobox> weak_ptr = weak_ptr_factory_.GetWeakPtr();
820 int Combobox::MenuCommandToIndex(int menu_command_id) const {
822 // Revert menu ID offset to map back to combobox model.
828 int Combobox::GetDisclosureArrowLeftPadding() const {
839 int Combobox::GetDisclosureArrowRightPadding() const {
850 gfx::Size Combobox::ArrowSize() const {