| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_INPUT_HANDLER_WRAPPER_H_ | 5 #ifndef BLIMP_CLIENT_CORE_INPUT_BLIMP_INPUT_HANDLER_WRAPPER_H_ |
| 6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_INPUT_HANDLER_WRAPPER_H_ | 6 #define BLIMP_CLIENT_CORE_INPUT_BLIMP_INPUT_HANDLER_WRAPPER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/single_thread_task_runner.h" | |
| 10 #include "base/threading/thread_checker.h" | |
| 11 #include "ui/events/blink/input_handler_proxy.h" | 9 #include "ui/events/blink/input_handler_proxy.h" |
| 12 #include "ui/events/blink/input_handler_proxy_client.h" | 10 #include "ui/events/blink/input_handler_proxy_client.h" |
| 13 | 11 |
| 12 namespace base { |
| 13 class SingleThreadTaskRunner; |
| 14 class ThreadChecker; |
| 15 } // namespace base |
| 16 |
| 17 namespace cc { |
| 18 class InputHandler; |
| 19 } // namespace cc |
| 20 |
| 14 namespace blimp { | 21 namespace blimp { |
| 15 namespace client { | 22 namespace client { |
| 16 | 23 |
| 17 class BlimpInputManager; | 24 class BlimpInputManager; |
| 18 | 25 |
| 19 // The BlimpInputHandlerWrapper isolates all input handling processing done on | 26 // The BlimpInputHandlerWrapper isolates all input handling processing done on |
| 20 // the compositor thread from the BlimpInputManager. It takes web gesture events | 27 // the compositor thread from the BlimpInputManager. It takes web gesture events |
| 21 // from the BlimpInputManager and sends them to the ui::InputHandlerProxy. | 28 // from the BlimpInputManager and sends them to the ui::InputHandlerProxy. |
| 22 // The class is created and lives on the compositor thread. | 29 // The class is created and lives on the compositor thread. |
| 23 class BlimpInputHandlerWrapper : public ui::InputHandlerProxyClient { | 30 class BlimpInputHandlerWrapper : public ui::InputHandlerProxyClient { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 base::WeakPtr<BlimpInputManager> input_manager_weak_ptr_; | 68 base::WeakPtr<BlimpInputManager> input_manager_weak_ptr_; |
| 62 | 69 |
| 63 std::unique_ptr<ui::InputHandlerProxy> input_handler_proxy_; | 70 std::unique_ptr<ui::InputHandlerProxy> input_handler_proxy_; |
| 64 | 71 |
| 65 DISALLOW_COPY_AND_ASSIGN(BlimpInputHandlerWrapper); | 72 DISALLOW_COPY_AND_ASSIGN(BlimpInputHandlerWrapper); |
| 66 }; | 73 }; |
| 67 | 74 |
| 68 } // namespace client | 75 } // namespace client |
| 69 } // namespace blimp | 76 } // namespace blimp |
| 70 | 77 |
| 71 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_INPUT_HANDLER_WRAPPER_H_ | 78 #endif // BLIMP_CLIENT_CORE_INPUT_BLIMP_INPUT_HANDLER_WRAPPER_H_ |
| OLD | NEW |