| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_MANAGER_H_ | 5 #ifndef BLIMP_CLIENT_CORE_INPUT_BLIMP_INPUT_MANAGER_H_ |
| 6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_INPUT_MANAGER_H_ | 6 #define BLIMP_CLIENT_CORE_INPUT_BLIMP_INPUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/weak_ptr.h" |
| 11 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 12 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
| 13 #include "blimp/client/feature/compositor/blimp_input_handler_wrapper.h" | |
| 14 #include "third_party/WebKit/public/web/WebInputEvent.h" | 14 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 15 #include "ui/events/gesture_detection/filtered_gesture_provider.h" | 15 #include "ui/events/gesture_detection/filtered_gesture_provider.h" |
| 16 #include "ui/events/gesture_detection/motion_event.h" | 16 #include "ui/events/gesture_detection/motion_event.h" |
| 17 | 17 |
| 18 namespace cc { |
| 19 class InputHandler; |
| 20 } // namespace cc |
| 21 |
| 18 namespace blimp { | 22 namespace blimp { |
| 19 namespace client { | 23 namespace client { |
| 24 class BlimpInputHandlerWrapper; |
| 20 | 25 |
| 21 class BlimpInputManagerClient { | 26 class BlimpInputManagerClient { |
| 22 public: | 27 public: |
| 23 virtual void SendWebGestureEvent( | 28 virtual void SendWebGestureEvent( |
| 24 const blink::WebGestureEvent& gesture_event) = 0; | 29 const blink::WebGestureEvent& gesture_event) = 0; |
| 25 }; | 30 }; |
| 26 | 31 |
| 27 // The BlimpInputManager handles input events for a specific web widget. The | 32 // The BlimpInputManager handles input events for a specific web widget. The |
| 28 // class processes ui::events to generate web gesture events which are forwarded | 33 // class processes ui::events to generate web gesture events which are forwarded |
| 29 // to the compositor to be handled on the compositor thread. If the event can | 34 // to the compositor to be handled on the compositor thread. If the event can |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 std::unique_ptr<BlimpInputHandlerWrapper> input_handler_wrapper_; | 104 std::unique_ptr<BlimpInputHandlerWrapper> input_handler_wrapper_; |
| 100 | 105 |
| 101 base::WeakPtrFactory<BlimpInputManager> weak_factory_; | 106 base::WeakPtrFactory<BlimpInputManager> weak_factory_; |
| 102 | 107 |
| 103 DISALLOW_COPY_AND_ASSIGN(BlimpInputManager); | 108 DISALLOW_COPY_AND_ASSIGN(BlimpInputManager); |
| 104 }; | 109 }; |
| 105 | 110 |
| 106 } // namespace client | 111 } // namespace client |
| 107 } // namespace blimp | 112 } // namespace blimp |
| 108 | 113 |
| 109 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_INPUT_MANAGER_H_ | 114 #endif // BLIMP_CLIENT_CORE_INPUT_BLIMP_INPUT_MANAGER_H_ |
| OLD | NEW |