Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4117)

Unified Diff: chrome/browser/views/location_bar_view.h

Issue 174252: Adds support and exposure of additional accessibility roles. Includes naming ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/views/location_bar_view.h
===================================================================
--- chrome/browser/views/location_bar_view.h (revision 23961)
+++ chrome/browser/views/location_bar_view.h (working copy)
@@ -112,11 +112,11 @@
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,9 @@
// The positioner that places the autocomplete popup.
AutocompletePopupPositioner* popup_positioner_;
+
+ // Storage of string needed for accessibility.
+ std::wstring accessible_name_;
};
sky 2009/08/21 21:33:39 Can you add DISALLOW_COPY_AND_ASSIGN while you're
#endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698