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

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

Issue 2662173005: Revert of scheduler: Detect single event gestures correctly (Closed)
Patch Set: Created 3 years, 10 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/WebCoalescedInputEvent.h" 13 #include "third_party/WebKit/public/platform/WebCoalescedInputEvent.h"
14 #include "third_party/WebKit/public/platform/WebInputEventResult.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;
25 24
26 class CONTENT_EXPORT InputHandlerManagerClient { 25 class CONTENT_EXPORT InputHandlerManagerClient {
27 public: 26 public:
28 virtual ~InputHandlerManagerClient() {} 27 virtual ~InputHandlerManagerClient() {}
29 28
30 // Called from the main thread. 29 // Called from the main thread.
31 virtual void SetInputHandlerManager(InputHandlerManager*) = 0; 30 virtual void SetInputHandlerManager(InputHandlerManager*) = 0;
32 virtual void NotifyInputEventHandled(int routing_id, 31 virtual void NotifyInputEventHandled(int routing_id,
33 blink::WebInputEvent::Type type, 32 blink::WebInputEvent::Type type,
34 blink::WebInputEventResult result,
35 InputEventAckState ack_result) = 0; 33 InputEventAckState ack_result) = 0;
36 virtual void ProcessRafAlignedInput(int routing_id) = 0; 34 virtual void ProcessRafAlignedInput(int routing_id) = 0;
37 35
38 // Called from the compositor thread. 36 // Called from the compositor thread.
39 virtual void RegisterRoutingID(int routing_id) = 0; 37 virtual void RegisterRoutingID(int routing_id) = 0;
40 virtual void UnregisterRoutingID(int routing_id) = 0; 38 virtual void UnregisterRoutingID(int routing_id) = 0;
41 39
42 // |HandleInputEvent| will respond to overscroll by calling the passed in 40 // |HandleInputEvent| will respond to overscroll by calling the passed in
43 // callback. 41 // callback.
44 // Otherwise |DidOverscroll| will be fired. 42 // Otherwise |DidOverscroll| will be fired.
(...skipping 24 matching lines...) Expand all
69 protected: 67 protected:
70 SynchronousInputHandlerProxyClient() {} 68 SynchronousInputHandlerProxyClient() {}
71 69
72 private: 70 private:
73 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient); 71 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient);
74 }; 72 };
75 73
76 } // namespace content 74 } // namespace content
77 75
78 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ 76 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/renderer/input/input_handler_manager.cc ('k') | content/renderer/input/main_thread_event_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698