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

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

Issue 868933002: [Contextual Search] Check ARIA Roles before triggering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | content/renderer/render_widget.cc » ('j') | content/renderer/render_widget.cc » ('J')
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 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 virtual blink::WebScreenInfo screenInfo(); 169 virtual blink::WebScreenInfo screenInfo();
170 virtual float deviceScaleFactor(); 170 virtual float deviceScaleFactor();
171 virtual void resetInputMethod(); 171 virtual void resetInputMethod();
172 virtual void didHandleGestureEvent(const blink::WebGestureEvent& event, 172 virtual void didHandleGestureEvent(const blink::WebGestureEvent& event,
173 bool event_cancelled); 173 bool event_cancelled);
174 virtual void showImeIfNeeded(); 174 virtual void showImeIfNeeded();
175 175
176 #if defined(OS_ANDROID) 176 #if defined(OS_ANDROID)
177 // Notifies that a tap was not consumed, so showing a UI for the unhandled 177 // Notifies that a tap was not consumed, so showing a UI for the unhandled
178 // tap may be needed. 178 // tap may be needed.
179 // Performs various checks on the given WebNode to apply heuristics to
180 // determine if triggering is appropriate.
179 virtual void showUnhandledTapUIIfNeeded( 181 virtual void showUnhandledTapUIIfNeeded(
180 const blink::WebPoint& tapped_position, 182 const blink::WebPoint& tapped_position,
181 const blink::WebNode& tapped_node, 183 const blink::WebNode& tapped_node,
182 bool page_changed) override; 184 bool page_changed) override;
183 #endif 185 #endif
184 186
185 // Begins the compositor's scheduler to start producing frames. 187 // Begins the compositor's scheduler to start producing frames.
186 void StartCompositor(); 188 void StartCompositor();
187 189
188 // Stop compositing. 190 // Stop compositing.
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 // Tell the browser about the actions permitted for a new touch point. 565 // Tell the browser about the actions permitted for a new touch point.
564 virtual void setTouchAction(blink::WebTouchAction touch_action); 566 virtual void setTouchAction(blink::WebTouchAction touch_action);
565 567
566 // Called when value of focused text field gets dirty, e.g. value is modified 568 // Called when value of focused text field gets dirty, e.g. value is modified
567 // by script, not by user input. 569 // by script, not by user input.
568 virtual void didUpdateTextOfFocusedElementByNonUserInput(); 570 virtual void didUpdateTextOfFocusedElementByNonUserInput();
569 571
570 // Creates a 3D context associated with this view. 572 // Creates a 3D context associated with this view.
571 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateGraphicsContext3D(); 573 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateGraphicsContext3D();
572 574
575 #if defined(OS_ANDROID)
576 bool hasAriaRole(const blink::WebNode& node);
577 #endif
578
573 // Routing ID that allows us to communicate to the parent browser process 579 // Routing ID that allows us to communicate to the parent browser process
574 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. 580 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent.
575 int32 routing_id_; 581 int32 routing_id_;
576 582
577 int32 surface_id_; 583 int32 surface_id_;
578 584
579 // Dependencies for initializing a compositor, including flags for optional 585 // Dependencies for initializing a compositor, including flags for optional
580 // features. 586 // features.
581 CompositorDependencies* compositor_deps_; 587 CompositorDependencies* compositor_deps_;
582 588
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 ui::MenuSourceType context_menu_source_type_; 795 ui::MenuSourceType context_menu_source_type_;
790 bool has_host_context_menu_location_; 796 bool has_host_context_menu_location_;
791 gfx::Point host_context_menu_location_; 797 gfx::Point host_context_menu_location_;
792 798
793 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 799 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
794 }; 800 };
795 801
796 } // namespace content 802 } // namespace content
797 803
798 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 804 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_widget.cc » ('j') | content/renderer/render_widget.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698