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

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

Issue 2048023005: Remove ObserveWheelEventAndResult callbacks since they are now gesture based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@can_scroll_2
Patch Set: Rebase Created 4 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
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 <memory> 8 #include <memory>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 25 matching lines...) Expand all
36 // transport input handling information across processes. 36 // transport input handling information across processes.
37 class CONTENT_EXPORT RenderWidgetInputHandlerDelegate { 37 class CONTENT_EXPORT RenderWidgetInputHandlerDelegate {
38 public: 38 public:
39 // Called when animations due to focus change have completed (if any). 39 // Called when animations due to focus change have completed (if any).
40 virtual void FocusChangeComplete() = 0; 40 virtual void FocusChangeComplete() = 0;
41 41
42 // Check whether the WebWidget has any touch event handlers registered 42 // Check whether the WebWidget has any touch event handlers registered
43 // at the given point. 43 // at the given point.
44 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const = 0; 44 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const = 0;
45 45
46 // Called to forward a mouse wheel event to the compositor thread, to effect
47 // the elastic overscroll effect.
48 virtual void ObserveWheelEventAndResult(
49 const blink::WebMouseWheelEvent& wheel_event,
50 const gfx::Vector2dF& wheel_unused_delta,
51 bool event_processed) = 0;
52
53 // Called to forward a gesture event to the compositor thread, to effect 46 // Called to forward a gesture event to the compositor thread, to effect
54 // the elastic overscroll effect. 47 // the elastic overscroll effect.
55 virtual void ObserveGestureEventAndResult( 48 virtual void ObserveGestureEventAndResult(
56 const blink::WebGestureEvent& gesture_event, 49 const blink::WebGestureEvent& gesture_event,
57 const gfx::Vector2dF& unused_delta, 50 const gfx::Vector2dF& unused_delta,
58 bool event_processed) = 0; 51 bool event_processed) = 0;
59 52
60 // Notifies that a key event was just handled. 53 // Notifies that a key event was just handled.
61 virtual void OnDidHandleKeyEvent() = 0; 54 virtual void OnDidHandleKeyEvent() = 0;
62 55
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // won't be sent to WebKit or trigger DidHandleMouseEvent(). 89 // won't be sent to WebKit or trigger DidHandleMouseEvent().
97 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; 90 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0;
98 91
99 protected: 92 protected:
100 virtual ~RenderWidgetInputHandlerDelegate() {} 93 virtual ~RenderWidgetInputHandlerDelegate() {}
101 }; 94 };
102 95
103 } // namespace content 96 } // namespace content
104 97
105 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ 98 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/renderer/input/input_handler_manager.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