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

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

Issue 2576013002: Introducing WebCoalescedInputEvent and inclusion in content/common (Closed)
Patch Set: Fix a few DCHECK hits Created 3 years, 11 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_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/WebCoalescedInputEvent.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 ui { 16 namespace ui {
18 class LatencyInfo; 17 class LatencyInfo;
19 class SynchronousInputHandlerProxy; 18 class SynchronousInputHandlerProxy;
20 struct DidOverscrollParams; 19 struct DidOverscrollParams;
21 } 20 }
22 21
23 namespace content { 22 namespace content {
24 class InputHandlerManager; 23 class InputHandlerManager;
(...skipping 14 matching lines...) Expand all
39 virtual void UnregisterRoutingID(int routing_id) = 0; 38 virtual void UnregisterRoutingID(int routing_id) = 0;
40 39
41 // |HandleInputEvent| will respond to overscroll by calling the passed in 40 // |HandleInputEvent| will respond to overscroll by calling the passed in
42 // callback. 41 // callback.
43 // Otherwise |DidOverscroll| will be fired. 42 // Otherwise |DidOverscroll| will be fired.
44 virtual void DidOverscroll(int routing_id, 43 virtual void DidOverscroll(int routing_id,
45 const ui::DidOverscrollParams& params) = 0; 44 const ui::DidOverscrollParams& params) = 0;
46 virtual void DidStopFlinging(int routing_id) = 0; 45 virtual void DidStopFlinging(int routing_id) = 0;
47 virtual void DispatchNonBlockingEventToMainThread( 46 virtual void DispatchNonBlockingEventToMainThread(
48 int routing_id, 47 int routing_id,
49 ui::ScopedWebInputEvent event, 48 blink::WebScopedInputEvent event,
50 const ui::LatencyInfo& latency_info) = 0; 49 const ui::LatencyInfo& latency_info) = 0;
51 50
52 protected: 51 protected:
53 InputHandlerManagerClient() {} 52 InputHandlerManagerClient() {}
54 53
55 private: 54 private:
56 DISALLOW_COPY_AND_ASSIGN(InputHandlerManagerClient); 55 DISALLOW_COPY_AND_ASSIGN(InputHandlerManagerClient);
57 }; 56 };
58 57
59 class CONTENT_EXPORT SynchronousInputHandlerProxyClient { 58 class CONTENT_EXPORT SynchronousInputHandlerProxyClient {
60 public: 59 public:
61 virtual ~SynchronousInputHandlerProxyClient() {} 60 virtual ~SynchronousInputHandlerProxyClient() {}
62 61
63 virtual void DidAddSynchronousHandlerProxy( 62 virtual void DidAddSynchronousHandlerProxy(
64 int routing_id, 63 int routing_id,
65 ui::SynchronousInputHandlerProxy* synchronous_handler) = 0; 64 ui::SynchronousInputHandlerProxy* synchronous_handler) = 0;
66 virtual void DidRemoveSynchronousHandlerProxy(int routing_id) = 0; 65 virtual void DidRemoveSynchronousHandlerProxy(int routing_id) = 0;
67 66
68 protected: 67 protected:
69 SynchronousInputHandlerProxyClient() {} 68 SynchronousInputHandlerProxyClient() {}
70 69
71 private: 70 private:
72 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient); 71 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient);
73 }; 72 };
74 73
75 } // namespace content 74 } // namespace content
76 75
77 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ 76 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698