diff options
Diffstat (limited to 'views/controls/menu/menu_item_view.h')
-rw-r--r-- | views/controls/menu/menu_item_view.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/views/controls/menu/menu_item_view.h b/views/controls/menu/menu_item_view.h index eb4f251..87ef1f6 100644 --- a/views/controls/menu/menu_item_view.h +++ b/views/controls/menu/menu_item_view.h @@ -83,6 +83,7 @@ class MenuItemView : public View { // Overridden from View: virtual bool GetTooltipText(const gfx::Point& p, std::wstring* tooltip); virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); + virtual bool GetAccessibleState(AccessibilityTypes::State* state); // Returns the preferred height of menu items. This is only valid when the // menu is about to be shown. @@ -183,13 +184,14 @@ class MenuItemView : public View { MenuItemView* GetParentMenuItem() const { return parent_menu_item_; } // Sets the title - void SetTitle(const std::wstring& title) { - title_ = title; - } + void SetTitle(const std::wstring& title); // Returns the title. const std::wstring& GetTitle() const { return title_; } + // Returns the type of this menu. + const Type& GetType() { return type_; } + // Sets whether this item is selected. This is invoked as the user moves // the mouse around the menu while open. void SetSelected(bool selected); |