| OLD | NEW |
| 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 27 matching lines...) Expand all Loading... |
| 38 typedef base::Callback< | 38 typedef base::Callback< |
| 39 InputEventAckState(int /*routing_id*/, | 39 InputEventAckState(int /*routing_id*/, |
| 40 const blink::WebInputEvent*, | 40 const blink::WebInputEvent*, |
| 41 ui::LatencyInfo* latency_info)> Handler; | 41 ui::LatencyInfo* latency_info)> Handler; |
| 42 | 42 |
| 43 // Called from the main thread. | 43 // Called from the main thread. |
| 44 virtual void SetBoundHandler(const Handler& handler) = 0; | 44 virtual void SetBoundHandler(const Handler& handler) = 0; |
| 45 virtual void NotifyInputEventHandled(int routing_id, | 45 virtual void NotifyInputEventHandled(int routing_id, |
| 46 blink::WebInputEvent::Type type, | 46 blink::WebInputEvent::Type type, |
| 47 InputEventAckState ack_result) = 0; | 47 InputEventAckState ack_result) = 0; |
| 48 virtual void ProcessVSyncAlignedInput(int routing_id) = 0; |
| 48 | 49 |
| 49 // Called from the compositor thread. | 50 // Called from the compositor thread. |
| 50 virtual void RegisterRoutingID(int routing_id) = 0; | 51 virtual void RegisterRoutingID(int routing_id) = 0; |
| 51 virtual void UnregisterRoutingID(int routing_id) = 0; | 52 virtual void UnregisterRoutingID(int routing_id) = 0; |
| 52 virtual void DidOverscroll(int routing_id, | 53 virtual void DidOverscroll(int routing_id, |
| 53 const DidOverscrollParams& params) = 0; | 54 const DidOverscrollParams& params) = 0; |
| 54 virtual void DidStartFlinging(int routing_id) = 0; | 55 virtual void DidStartFlinging(int routing_id) = 0; |
| 55 virtual void DidStopFlinging(int routing_id) = 0; | 56 virtual void DidStopFlinging(int routing_id) = 0; |
| 56 | 57 |
| 57 protected: | 58 protected: |
| (...skipping 15 matching lines...) Expand all Loading... |
| 73 protected: | 74 protected: |
| 74 SynchronousInputHandlerProxyClient() {} | 75 SynchronousInputHandlerProxyClient() {} |
| 75 | 76 |
| 76 private: | 77 private: |
| 77 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient); | 78 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient); |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 } // namespace content | 81 } // namespace content |
| 81 | 82 |
| 82 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ | 83 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ |
| OLD | NEW |