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

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

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: Creating CoalescedWebInputEvent Created 4 years, 1 month 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_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_
6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ 6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/common/input/input_event_ack_state.h" 12 #include "content/common/input/input_event_ack_state.h"
13 #include "third_party/WebKit/public/platform/WebInputEvent.h" 13 #include "third_party/WebKit/public/platform/CoalescedWebInputEvent.h"
14 #include "ui/events/blink/scoped_web_input_event.h"
15 #include "ui/gfx/geometry/vector2d_f.h" 14 #include "ui/gfx/geometry/vector2d_f.h"
16 15
17 namespace cc { 16 namespace cc {
18 class InputHandler; 17 class InputHandler;
19 } 18 }
20 19
21 namespace ui { 20 namespace ui {
22 class LatencyInfo; 21 class LatencyInfo;
23 class SynchronousInputHandlerProxy; 22 class SynchronousInputHandlerProxy;
24 struct DidOverscrollParams; 23 struct DidOverscrollParams;
(...skipping 18 matching lines...) Expand all
43 virtual void UnregisterRoutingID(int routing_id) = 0; 42 virtual void UnregisterRoutingID(int routing_id) = 0;
44 43
45 // |HandleInputEvent| will respond to overscroll by calling the passed in 44 // |HandleInputEvent| will respond to overscroll by calling the passed in
46 // callback. 45 // callback.
47 // Otherwise |DidOverscroll| will be fired. 46 // Otherwise |DidOverscroll| will be fired.
48 virtual void DidOverscroll(int routing_id, 47 virtual void DidOverscroll(int routing_id,
49 const ui::DidOverscrollParams& params) = 0; 48 const ui::DidOverscrollParams& params) = 0;
50 virtual void DidStopFlinging(int routing_id) = 0; 49 virtual void DidStopFlinging(int routing_id) = 0;
51 virtual void DispatchNonBlockingEventToMainThread( 50 virtual void DispatchNonBlockingEventToMainThread(
52 int routing_id, 51 int routing_id,
53 ui::ScopedWebInputEvent event, 52 blink::CoalescedWebInputEvent::ScopedWebInputEvent event,
54 const ui::LatencyInfo& latency_info) = 0; 53 const ui::LatencyInfo& latency_info) = 0;
55 54
56 protected: 55 protected:
57 InputHandlerManagerClient() {} 56 InputHandlerManagerClient() {}
58 57
59 private: 58 private:
60 DISALLOW_COPY_AND_ASSIGN(InputHandlerManagerClient); 59 DISALLOW_COPY_AND_ASSIGN(InputHandlerManagerClient);
61 }; 60 };
62 61
63 class CONTENT_EXPORT SynchronousInputHandlerProxyClient { 62 class CONTENT_EXPORT SynchronousInputHandlerProxyClient {
64 public: 63 public:
65 virtual ~SynchronousInputHandlerProxyClient() {} 64 virtual ~SynchronousInputHandlerProxyClient() {}
66 65
67 virtual void DidAddSynchronousHandlerProxy( 66 virtual void DidAddSynchronousHandlerProxy(
68 int routing_id, 67 int routing_id,
69 ui::SynchronousInputHandlerProxy* synchronous_handler) = 0; 68 ui::SynchronousInputHandlerProxy* synchronous_handler) = 0;
70 virtual void DidRemoveSynchronousHandlerProxy(int routing_id) = 0; 69 virtual void DidRemoveSynchronousHandlerProxy(int routing_id) = 0;
71 70
72 protected: 71 protected:
73 SynchronousInputHandlerProxyClient() {} 72 SynchronousInputHandlerProxyClient() {}
74 73
75 private: 74 private:
76 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient); 75 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient);
77 }; 76 };
78 77
79 } // namespace content 78 } // namespace content
80 79
81 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ 80 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698