summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/location_bar_view.h
diff options
context:
space:
mode:
authorklink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-22 00:20:30 +0000
committerklink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-22 00:20:30 +0000
commit0b02866defff24397abdb969e189165ce0ec78b3 (patch)
tree72807f8830393bbd24e6444f740197d0a8d3445e /chrome/browser/views/location_bar_view.h
parentb7091b93d3dffa52c990b79366e339c6be8558a7 (diff)
downloadchromium_src-0b02866defff24397abdb969e189165ce0ec78b3.zip
chromium_src-0b02866defff24397abdb969e189165ce0ec78b3.tar.gz
chromium_src-0b02866defff24397abdb969e189165ce0ec78b3.tar.bz2
Adds support and exposure of additional accessibility roles. Includes naming of the LocationBar, and correctly exposing MSAA/ARIA roles for Documents, Graphics, Menubars and Toolbars.
BUG=13291,19982 TEST=Assign @role menubar or toolbar to any dom element, and use Inspect32 (or similar tool) to see it exposed correctly. In the same way, <html> tag is exposed as role document. Review URL: http://codereview.chromium.org/174252 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24049 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/location_bar_view.h')
-rw-r--r--chrome/browser/views/location_bar_view.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/browser/views/location_bar_view.h b/chrome/browser/views/location_bar_view.h
index 3be0266..a127ab9 100644
--- a/chrome/browser/views/location_bar_view.h
+++ b/chrome/browser/views/location_bar_view.h
@@ -112,11 +112,11 @@ class LocationBarView : public LocationBar,
virtual SkBitmap GetFavIcon() const;
virtual std::wstring GetTitle() const;
- // Returns the accessibility role.
- bool GetAccessibleRole(AccessibilityTypes::Role* role);
-
// Overridden from views::View:
virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e);
+ virtual bool GetAccessibleName(std::wstring* name);
+ virtual bool GetAccessibleRole(AccessibilityTypes::Role* role);
+ virtual void SetAccessibleName(const std::wstring& name);
// Overridden from LocationBar:
virtual void ShowFirstRunBubble(bool use_OEM_bubble);
@@ -510,6 +510,11 @@ class LocationBarView : public LocationBar,
// The positioner that places the autocomplete popup.
AutocompletePopupPositioner* popup_positioner_;
+
+ // Storage of string needed for accessibility.
+ std::wstring accessible_name_;
+
+ DISALLOW_COPY_AND_ASSIGN(LocationBarView);
};
#endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H_