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

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

Issue 2765583002: Teach main thread event queue about closures. (Closed)
Patch Set: Created 3 years, 9 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"
(...skipping 21 matching lines...) Expand all
32 virtual void NotifyInputEventHandled(int routing_id, 32 virtual void NotifyInputEventHandled(int routing_id,
33 blink::WebInputEvent::Type type, 33 blink::WebInputEvent::Type type,
34 blink::WebInputEventResult result, 34 blink::WebInputEventResult result,
35 InputEventAckState ack_result) = 0; 35 InputEventAckState ack_result) = 0;
36 virtual void ProcessRafAlignedInput(int routing_id, 36 virtual void ProcessRafAlignedInput(int routing_id,
37 base::TimeTicks frame_time) = 0; 37 base::TimeTicks frame_time) = 0;
38 38
39 // Called from the compositor thread. 39 // Called from the compositor thread.
40 virtual void RegisterRoutingID(int routing_id) = 0; 40 virtual void RegisterRoutingID(int routing_id) = 0;
41 virtual void UnregisterRoutingID(int routing_id) = 0; 41 virtual void UnregisterRoutingID(int routing_id) = 0;
42 virtual void QueueClosureForMainThreadEventQueue(
43 int routing_id,
44 const base::Closure& closure) = 0;
42 45
43 // |HandleInputEvent| will respond to overscroll by calling the passed in 46 // |HandleInputEvent| will respond to overscroll by calling the passed in
44 // callback. 47 // callback.
45 // Otherwise |DidOverscroll| will be fired. 48 // Otherwise |DidOverscroll| will be fired.
46 virtual void DidOverscroll(int routing_id, 49 virtual void DidOverscroll(int routing_id,
47 const ui::DidOverscrollParams& params) = 0; 50 const ui::DidOverscrollParams& params) = 0;
48 virtual void DidStopFlinging(int routing_id) = 0; 51 virtual void DidStopFlinging(int routing_id) = 0;
49 virtual void DispatchNonBlockingEventToMainThread( 52 virtual void DispatchNonBlockingEventToMainThread(
50 int routing_id, 53 int routing_id,
51 ui::WebScopedInputEvent event, 54 ui::WebScopedInputEvent event,
(...skipping 18 matching lines...) Expand all
70 protected: 73 protected:
71 SynchronousInputHandlerProxyClient() {} 74 SynchronousInputHandlerProxyClient() {}
72 75
73 private: 76 private:
74 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient); 77 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient);
75 }; 78 };
76 79
77 } // namespace content 80 } // namespace content
78 81
79 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ 82 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698