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

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

Issue 1203693003: Setting Accurate ScrollResult from Blink for Elastic Scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 566
567 // Called by OnHandleInputEvent() to notify subclasses that a gesture event is 567 // Called by OnHandleInputEvent() to notify subclasses that a gesture event is
568 // about to be handled. 568 // about to be handled.
569 // Returns true if no further handling is needed. In that case, the event 569 // Returns true if no further handling is needed. In that case, the event
570 // won't be sent to WebKit. 570 // won't be sent to WebKit.
571 virtual bool WillHandleGestureEvent(const blink::WebGestureEvent& event); 571 virtual bool WillHandleGestureEvent(const blink::WebGestureEvent& event);
572 572
573 // Called by OnHandleInputEvent() to forward a mouse wheel event to the 573 // Called by OnHandleInputEvent() to forward a mouse wheel event to the
574 // compositor thread, to effect the elastic overscroll effect. 574 // compositor thread, to effect the elastic overscroll effect.
575 void ObserveWheelEventAndResult(const blink::WebMouseWheelEvent& wheel_event, 575 void ObserveWheelEventAndResult(const blink::WebMouseWheelEvent& wheel_event,
576 const gfx::Vector2dF& wheel_unused_delta,
576 bool event_processed); 577 bool event_processed);
577 578
578 // Check whether the WebWidget has any touch event handlers registered 579 // Check whether the WebWidget has any touch event handlers registered
579 // at the given point. 580 // at the given point.
580 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const; 581 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const;
581 582
582 // Check whether the WebWidget has any touch event handlers registered. 583 // Check whether the WebWidget has any touch event handlers registered.
583 virtual void hasTouchEventHandlers(bool has_handlers); 584 virtual void hasTouchEventHandlers(bool has_handlers);
584 585
585 // Tell the browser about the actions permitted for a new touch point. 586 // Tell the browser about the actions permitted for a new touch point.
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 ui::MenuSourceType context_menu_source_type_; 826 ui::MenuSourceType context_menu_source_type_;
826 bool has_host_context_menu_location_; 827 bool has_host_context_menu_location_;
827 gfx::Point host_context_menu_location_; 828 gfx::Point host_context_menu_location_;
828 829
829 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 830 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
830 }; 831 };
831 832
832 } // namespace content 833 } // namespace content
833 834
834 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 835 #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