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

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

Issue 1195473005: Let PageClickTracker use onMouseDown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 years, 6 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_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | 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 #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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 // Returns true if no further handling is needed. In that case, the event 562 // Returns true if no further handling is needed. In that case, the event
563 // won't be sent to WebKit or trigger DidHandleMouseEvent(). 563 // won't be sent to WebKit or trigger DidHandleMouseEvent().
564 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event); 564 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event);
565 565
566 // Called by OnHandleInputEvent() to notify subclasses that a gesture event is 566 // Called by OnHandleInputEvent() to notify subclasses that a gesture event is
567 // about to be handled. 567 // about to be handled.
568 // Returns true if no further handling is needed. In that case, the event 568 // Returns true if no further handling is needed. In that case, the event
569 // won't be sent to WebKit. 569 // won't be sent to WebKit.
570 virtual bool WillHandleGestureEvent(const blink::WebGestureEvent& event); 570 virtual bool WillHandleGestureEvent(const blink::WebGestureEvent& event);
571 571
572 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was
573 // just handled.
574 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {}
575
576 // Called by OnHandleInputEvent() to forward a mouse wheel event to the 572 // Called by OnHandleInputEvent() to forward a mouse wheel event to the
577 // compositor thread, to effect the elastic overscroll effect. 573 // compositor thread, to effect the elastic overscroll effect.
578 void ObserveWheelEventAndResult(const blink::WebMouseWheelEvent& wheel_event, 574 void ObserveWheelEventAndResult(const blink::WebMouseWheelEvent& wheel_event,
579 bool event_processed); 575 bool event_processed);
580 576
581 // Check whether the WebWidget has any touch event handlers registered 577 // Check whether the WebWidget has any touch event handlers registered
582 // at the given point. 578 // at the given point.
583 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const; 579 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const;
584 580
585 // Check whether the WebWidget has any touch event handlers registered. 581 // Check whether the WebWidget has any touch event handlers registered.
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 ui::MenuSourceType context_menu_source_type_; 818 ui::MenuSourceType context_menu_source_type_;
823 bool has_host_context_menu_location_; 819 bool has_host_context_menu_location_;
824 gfx::Point host_context_menu_location_; 820 gfx::Point host_context_menu_location_;
825 821
826 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 822 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
827 }; 823 };
828 824
829 } // namespace content 825 } // namespace content
830 826
831 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 827 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698