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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2803823002: Fix Chrome OS virtual keyboard accessibility (Closed)
Patch Set: Rebase on dependent change Created 3 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after
2116 // Don't process this IPC if either we're waiting on a reset and this 2116 // Don't process this IPC if either we're waiting on a reset and this
2117 // IPC doesn't have the matching token ID, or if we're not waiting on a 2117 // IPC doesn't have the matching token ID, or if we're not waiting on a
2118 // reset but this message includes a reset token. 2118 // reset but this message includes a reset token.
2119 if (accessibility_reset_token_ != reset_token) { 2119 if (accessibility_reset_token_ != reset_token) {
2120 Send(new AccessibilityMsg_Events_ACK(routing_id_, ack_token)); 2120 Send(new AccessibilityMsg_Events_ACK(routing_id_, ack_token));
2121 return; 2121 return;
2122 } 2122 }
2123 accessibility_reset_token_ = 0; 2123 accessibility_reset_token_ = 0;
2124 2124
2125 RenderWidgetHostViewBase* view = GetViewForAccessibility(); 2125 RenderWidgetHostViewBase* view = GetViewForAccessibility();
2126
2127 if (frame_tree_node_->IsMainFrame() && view)
2128 view->SetMainFrameAXTreeID(GetAXTreeID());
2129
2130 AccessibilityMode accessibility_mode = delegate_->GetAccessibilityMode(); 2126 AccessibilityMode accessibility_mode = delegate_->GetAccessibilityMode();
2131 if (!accessibility_mode.is_mode_off() && view && is_active()) { 2127 if (!accessibility_mode.is_mode_off() && view && is_active()) {
2132 if (accessibility_mode.has_mode(AccessibilityMode::kNativeAPIs)) 2128 if (accessibility_mode.has_mode(AccessibilityMode::kNativeAPIs))
2133 GetOrCreateBrowserAccessibilityManager(); 2129 GetOrCreateBrowserAccessibilityManager();
2134 2130
2135 std::vector<AXEventNotificationDetails> details; 2131 std::vector<AXEventNotificationDetails> details;
2136 details.reserve(params.size()); 2132 details.reserve(params.size());
2137 for (size_t i = 0; i < params.size(); ++i) { 2133 for (size_t i = 0; i < params.size(); ++i) {
2138 const AccessibilityHostMsg_EventParams& param = params[i]; 2134 const AccessibilityHostMsg_EventParams& param = params[i];
2139 AXEventNotificationDetails detail; 2135 AXEventNotificationDetails detail;
(...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after
3698 } 3694 }
3699 3695
3700 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame( 3696 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame(
3701 const std::string& interface_name, 3697 const std::string& interface_name,
3702 mojo::ScopedMessagePipeHandle pipe) { 3698 mojo::ScopedMessagePipeHandle pipe) {
3703 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe)); 3699 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe));
3704 } 3700 }
3705 #endif 3701 #endif
3706 3702
3707 } // namespace content 3703 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698