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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 3117036: Update browser cache of accessibility tree on renderer sub-tree changes.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Updating from comments. Created 10 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/renderer_host/render_view_host.h" 5 #include "chrome/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestNotificationPermission, 833 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestNotificationPermission,
834 OnRequestNotificationPermission) 834 OnRequestNotificationPermission)
835 IPC_MESSAGE_HANDLER(ViewHostMsg_ExtensionRequest, OnExtensionRequest) 835 IPC_MESSAGE_HANDLER(ViewHostMsg_ExtensionRequest, OnExtensionRequest)
836 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionChanged, OnMsgSelectionChanged) 836 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionChanged, OnMsgSelectionChanged)
837 IPC_MESSAGE_HANDLER(ViewHostMsg_ExtensionPostMessage, 837 IPC_MESSAGE_HANDLER(ViewHostMsg_ExtensionPostMessage,
838 OnExtensionPostMessage) 838 OnExtensionPostMessage)
839 IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityFocusChange, 839 IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityFocusChange,
840 OnAccessibilityFocusChange) 840 OnAccessibilityFocusChange)
841 IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityObjectStateChange, 841 IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityObjectStateChange,
842 OnAccessibilityObjectStateChange) 842 OnAccessibilityObjectStateChange)
843 IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityObjectChildrenChange,
844 OnAccessibilityObjectChildrenChange)
843 IPC_MESSAGE_HANDLER(ViewHostMsg_OnCSSInserted, OnCSSInserted) 845 IPC_MESSAGE_HANDLER(ViewHostMsg_OnCSSInserted, OnCSSInserted)
844 IPC_MESSAGE_HANDLER(ViewHostMsg_PageContents, OnPageContents) 846 IPC_MESSAGE_HANDLER(ViewHostMsg_PageContents, OnPageContents)
845 IPC_MESSAGE_HANDLER(ViewHostMsg_PageTranslated, OnPageTranslated) 847 IPC_MESSAGE_HANDLER(ViewHostMsg_PageTranslated, OnPageTranslated)
846 IPC_MESSAGE_HANDLER(ViewHostMsg_ContentBlocked, OnContentBlocked) 848 IPC_MESSAGE_HANDLER(ViewHostMsg_ContentBlocked, OnContentBlocked)
847 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) 849 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed)
848 IPC_MESSAGE_HANDLER(ViewHostMsg_WebDatabaseAccessed, OnWebDatabaseAccessed) 850 IPC_MESSAGE_HANDLER(ViewHostMsg_WebDatabaseAccessed, OnWebDatabaseAccessed)
849 IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityTree, OnAccessibilityTree) 851 IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityTree, OnAccessibilityTree)
850 IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeChanged, OnMsgFocusedNodeChanged) 852 IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeChanged, OnMsgFocusedNodeChanged)
851 IPC_MESSAGE_HANDLER(ViewHostMsg_SetDisplayingPDFContent, 853 IPC_MESSAGE_HANDLER(ViewHostMsg_SetDisplayingPDFContent,
852 OnSetDisplayingPDFContent) 854 OnSetDisplayingPDFContent)
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1958 } 1960 }
1959 1961
1960 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) { 1962 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) {
1961 view()->OnAccessibilityFocusChange(acc_obj_id); 1963 view()->OnAccessibilityFocusChange(acc_obj_id);
1962 } 1964 }
1963 1965
1964 void RenderViewHost::OnAccessibilityObjectStateChange(int acc_obj_id) { 1966 void RenderViewHost::OnAccessibilityObjectStateChange(int acc_obj_id) {
1965 view()->OnAccessibilityObjectStateChange(acc_obj_id); 1967 view()->OnAccessibilityObjectStateChange(acc_obj_id);
1966 } 1968 }
1967 1969
1970 void RenderViewHost::OnAccessibilityObjectChildrenChange(
1971 const std::vector<webkit_glue::WebAccessibility>& acc_changes) {
1972 view()->OnAccessibilityObjectChildrenChange(acc_changes);
1973
1974 if (acc_changes.size() > 0) {
1975 NotificationService::current()->Notify(
1976 NotificationType::RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED,
1977 Source<RenderViewHost>(this),
1978 NotificationService::NoDetails());
1979 }
1980 }
1981
1968 void RenderViewHost::OnAccessibilityTree( 1982 void RenderViewHost::OnAccessibilityTree(
1969 const webkit_glue::WebAccessibility& tree) { 1983 const webkit_glue::WebAccessibility& tree) {
1970 if (view()) 1984 if (view())
1971 view()->UpdateAccessibilityTree(tree); 1985 view()->UpdateAccessibilityTree(tree);
1972 1986
1973 NotificationService::current()->Notify( 1987 NotificationService::current()->Notify(
1974 NotificationType::RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED, 1988 NotificationType::RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED,
1975 Source<RenderViewHost>(this), 1989 Source<RenderViewHost>(this),
1976 NotificationService::NoDetails()); 1990 NotificationService::NoDetails());
1977 } 1991 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
2030 RenderViewHostDelegate::ContentSettings* content_settings_delegate = 2044 RenderViewHostDelegate::ContentSettings* content_settings_delegate =
2031 delegate_->GetContentSettingsDelegate(); 2045 delegate_->GetContentSettingsDelegate();
2032 if (content_settings_delegate) 2046 if (content_settings_delegate)
2033 content_settings_delegate->OnWebDatabaseAccessed( 2047 content_settings_delegate->OnWebDatabaseAccessed(
2034 url, name, display_name, estimated_size, blocked_by_policy); 2048 url, name, display_name, estimated_size, blocked_by_policy);
2035 } 2049 }
2036 2050
2037 void RenderViewHost::OnSetDisplayingPDFContent() { 2051 void RenderViewHost::OnSetDisplayingPDFContent() {
2038 delegate_->SetDisplayingPDFContent(); 2052 delegate_->SetDisplayingPDFContent();
2039 } 2053 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/renderer_host/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698