diff options
Diffstat (limited to 'views/controls/combobox/combobox.h')
-rw-r--r-- | views/controls/combobox/combobox.h | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/views/controls/combobox/combobox.h b/views/controls/combobox/combobox.h index 1de06d6..c50fadd 100644 --- a/views/controls/combobox/combobox.h +++ b/views/controls/combobox/combobox.h @@ -58,20 +58,23 @@ class Combobox : public View { // Accessor for |model_|. ComboboxModel* model() const { return model_; } + // Set the accessible name of the combo box. + void SetAccessibleName(const string16& name); + // Overridden from View: - virtual gfx::Size GetPreferredSize(); - virtual void Layout(); - virtual void SetEnabled(bool enabled); - virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e); - virtual void OnPaintFocusBorder(gfx::Canvas* canvas); - virtual AccessibilityTypes::Role GetAccessibleRole() OVERRIDE; - virtual string16 GetAccessibleValue() OVERRIDE; + virtual gfx::Size GetPreferredSize() OVERRIDE; + virtual void Layout() OVERRIDE; + virtual void SetEnabled(bool enabled) OVERRIDE; + virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE; + virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; + virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; protected: - virtual void OnFocus(); + // Overridden from View: + virtual void OnFocus() OVERRIDE; virtual void ViewHierarchyChanged(bool is_add, View* parent, - View* child); - virtual std::string GetClassName() const; + View* child) OVERRIDE; + virtual std::string GetClassName() const OVERRIDE; // The object that actually implements the native combobox. NativeComboboxWrapper* native_wrapper_; @@ -86,6 +89,9 @@ class Combobox : public View { // The current selection. int selected_item_; + // The accessible name of the text field. + string16 accessible_name_; + DISALLOW_COPY_AND_ASSIGN(Combobox); }; |