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