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

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

Issue 2663283002: scheduler: Detect single event gestures correctly (Closed)
Patch Set: Fix test build failure 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"
14 #include "ui/gfx/geometry/vector2d_f.h" 15 #include "ui/gfx/geometry/vector2d_f.h"
15 16
16 namespace ui { 17 namespace ui {
17 class LatencyInfo; 18 class LatencyInfo;
18 class SynchronousInputHandlerProxy; 19 class SynchronousInputHandlerProxy;
19 struct DidOverscrollParams; 20 struct DidOverscrollParams;
20 } 21 }
21 22
22 namespace content { 23 namespace content {
23 class InputHandlerManager; 24 class InputHandlerManager;
24 25
25 class CONTENT_EXPORT InputHandlerManagerClient { 26 class CONTENT_EXPORT InputHandlerManagerClient {
26 public: 27 public:
27 virtual ~InputHandlerManagerClient() {} 28 virtual ~InputHandlerManagerClient() {}
28 29
29 // Called from the main thread. 30 // Called from the main thread.
30 virtual void SetInputHandlerManager(InputHandlerManager*) = 0; 31 virtual void SetInputHandlerManager(InputHandlerManager*) = 0;
31 virtual void NotifyInputEventHandled(int routing_id, 32 virtual void NotifyInputEventHandled(int routing_id,
32 blink::WebInputEvent::Type type, 33 blink::WebInputEvent::Type type,
34 blink::WebInputEventResult result,
33 InputEventAckState ack_result) = 0; 35 InputEventAckState ack_result) = 0;
34 virtual void ProcessRafAlignedInput(int routing_id) = 0; 36 virtual void ProcessRafAlignedInput(int routing_id) = 0;
35 37
36 // Called from the compositor thread. 38 // Called from the compositor thread.
37 virtual void RegisterRoutingID(int routing_id) = 0; 39 virtual void RegisterRoutingID(int routing_id) = 0;
38 virtual void UnregisterRoutingID(int routing_id) = 0; 40 virtual void UnregisterRoutingID(int routing_id) = 0;
39 41
40 // |HandleInputEvent| will respond to overscroll by calling the passed in 42 // |HandleInputEvent| will respond to overscroll by calling the passed in
41 // callback. 43 // callback.
42 // Otherwise |DidOverscroll| will be fired. 44 // Otherwise |DidOverscroll| will be fired.
(...skipping 24 matching lines...) Expand all
67 protected: 69 protected:
68 SynchronousInputHandlerProxyClient() {} 70 SynchronousInputHandlerProxyClient() {}
69 71
70 private: 72 private:
71 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient); 73 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient);
72 }; 74 };
73 75
74 } // namespace content 76 } // namespace content
75 77
76 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ 78 #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