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

Side by Side Diff: content/browser/renderer_host/input/input_router_client.h

Issue 2240273002: Move |DidOverscrollParams| from |content::| to "ui/events/blink" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move DidOverscrollParams to ui:: Created 4 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_
7 7
8 #include "content/browser/renderer_host/event_with_latency_info.h" 8 #include "content/browser/renderer_host/event_with_latency_info.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/common/input/input_event_ack_state.h" 10 #include "content/common/input/input_event_ack_state.h"
11 #include "content/public/browser/native_web_keyboard_event.h" 11 #include "content/public/browser/native_web_keyboard_event.h"
12 #include "third_party/WebKit/public/web/WebInputEvent.h" 12 #include "third_party/WebKit/public/web/WebInputEvent.h"
13 13
14 namespace ui { 14 namespace ui {
15 class LatencyInfo; 15 class LatencyInfo;
16 struct DidOverscrollParams;
16 } 17 }
17 18
18 namespace content { 19 namespace content {
19 20
20 struct DidOverscrollParams;
21
22 class CONTENT_EXPORT InputRouterClient { 21 class CONTENT_EXPORT InputRouterClient {
23 public: 22 public:
24 virtual ~InputRouterClient() {} 23 virtual ~InputRouterClient() {}
25 24
26 // Called just prior to events being sent to the renderer, giving the client 25 // Called just prior to events being sent to the renderer, giving the client
27 // a chance to perform in-process event filtering. 26 // a chance to perform in-process event filtering.
28 // The returned disposition will yield the following behavior: 27 // The returned disposition will yield the following behavior:
29 // * |NOT_CONSUMED| will result in |input_event| being sent as usual. 28 // * |NOT_CONSUMED| will result in |input_event| being sent as usual.
30 // * |CONSUMED| or |NO_CONSUMER_EXISTS| will trigger the appropriate ack. 29 // * |CONSUMED| or |NO_CONSUMER_EXISTS| will trigger the appropriate ack.
31 // * |UNKNOWN| will result in |input_event| being dropped. 30 // * |UNKNOWN| will result in |input_event| being dropped.
(...skipping 10 matching lines...) Expand all
42 // Called when the renderer notifies that it has touch event handlers. 41 // Called when the renderer notifies that it has touch event handlers.
43 virtual void OnHasTouchEventHandlers(bool has_handlers) = 0; 42 virtual void OnHasTouchEventHandlers(bool has_handlers) = 0;
44 43
45 // Called when the router has finished flushing all events queued at the time 44 // Called when the router has finished flushing all events queued at the time
46 // of the call to Flush. The call will typically be asynchronous with 45 // of the call to Flush. The call will typically be asynchronous with
47 // respect to the call to |Flush| on the InputRouter. 46 // respect to the call to |Flush| on the InputRouter.
48 virtual void DidFlush() = 0; 47 virtual void DidFlush() = 0;
49 48
50 // Called when the router has received an overscroll notification from the 49 // Called when the router has received an overscroll notification from the
51 // renderer. 50 // renderer.
52 virtual void DidOverscroll(const DidOverscrollParams& params) = 0; 51 virtual void DidOverscroll(const ui::DidOverscrollParams& params) = 0;
53 52
54 // Called when a renderer fling has terminated. 53 // Called when a renderer fling has terminated.
55 virtual void DidStopFlinging() = 0; 54 virtual void DidStopFlinging() = 0;
56 55
57 // Called when the input router generates an event. It is intended that the 56 // Called when the input router generates an event. It is intended that the
58 // client will do some processing on |gesture_event| and then send it back 57 // client will do some processing on |gesture_event| and then send it back
59 // to the InputRouter via SendGestureEvent. 58 // to the InputRouter via SendGestureEvent.
60 virtual void ForwardGestureEventWithLatencyInfo( 59 virtual void ForwardGestureEventWithLatencyInfo(
61 const blink::WebGestureEvent& gesture_event, 60 const blink::WebGestureEvent& gesture_event,
62 const ui::LatencyInfo& latency_info) = 0; 61 const ui::LatencyInfo& latency_info) = 0;
63 }; 62 };
64 63
65 } // namespace content 64 } // namespace content
66 65
67 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_ 66 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698