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

Side by Side Diff: content/renderer/input/render_widget_input_handler_delegate.h

Issue 1749343004: Implement Wheel Gesture Scrolling on OSX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure only high precision scroll begins are used Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ 5 #ifndef CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_
6 #define CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ 6 #define CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/common/input/input_event_ack.h" 10 #include "content/common/input/input_event_ack.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // at the given point. 42 // at the given point.
43 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const = 0; 43 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const = 0;
44 44
45 // Called to forward a mouse wheel event to the compositor thread, to effect 45 // Called to forward a mouse wheel event to the compositor thread, to effect
46 // the elastic overscroll effect. 46 // the elastic overscroll effect.
47 virtual void ObserveWheelEventAndResult( 47 virtual void ObserveWheelEventAndResult(
48 const blink::WebMouseWheelEvent& wheel_event, 48 const blink::WebMouseWheelEvent& wheel_event,
49 const gfx::Vector2dF& wheel_unused_delta, 49 const gfx::Vector2dF& wheel_unused_delta,
50 bool event_processed) = 0; 50 bool event_processed) = 0;
51 51
52 // Called to forward a gesture event to the compositor thread, to effect
53 // the elastic overscroll effect.
54 virtual void ObserveGestureEventAndResult(
55 const blink::WebGestureEvent& gesture_event,
56 const gfx::Vector2dF& unused_delta,
57 bool event_processed) = 0;
58
52 // Notifies that a key event was just handled. 59 // Notifies that a key event was just handled.
53 virtual void OnDidHandleKeyEvent() = 0; 60 virtual void OnDidHandleKeyEvent() = 0;
54 61
55 // Notifies that an overscroll was completed from Blink. 62 // Notifies that an overscroll was completed from Blink.
56 virtual void OnDidOverscroll(const DidOverscrollParams& params) = 0; 63 virtual void OnDidOverscroll(const DidOverscrollParams& params) = 0;
57 64
58 // Called when an ACK is ready to be sent to the input event provider. 65 // Called when an ACK is ready to be sent to the input event provider.
59 virtual void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) = 0; 66 virtual void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) = 0;
60 67
61 // Called when a non-blocking event (DISPATCH_TYPE_NON_BLOCKING) of 68 // Called when a non-blocking event (DISPATCH_TYPE_NON_BLOCKING) of
(...skipping 24 matching lines...) Expand all
86 // won't be sent to WebKit or trigger DidHandleMouseEvent(). 93 // won't be sent to WebKit or trigger DidHandleMouseEvent().
87 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; 94 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0;
88 95
89 protected: 96 protected:
90 virtual ~RenderWidgetInputHandlerDelegate() {} 97 virtual ~RenderWidgetInputHandlerDelegate() {}
91 }; 98 };
92 99
93 } // namespace content 100 } // namespace content
94 101
95 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ 102 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/renderer/input/render_widget_input_handler.cc ('k') | content/renderer/mus/render_widget_mus_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698