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

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

Issue 628763003: Support InputRouter recycling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 years, 2 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"
(...skipping 21 matching lines...) Expand all
32 virtual InputEventAckState FilterInputEvent( 32 virtual InputEventAckState FilterInputEvent(
33 const blink::WebInputEvent& input_event, 33 const blink::WebInputEvent& input_event,
34 const ui::LatencyInfo& latency_info) = 0; 34 const ui::LatencyInfo& latency_info) = 0;
35 35
36 // Called each time a WebInputEvent IPC is sent. 36 // Called each time a WebInputEvent IPC is sent.
37 virtual void IncrementInFlightEventCount() = 0; 37 virtual void IncrementInFlightEventCount() = 0;
38 38
39 // Called each time a WebInputEvent ACK IPC is received. 39 // Called each time a WebInputEvent ACK IPC is received.
40 virtual void DecrementInFlightEventCount() = 0; 40 virtual void DecrementInFlightEventCount() = 0;
41 41
42 // Called when the renderer notifies that it has touch event handlers.
43 virtual void OnHasTouchEventHandlers(bool has_handlers) = 0;
44
45 // Certain router implementations require periodic flushing of queued events.
46 // When this method is called, the client should ensure a timely call, either
47 // synchronous or asynchronous, of |Flush| on the InputRouter.
48 virtual void SetNeedsFlush() = 0;
49
50 // Called when the router has finished flushing all events queued at the time 42 // Called when the router has finished flushing all events queued at the time
51 // of the call to Flush. The call will typically be asynchronous with 43 // of the call to Flush. The call will typically be asynchronous with
52 // respect to the call to |Flush| on the InputRouter. 44 // respect to the call to |Flush| on the InputRouter.
53 virtual void DidFlush() = 0; 45 virtual void DidFlush() = 0;
54 46
55 // Called when the router has received an overscroll notification from the 47 // Called when the router has received an overscroll notification from the
56 // renderer. 48 // renderer.
57 virtual void DidOverscroll(const DidOverscrollParams& params) = 0; 49 virtual void DidOverscroll(const DidOverscrollParams& params) = 0;
58 }; 50 };
59 51
60 } // namespace content 52 } // namespace content
61 53
62 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_ 54 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698