summaryrefslogtreecommitdiffstats
path: root/views/views_delegate.h
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-05 17:16:06 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-05 17:16:06 +0000
commit9d701d83d90582e42ee8a1a0036affc0026ed7e2 (patch)
treede949e8d7c0298c026c9b24acd8fbacb3c042565 /views/views_delegate.h
parentfa8c4721f8c208098f1fa7abddbbafab1ac157e4 (diff)
downloadchromium_src-9d701d83d90582e42ee8a1a0036affc0026ed7e2.zip
chromium_src-9d701d83d90582e42ee8a1a0036affc0026ed7e2.tar.gz
chromium_src-9d701d83d90582e42ee8a1a0036affc0026ed7e2.tar.bz2
Add a new views delegate method for menu item accessibility notifications,
since GTK-based menus can't send a notification directly on a View*. The GTK implementation that sends these notifications is in: http://codereview.chromium.org/6538090/ BUG=none TEST=Manual testing on Chrome OS. Review URL: http://codereview.chromium.org/6623028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77046 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/views_delegate.h')
-rw-r--r--views/views_delegate.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/views/views_delegate.h b/views/views_delegate.h
index 98b734e..5c775c8 100644
--- a/views/views_delegate.h
+++ b/views/views_delegate.h
@@ -63,6 +63,15 @@ class ViewsDelegate {
virtual void NotifyAccessibilityEvent(
views::View* view, AccessibilityTypes::Event event_type) = 0;
+ // For accessibility, notify the delegate that a menu item was focused
+ // so that alternate feedback (speech / magnified text) can be provided.
+ virtual void NotifyMenuItemFocused(
+ const std::wstring& menu_name,
+ const std::wstring& menu_item_name,
+ int item_index,
+ int item_count,
+ bool has_submenu) = 0;
+
#if defined(OS_WIN)
// Retrieves the default window icon to use for windows if none is specified.
virtual HICON GetDefaultWindowIcon() const = 0;