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

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

Issue 281723010: Bundle DidOverscrollParams with the InputEventAck (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 6 years, 7 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 | « no previous file | content/browser/renderer_host/input/input_router_impl.h » ('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 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 struct LatencyInfo; 15 struct LatencyInfo;
16 } 16 }
17 17
18 namespace content { 18 namespace content {
19 19
20 class OverscrollController; 20 class OverscrollController;
21 struct DidOverscrollParams;
21 22
22 class CONTENT_EXPORT InputRouterClient { 23 class CONTENT_EXPORT InputRouterClient {
23 public: 24 public:
24 virtual ~InputRouterClient() {} 25 virtual ~InputRouterClient() {}
25 26
26 // Called just prior to events being sent to the renderer, giving the client 27 // Called just prior to events being sent to the renderer, giving the client
27 // a chance to perform in-process event filtering. 28 // a chance to perform in-process event filtering.
28 // The returned disposition will yield the following behavior: 29 // The returned disposition will yield the following behavior:
29 // * |NOT_CONSUMED| will result in |input_event| being sent as usual. 30 // * |NOT_CONSUMED| will result in |input_event| being sent as usual.
30 // * |CONSUMED| or |NO_CONSUMER_EXISTS| will trigger the appropriate ack. 31 // * |CONSUMED| or |NO_CONSUMER_EXISTS| will trigger the appropriate ack.
(...skipping 18 matching lines...) Expand all
49 50
50 // Certain router implementations require periodic flushing of queued events. 51 // Certain router implementations require periodic flushing of queued events.
51 // When this method is called, the client should ensure a timely call, either 52 // When this method is called, the client should ensure a timely call, either
52 // synchronous or asynchronous, of |Flush| on the InputRouter. 53 // synchronous or asynchronous, of |Flush| on the InputRouter.
53 virtual void SetNeedsFlush() = 0; 54 virtual void SetNeedsFlush() = 0;
54 55
55 // Called when the router has finished flushing all events queued at the time 56 // Called when the router has finished flushing all events queued at the time
56 // of the call to Flush. The call will typically be asynchronous with 57 // of the call to Flush. The call will typically be asynchronous with
57 // respect to the call to |Flush| on the InputRouter. 58 // respect to the call to |Flush| on the InputRouter.
58 virtual void DidFlush() = 0; 59 virtual void DidFlush() = 0;
60
61 virtual void DidOverscroll(const DidOverscrollParams& params) = 0;
59 }; 62 };
60 63
61 } // namespace content 64 } // namespace content
62 65
63 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_ 66 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698