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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 145283003: Switch AccessibilityMode to be a bitmap (Closed) Base URL: https://chromium.googlesource.com/chromium/src@enable
Patch Set: Switch back to AccessibilityMode enums in accessibility_ui.cc Created 6 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 2072 matching lines...) Expand 10 before | Expand all | Expand 10 after
2083 const gfx::Point& location, const blink::WebPluginAction& action) { 2083 const gfx::Point& location, const blink::WebPluginAction& action) {
2084 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action)); 2084 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action));
2085 } 2085 }
2086 2086
2087 void RenderViewHostImpl::NotifyMoveOrResizeStarted() { 2087 void RenderViewHostImpl::NotifyMoveOrResizeStarted() {
2088 Send(new ViewMsg_MoveOrResizeStarted(GetRoutingID())); 2088 Send(new ViewMsg_MoveOrResizeStarted(GetRoutingID()));
2089 } 2089 }
2090 2090
2091 void RenderViewHostImpl::OnAccessibilityEvents( 2091 void RenderViewHostImpl::OnAccessibilityEvents(
2092 const std::vector<AccessibilityHostMsg_EventParams>& params) { 2092 const std::vector<AccessibilityHostMsg_EventParams>& params) {
2093 if (view_ && IsRVHStateActive(rvh_state_)) { 2093 if ((accessibility_mode() & AccessibilityModeFlagPlatform) && view_ &&
2094 IsRVHStateActive(rvh_state_)) {
2094 view_->CreateBrowserAccessibilityManagerIfNeeded(); 2095 view_->CreateBrowserAccessibilityManagerIfNeeded();
2095 BrowserAccessibilityManager* manager = 2096 BrowserAccessibilityManager* manager =
2096 view_->GetBrowserAccessibilityManager(); 2097 view_->GetBrowserAccessibilityManager();
2097 if (manager) 2098 if (manager)
2098 manager->OnAccessibilityEvents(params); 2099 manager->OnAccessibilityEvents(params);
2099 } 2100 }
2100 2101
2101 // Always send an ACK or the renderer can be in a bad state. 2102 // Always send an ACK or the renderer can be in a bad state.
2102 Send(new AccessibilityMsg_Events_ACK(GetRoutingID())); 2103 Send(new AccessibilityMsg_Events_ACK(GetRoutingID()));
2103 2104
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
2265 void RenderViewHostImpl::AttachToFrameTree() { 2266 void RenderViewHostImpl::AttachToFrameTree() {
2266 FrameTree* frame_tree = delegate_->GetFrameTree(); 2267 FrameTree* frame_tree = delegate_->GetFrameTree();
2267 2268
2268 frame_tree->ResetForMainFrameSwap(); 2269 frame_tree->ResetForMainFrameSwap();
2269 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { 2270 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) {
2270 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); 2271 frame_tree->OnFirstNavigationAfterSwap(main_frame_id());
2271 } 2272 }
2272 } 2273 }
2273 2274
2274 } // namespace content 2275 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698