| 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" |
| 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/web/WebInputEvent.h" |
| 13 #include "ui/gfx/geometry/vector2d_f.h" | 14 #include "ui/gfx/geometry/vector2d_f.h" |
| 14 | 15 |
| 15 namespace ui { | 16 namespace ui { |
| 16 class LatencyInfo; | 17 class LatencyInfo; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace cc { | 20 namespace cc { |
| 20 class InputHandler; | 21 class InputHandler; |
| 21 } | 22 } |
| 22 | 23 |
| 23 namespace blink { | |
| 24 class WebInputEvent; | |
| 25 } | |
| 26 | |
| 27 namespace ui { | 24 namespace ui { |
| 28 class SynchronousInputHandlerProxy; | 25 class SynchronousInputHandlerProxy; |
| 29 } | 26 } |
| 30 | 27 |
| 31 namespace content { | 28 namespace content { |
| 32 struct DidOverscrollParams; | 29 struct DidOverscrollParams; |
| 33 | 30 |
| 34 class CONTENT_EXPORT InputHandlerManagerClient { | 31 class CONTENT_EXPORT InputHandlerManagerClient { |
| 35 public: | 32 public: |
| 36 virtual ~InputHandlerManagerClient() {} | 33 virtual ~InputHandlerManagerClient() {} |
| (...skipping 10 matching lines...) Expand all Loading... |
| 47 virtual void SetBoundHandler(const Handler& handler) = 0; | 44 virtual void SetBoundHandler(const Handler& handler) = 0; |
| 48 | 45 |
| 49 // Called from the compositor thread. | 46 // Called from the compositor thread. |
| 50 virtual void DidAddInputHandler( | 47 virtual void DidAddInputHandler( |
| 51 int routing_id, | 48 int routing_id, |
| 52 ui::SynchronousInputHandlerProxy* synchronous_handler) = 0; | 49 ui::SynchronousInputHandlerProxy* synchronous_handler) = 0; |
| 53 virtual void DidRemoveInputHandler(int routing_id) = 0; | 50 virtual void DidRemoveInputHandler(int routing_id) = 0; |
| 54 virtual void DidOverscroll(int routing_id, | 51 virtual void DidOverscroll(int routing_id, |
| 55 const DidOverscrollParams& params) = 0; | 52 const DidOverscrollParams& params) = 0; |
| 56 virtual void DidStopFlinging(int routing_id) = 0; | 53 virtual void DidStopFlinging(int routing_id) = 0; |
| 54 virtual void PassiveInputEventHandled(int routing_id, |
| 55 blink::WebInputEvent::Type type) = 0; |
| 57 | 56 |
| 58 protected: | 57 protected: |
| 59 InputHandlerManagerClient() {} | 58 InputHandlerManagerClient() {} |
| 60 | 59 |
| 61 private: | 60 private: |
| 62 DISALLOW_COPY_AND_ASSIGN(InputHandlerManagerClient); | 61 DISALLOW_COPY_AND_ASSIGN(InputHandlerManagerClient); |
| 63 }; | 62 }; |
| 64 | 63 |
| 65 } // namespace content | 64 } // namespace content |
| 66 | 65 |
| 67 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ | 66 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ |
| OLD | NEW |