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

Side by Side Diff: content/renderer/render_widget.cc

Issue 868933002: [Contextual Search] Check ARIA Roles before triggering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: None. Created 5 years, 9 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
« no previous file with comments | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 2162 matching lines...) Expand 10 before | Expand all | Expand 10 after
2173 UpdateCompositionInfo(true); 2173 UpdateCompositionInfo(true);
2174 } 2174 }
2175 2175
2176 #if defined(OS_ANDROID) 2176 #if defined(OS_ANDROID)
2177 void RenderWidget::showUnhandledTapUIIfNeeded( 2177 void RenderWidget::showUnhandledTapUIIfNeeded(
2178 const WebPoint& tapped_position, 2178 const WebPoint& tapped_position,
2179 const WebNode& tapped_node, 2179 const WebNode& tapped_node,
2180 bool page_changed) { 2180 bool page_changed) {
2181 DCHECK(handling_input_event_); 2181 DCHECK(handling_input_event_);
2182 bool should_trigger = !page_changed && tapped_node.isTextNode() && 2182 bool should_trigger = !page_changed && tapped_node.isTextNode() &&
2183 !tapped_node.isContentEditable(); 2183 !tapped_node.isContentEditable() &&
2184 !tapped_node.isInsideFocusableElementOrARIAWidget();
2184 if (should_trigger) { 2185 if (should_trigger) {
2185 Send(new ViewHostMsg_ShowUnhandledTapUIIfNeeded(routing_id_, 2186 Send(new ViewHostMsg_ShowUnhandledTapUIIfNeeded(routing_id_,
2186 tapped_position.x, tapped_position.y)); 2187 tapped_position.x, tapped_position.y));
2187 } 2188 }
2188 } 2189 }
2189 #endif 2190 #endif
2190 2191
2191 void RenderWidget::didHandleGestureEvent( 2192 void RenderWidget::didHandleGestureEvent(
2192 const WebGestureEvent& event, 2193 const WebGestureEvent& event,
2193 bool event_cancelled) { 2194 bool event_cancelled) {
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
2415 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { 2416 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) {
2416 video_hole_frames_.AddObserver(frame); 2417 video_hole_frames_.AddObserver(frame);
2417 } 2418 }
2418 2419
2419 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { 2420 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) {
2420 video_hole_frames_.RemoveObserver(frame); 2421 video_hole_frames_.RemoveObserver(frame);
2421 } 2422 }
2422 #endif // defined(VIDEO_HOLE) 2423 #endif // defined(VIDEO_HOLE)
2423 2424
2424 } // namespace content 2425 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698