OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_GPU_INPUT_HANDLER_MANAGER_CLIENT_H_ |
| 6 #define CONTENT_RENDERER_GPU_INPUT_HANDLER_MANAGER_CLIENT_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/callback_forward.h" |
| 10 |
| 11 namespace WebKit { |
| 12 class WebInputEvent; |
| 13 } |
| 14 |
| 15 namespace content { |
| 16 |
| 17 class InputHandlerManagerClient { |
| 18 public: |
| 19 virtual ~InputHandlerManagerClient() {} |
| 20 |
| 21 // Called from the main thread. |
| 22 virtual void DidAddInputHandler(int routing_id) = 0; |
| 23 virtual void DidRemoveInputHandler(int routing_id) = 0; |
| 24 |
| 25 // Called from the compositing thread. |
| 26 virtual void DidHandleInputEvent() = 0; |
| 27 virtual void DidNotHandleInputEvent(bool send_to_widget) = 0; |
| 28 |
| 29 protected: |
| 30 InputHandlerManagerClient() {} |
| 31 |
| 32 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(InputHandlerManagerClient); |
| 34 }; |
| 35 |
| 36 } // namespace content |
| 37 |
| 38 #endif // CONTENT_COMMON_GPU_INPUT_HANDLER_MANAGER_CLIENT_H_ |
OLD | NEW |