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

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

Issue 3250014: Update browser accessibility tree on a renderer accessibility object state ch... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix lint errors 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 1950 matching lines...) Expand 10 before | Expand all | Expand 10 after
1961 if (process()->profile()->GetExtensionMessageService()) { 1961 if (process()->profile()->GetExtensionMessageService()) {
1962 process()->profile()->GetExtensionMessageService()-> 1962 process()->profile()->GetExtensionMessageService()->
1963 PostMessageFromRenderer(port_id, message); 1963 PostMessageFromRenderer(port_id, message);
1964 } 1964 }
1965 } 1965 }
1966 1966
1967 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) { 1967 void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) {
1968 view()->OnAccessibilityFocusChange(acc_obj_id); 1968 view()->OnAccessibilityFocusChange(acc_obj_id);
1969 } 1969 }
1970 1970
1971 void RenderViewHost::OnAccessibilityObjectStateChange(int acc_obj_id) { 1971 void RenderViewHost::OnAccessibilityObjectStateChange(
1972 view()->OnAccessibilityObjectStateChange(acc_obj_id); 1972 const webkit_glue::WebAccessibility& acc_obj) {
1973 view()->OnAccessibilityObjectStateChange(acc_obj);
1974
1975 NotificationService::current()->Notify(
1976 NotificationType::RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED,
1977 Source<RenderViewHost>(this),
1978 NotificationService::NoDetails());
1973 } 1979 }
1974 1980
1975 void RenderViewHost::OnAccessibilityObjectChildrenChange( 1981 void RenderViewHost::OnAccessibilityObjectChildrenChange(
1976 const std::vector<webkit_glue::WebAccessibility>& acc_changes) { 1982 const std::vector<webkit_glue::WebAccessibility>& acc_changes) {
1977 view()->OnAccessibilityObjectChildrenChange(acc_changes); 1983 view()->OnAccessibilityObjectChildrenChange(acc_changes);
1978 1984
1979 if (acc_changes.size() > 0) { 1985 if (acc_changes.size() > 0) {
1980 NotificationService::current()->Notify( 1986 NotificationService::current()->Notify(
1981 NotificationType::RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED, 1987 NotificationType::RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED,
1982 Source<RenderViewHost>(this), 1988 Source<RenderViewHost>(this),
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
2052 RenderViewHostDelegate::ContentSettings* content_settings_delegate = 2058 RenderViewHostDelegate::ContentSettings* content_settings_delegate =
2053 delegate_->GetContentSettingsDelegate(); 2059 delegate_->GetContentSettingsDelegate();
2054 if (content_settings_delegate) 2060 if (content_settings_delegate)
2055 content_settings_delegate->OnWebDatabaseAccessed( 2061 content_settings_delegate->OnWebDatabaseAccessed(
2056 url, name, display_name, estimated_size, blocked_by_policy); 2062 url, name, display_name, estimated_size, blocked_by_policy);
2057 } 2063 }
2058 2064
2059 void RenderViewHost::OnSetDisplayingPDFContent() { 2065 void RenderViewHost::OnSetDisplayingPDFContent() {
2060 delegate_->SetDisplayingPDFContent(); 2066 delegate_->SetDisplayingPDFContent();
2061 } 2067 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698