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" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 std::unique_ptr<blink::WebInputEvent> web_event, | 61 std::unique_ptr<blink::WebInputEvent> web_event, |
62 const base::Callback<void(mus::mojom::EventResult)>& ack); | 62 const base::Callback<void(mus::mojom::EventResult)>& ack); |
63 | 63 |
64 void OnWindowInputEventAckOnMainThread( | 64 void OnWindowInputEventAckOnMainThread( |
65 const base::Callback<void(mus::mojom::EventResult)>& ack, | 65 const base::Callback<void(mus::mojom::EventResult)>& ack, |
66 mus::mojom::EventResult result); | 66 mus::mojom::EventResult result); |
67 | 67 |
68 // WindowTreeDelegate implementation: | 68 // WindowTreeDelegate implementation: |
69 void OnConnectionLost(mus::WindowTreeConnection* connection) override; | 69 void OnConnectionLost(mus::WindowTreeConnection* connection) override; |
70 void OnEmbed(mus::Window* root) override; | 70 void OnEmbed(mus::Window* root) override; |
71 void OnEventObserved(const ui::Event& event) override; | 71 void OnEventObserved(const ui::Event& event, mus::Window* target) override; |
72 | 72 |
73 // InputEventHandler implementation: | 73 // InputEventHandler implementation: |
74 void OnWindowInputEvent( | 74 void OnWindowInputEvent( |
75 mus::Window* window, | 75 mus::Window* window, |
76 const ui::Event& event, | 76 const ui::Event& event, |
77 std::unique_ptr<base::Callback<void(mus::mojom::EventResult)>>* | 77 std::unique_ptr<base::Callback<void(mus::mojom::EventResult)>>* |
78 ack_callback) override; | 78 ack_callback) override; |
79 | 79 |
80 const int routing_id_; | 80 const int routing_id_; |
81 mus::Window* root_; | 81 mus::Window* root_; |
82 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 82 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
83 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; | 83 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; |
84 InputHandlerManager* const input_handler_manager_; | 84 InputHandlerManager* const input_handler_manager_; |
85 std::unique_ptr<mus::WindowSurfaceBinding> window_surface_binding_; | 85 std::unique_ptr<mus::WindowSurfaceBinding> window_surface_binding_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(CompositorMusConnection); | 87 DISALLOW_COPY_AND_ASSIGN(CompositorMusConnection); |
88 }; | 88 }; |
89 | 89 |
90 } // namespace content | 90 } // namespace content |
91 | 91 |
92 #endif // CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_ | 92 #endif // CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_ |
OLD | NEW |