summaryrefslogtreecommitdiffstats
path: root/views/window/window_delegate.h
diff options
context:
space:
mode:
authorctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-17 21:09:13 +0000
committerctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-17 21:09:13 +0000
commit6a04ac2239221e2b64fe256507f136533cd541d3 (patch)
tree2fcc7d3e1f028b0278e43e9b0618861e870577f7 /views/window/window_delegate.h
parent8ec7bcff01381b7555f4dd1acc7184623dff5fd9 (diff)
downloadchromium_src-6a04ac2239221e2b64fe256507f136533cd541d3.zip
chromium_src-6a04ac2239221e2b64fe256507f136533cd541d3.tar.gz
chromium_src-6a04ac2239221e2b64fe256507f136533cd541d3.tar.bz2
Provide accessibility support for Window_win.
TEST=Ensure that the About Chrome dialog has proper accessibility role. BUG=none Review URL: http://codereview.chromium.org/1838002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47454 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/window/window_delegate.h')
-rw-r--r--views/window/window_delegate.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/views/window/window_delegate.h b/views/window/window_delegate.h
index 30174c8..a5144d0 100644
--- a/views/window/window_delegate.h
+++ b/views/window/window_delegate.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -8,6 +8,7 @@
#include <string>
#include "base/scoped_ptr.h"
+#include "views/accessibility/accessibility_types.h"
class SkBitmap;
@@ -54,6 +55,14 @@ class WindowDelegate {
return false;
}
+ virtual AccessibilityTypes::Role accessible_role() const {
+ return AccessibilityTypes::ROLE_WINDOW;
+ }
+
+ virtual AccessibilityTypes::State accessible_state() const {
+ return 0;
+ }
+
// Returns the text to be displayed in the window title.
virtual std::wstring GetWindowTitle() const {
return L"";