| 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 15 matching lines...) Expand all Loading... |
| 26 class CONTENT_EXPORT InputHandlerManagerClient { | 26 class CONTENT_EXPORT InputHandlerManagerClient { |
| 27 public: | 27 public: |
| 28 virtual ~InputHandlerManagerClient() {} | 28 virtual ~InputHandlerManagerClient() {} |
| 29 | 29 |
| 30 // Called from the main thread. | 30 // Called from the main thread. |
| 31 virtual void SetInputHandlerManager(InputHandlerManager*) = 0; | 31 virtual void SetInputHandlerManager(InputHandlerManager*) = 0; |
| 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) = 0; | 36 virtual void ProcessRafAlignedInput(int routing_id, |
| 37 double frame_time_sec) = 0; |
| 37 | 38 |
| 38 // Called from the compositor thread. | 39 // Called from the compositor thread. |
| 39 virtual void RegisterRoutingID(int routing_id) = 0; | 40 virtual void RegisterRoutingID(int routing_id) = 0; |
| 40 virtual void UnregisterRoutingID(int routing_id) = 0; | 41 virtual void UnregisterRoutingID(int routing_id) = 0; |
| 41 | 42 |
| 42 // |HandleInputEvent| will respond to overscroll by calling the passed in | 43 // |HandleInputEvent| will respond to overscroll by calling the passed in |
| 43 // callback. | 44 // callback. |
| 44 // Otherwise |DidOverscroll| will be fired. | 45 // Otherwise |DidOverscroll| will be fired. |
| 45 virtual void DidOverscroll(int routing_id, | 46 virtual void DidOverscroll(int routing_id, |
| 46 const ui::DidOverscrollParams& params) = 0; | 47 const ui::DidOverscrollParams& params) = 0; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 69 protected: | 70 protected: |
| 70 SynchronousInputHandlerProxyClient() {} | 71 SynchronousInputHandlerProxyClient() {} |
| 71 | 72 |
| 72 private: | 73 private: |
| 73 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient); | 74 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient); |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 } // namespace content | 77 } // namespace content |
| 77 | 78 |
| 78 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ | 79 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ |
| OLD | NEW |