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

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: Move ARIA role-list helper to Blink. Created 5 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
« 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 virtual blink::WebScreenInfo screenInfo(); 186 virtual blink::WebScreenInfo screenInfo();
187 virtual float deviceScaleFactor(); 187 virtual float deviceScaleFactor();
188 virtual void resetInputMethod(); 188 virtual void resetInputMethod();
189 virtual void didHandleGestureEvent(const blink::WebGestureEvent& event, 189 virtual void didHandleGestureEvent(const blink::WebGestureEvent& event,
190 bool event_cancelled); 190 bool event_cancelled);
191 virtual void showImeIfNeeded(); 191 virtual void showImeIfNeeded();
192 192
193 #if defined(OS_ANDROID) 193 #if defined(OS_ANDROID)
194 // Notifies that a tap was not consumed, so showing a UI for the unhandled 194 // Notifies that a tap was not consumed, so showing a UI for the unhandled
195 // tap may be needed. 195 // tap may be needed.
196 // Performs various checks on the given WebNode to apply heuristics to
197 // determine if triggering is appropriate.
196 virtual void showUnhandledTapUIIfNeeded( 198 virtual void showUnhandledTapUIIfNeeded(
197 const blink::WebPoint& tapped_position, 199 const blink::WebPoint& tapped_position,
198 const blink::WebNode& tapped_node, 200 const blink::WebNode& tapped_node,
199 bool page_changed) override; 201 bool page_changed) override;
200 #endif 202 #endif
201 203
202 // Begins the compositor's scheduler to start producing frames. 204 // Begins the compositor's scheduler to start producing frames.
203 void StartCompositor(); 205 void StartCompositor();
204 206
205 // Stop compositing. 207 // Stop compositing.
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 // Tell the browser about the actions permitted for a new touch point. 589 // Tell the browser about the actions permitted for a new touch point.
588 virtual void setTouchAction(blink::WebTouchAction touch_action); 590 virtual void setTouchAction(blink::WebTouchAction touch_action);
589 591
590 // Called when value of focused text field gets dirty, e.g. value is modified 592 // Called when value of focused text field gets dirty, e.g. value is modified
591 // by script, not by user input. 593 // by script, not by user input.
592 virtual void didUpdateTextOfFocusedElementByNonUserInput(); 594 virtual void didUpdateTextOfFocusedElementByNonUserInput();
593 595
594 // Creates a 3D context associated with this view. 596 // Creates a 3D context associated with this view.
595 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateGraphicsContext3D(); 597 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateGraphicsContext3D();
596 598
599 #if defined(OS_ANDROID)
600 bool isInteractive(const blink::WebNode& node) const;
601 #endif
602
597 // Routing ID that allows us to communicate to the parent browser process 603 // Routing ID that allows us to communicate to the parent browser process
598 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. 604 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent.
599 int32 routing_id_; 605 int32 routing_id_;
600 606
601 int32 surface_id_; 607 int32 surface_id_;
602 608
603 // Dependencies for initializing a compositor, including flags for optional 609 // Dependencies for initializing a compositor, including flags for optional
604 // features. 610 // features.
605 CompositorDependencies* compositor_deps_; 611 CompositorDependencies* compositor_deps_;
606 612
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 ui::MenuSourceType context_menu_source_type_; 819 ui::MenuSourceType context_menu_source_type_;
814 bool has_host_context_menu_location_; 820 bool has_host_context_menu_location_;
815 gfx::Point host_context_menu_location_; 821 gfx::Point host_context_menu_location_;
816 822
817 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 823 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
818 }; 824 };
819 825
820 } // namespace content 826 } // namespace content
821 827
822 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 828 #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