Chromium Code Reviews| 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 CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_ | 5 #ifndef CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_ |
| 6 #define CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_ | 6 #define CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_ |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.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 "services/ui/public/cpp/input_event_handler.h" | 12 #include "services/ui/public/cpp/input_event_handler.h" |
| 13 #include "services/ui/public/cpp/window.h" | 13 #include "services/ui/public/cpp/window.h" |
| 14 #include "services/ui/public/cpp/window_tree_client.h" | 14 #include "services/ui/public/cpp/window_tree_client.h" |
| 15 #include "services/ui/public/cpp/window_tree_client_delegate.h" | 15 #include "services/ui/public/cpp/window_tree_client_delegate.h" |
| 16 #include "third_party/WebKit/public/web/WebInputEvent.h" | 16 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 17 #include "ui/events/gestures/motion_event_aura.h" | |
| 17 | 18 |
| 18 namespace ui { | 19 namespace ui { |
| 19 struct DidOverscrollParams; | 20 struct DidOverscrollParams; |
| 20 } | 21 } |
| 21 | 22 |
| 22 namespace content { | 23 namespace content { |
| 23 | 24 |
| 24 class InputHandlerManager; | 25 class InputHandlerManager; |
| 25 | 26 |
| 26 // CompositorMusConnection manages the connection to the Mandoline UI Service | 27 // CompositorMusConnection manages the connection to the Mandoline UI Service |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 void OnPointerEventObserved(const ui::PointerEvent& event, | 76 void OnPointerEventObserved(const ui::PointerEvent& event, |
| 76 ui::Window* target) override; | 77 ui::Window* target) override; |
| 77 | 78 |
| 78 // InputEventHandler implementation: | 79 // InputEventHandler implementation: |
| 79 void OnWindowInputEvent( | 80 void OnWindowInputEvent( |
| 80 ui::Window* window, | 81 ui::Window* window, |
| 81 const ui::Event& event, | 82 const ui::Event& event, |
| 82 std::unique_ptr<base::Callback<void(ui::mojom::EventResult)>>* | 83 std::unique_ptr<base::Callback<void(ui::mojom::EventResult)>>* |
| 83 ack_callback) override; | 84 ack_callback) override; |
| 84 | 85 |
| 86 std::unique_ptr<blink::WebInputEvent> Convert(const ui::Event& event); | |
|
sadrul
2016/08/26 02:37:02
Non-overrides before override. Move this up.
jonross
2016/08/26 14:33:50
Done.
| |
| 87 | |
| 85 const int routing_id_; | 88 const int routing_id_; |
| 86 ui::Window* root_; | 89 ui::Window* root_; |
| 87 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 90 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| 88 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; | 91 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; |
| 89 InputHandlerManager* const input_handler_manager_; | 92 InputHandlerManager* const input_handler_manager_; |
| 90 std::unique_ptr<ui::WindowSurfaceBinding> window_surface_binding_; | 93 std::unique_ptr<ui::WindowSurfaceBinding> window_surface_binding_; |
| 91 | 94 |
| 95 // Stores the current state of the active pointers targeting this object. | |
| 96 ui::MotionEventAura pointer_state_; | |
| 97 | |
| 92 DISALLOW_COPY_AND_ASSIGN(CompositorMusConnection); | 98 DISALLOW_COPY_AND_ASSIGN(CompositorMusConnection); |
| 93 }; | 99 }; |
| 94 | 100 |
| 95 } // namespace content | 101 } // namespace content |
| 96 | 102 |
| 97 #endif // CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_ | 103 #endif // CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_ |
| OLD | NEW |