summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/render_view_host.cc
diff options
context:
space:
mode:
authorctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 00:23:42 +0000
committerctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 00:23:42 +0000
commit9892b477aaf5bc739bc1a896052266ad13c79ac0 (patch)
treede4c76231e3c3ff69e2ce82c848f08a1023d4f93 /chrome/browser/renderer_host/render_view_host.cc
parentd83a560943d1fdfcf9ec46ea001248a46e6148a7 (diff)
downloadchromium_src-9892b477aaf5bc739bc1a896052266ad13c79ac0.zip
chromium_src-9892b477aaf5bc739bc1a896052266ad13c79ac0.tar.gz
chromium_src-9892b477aaf5bc739bc1a896052266ad13c79ac0.tar.bz2
Add support for webkit ValueChanged accessibility notification.
BUG=13291 TEST=interactive_ui_tests:AccessibilityWinBrowserTest.TestNotification* Review URL: http://codereview.chromium.org/3341021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59589 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/render_view_host.cc')
-rw-r--r--chrome/browser/renderer_host/render_view_host.cc25
1 files changed, 6 insertions, 19 deletions
diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc
index 37548bf..b973cd4 100644
--- a/chrome/browser/renderer_host/render_view_host.cc
+++ b/chrome/browser/renderer_host/render_view_host.cc
@@ -847,10 +847,8 @@ void RenderViewHost::OnMessageReceived(const IPC::Message& msg) {
OnExtensionPostMessage)
IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityFocusChange,
OnAccessibilityFocusChange)
- IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityObjectStateChange,
- OnAccessibilityObjectStateChange)
- IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityObjectChildrenChange,
- OnAccessibilityObjectChildrenChange)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityNotifications,
+ OnAccessibilityNotifications)
IPC_MESSAGE_HANDLER(ViewHostMsg_OnCSSInserted, OnCSSInserted)
IPC_MESSAGE_HANDLER(ViewHostMsg_PageContents, OnPageContents)
IPC_MESSAGE_HANDLER(ViewHostMsg_PageTranslated, OnPageTranslated)
@@ -1979,23 +1977,12 @@ void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) {
view()->OnAccessibilityFocusChange(acc_obj_id);
}
-void RenderViewHost::OnAccessibilityObjectStateChange(
- const webkit_glue::WebAccessibility& acc_obj) {
+void RenderViewHost::OnAccessibilityNotifications(
+ const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params) {
if (view())
- view()->OnAccessibilityObjectStateChange(acc_obj);
+ view()->OnAccessibilityNotifications(params);
- NotificationService::current()->Notify(
- NotificationType::RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED,
- Source<RenderViewHost>(this),
- NotificationService::NoDetails());
-}
-
-void RenderViewHost::OnAccessibilityObjectChildrenChange(
- const std::vector<webkit_glue::WebAccessibility>& acc_changes) {
- if (view())
- view()->OnAccessibilityObjectChildrenChange(acc_changes);
-
- if (acc_changes.size() > 0) {
+ if (params.size() > 0) {
NotificationService::current()->Notify(
NotificationType::RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED,
Source<RenderViewHost>(this),