diff options
Diffstat (limited to 'chrome/views/widget')
-rw-r--r-- | chrome/views/widget/root_view.cc | 7 | ||||
-rw-r--r-- | chrome/views/widget/root_view.h | 16 | ||||
-rw-r--r-- | chrome/views/widget/root_view_win.cc | 8 |
3 files changed, 11 insertions, 20 deletions
diff --git a/chrome/views/widget/root_view.cc b/chrome/views/widget/root_view.cc index 6158a10..f8135bb 100644 --- a/chrome/views/widget/root_view.cc +++ b/chrome/views/widget/root_view.cc @@ -960,6 +960,13 @@ void RootView::ClearPaintRect() { // ///////////////////////////////////////////////////////////////////////////// +bool RootView::GetAccessibleRole(AccessibilityTypes::Role* role) { + DCHECK(role); + + *role = AccessibilityTypes::ROLE_APPLICATION; + return true; +} + bool RootView::GetAccessibleName(std::wstring* name) { if (!accessible_name_.empty()) { *name = accessible_name_; diff --git a/chrome/views/widget/root_view.h b/chrome/views/widget/root_view.h index 0eaaa1d..1232af5 100644 --- a/chrome/views/widget/root_view.h +++ b/chrome/views/widget/root_view.h @@ -188,18 +188,10 @@ class RootView : public View, void OnPaint(GdkEventExpose* event); #endif -#if defined(OS_WIN) - // Returns the MSAA role of the current view. The role is what assistive - // technologies (ATs) use to determine what behavior to expect from a given - // control. - bool GetAccessibleRole(VARIANT* role); -#endif - - // Returns a brief, identifying string, containing a unique, readable name. - bool GetAccessibleName(std::wstring* name); - - // Assigns an accessible string name. - void SetAccessibleName(const std::wstring& name); + // Accessibility accessors/mutators, overridden from View. + virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); + virtual bool GetAccessibleName(std::wstring* name); + virtual void SetAccessibleName(const std::wstring& name); protected: diff --git a/chrome/views/widget/root_view_win.cc b/chrome/views/widget/root_view_win.cc index 89f198e..1beff61 100644 --- a/chrome/views/widget/root_view_win.cc +++ b/chrome/views/widget/root_view_win.cc @@ -49,14 +49,6 @@ void RootView::OnPaint(HWND hwnd) { } } -bool RootView::GetAccessibleRole(VARIANT* role) { - DCHECK(role); - - role->vt = VT_I4; - role->lVal = ROLE_SYSTEM_APPLICATION; - return true; -} - void RootView::StartDragForViewFromMouseEvent( View* view, IDataObject* data, |