OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 UI_VIEWS_MUS_MUS_CLIENT_INIT_H_ | 5 #ifndef UI_VIEWS_MUS_MUS_CLIENT_INIT_H_ |
6 #define UI_VIEWS_MUS_MUS_CLIENT_INIT_H_ | 6 #define UI_VIEWS_MUS_MUS_CLIENT_INIT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 namespace base { | 25 namespace base { |
26 class SingleThreadTaskRunner; | 26 class SingleThreadTaskRunner; |
27 } | 27 } |
28 | 28 |
29 namespace service_manager { | 29 namespace service_manager { |
30 class Connector; | 30 class Connector; |
31 class Identity; | 31 class Identity; |
32 } | 32 } |
33 | 33 |
34 namespace wm { | 34 namespace wm { |
| 35 class FocusController; |
35 class WMState; | 36 class WMState; |
36 } | 37 } |
37 | 38 |
38 namespace views { | 39 namespace views { |
39 | 40 |
40 class ScreenMus; | 41 class ScreenMus; |
41 class SurfaceContextFactory; | 42 class SurfaceContextFactory; |
42 | 43 |
43 namespace internal { | 44 namespace internal { |
44 class NativeWidgetDelegate; | 45 class NativeWidgetDelegate; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 const service_manager::Identity& identity, | 84 const service_manager::Identity& identity, |
84 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner = nullptr); | 85 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner = nullptr); |
85 | 86 |
86 // aura::WindowTreeClientDelegate: | 87 // aura::WindowTreeClientDelegate: |
87 void OnEmbed( | 88 void OnEmbed( |
88 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) override; | 89 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) override; |
89 void OnLostConnection(aura::WindowTreeClient* client) override; | 90 void OnLostConnection(aura::WindowTreeClient* client) override; |
90 void OnEmbedRootDestroyed(aura::Window* root) override; | 91 void OnEmbedRootDestroyed(aura::Window* root) override; |
91 void OnPointerEventObserved(const ui::PointerEvent& event, | 92 void OnPointerEventObserved(const ui::PointerEvent& event, |
92 aura::Window* target) override; | 93 aura::Window* target) override; |
| 94 aura::client::FocusClient* GetFocusClient() override; |
93 aura::client::CaptureClient* GetCaptureClient() override; | 95 aura::client::CaptureClient* GetCaptureClient() override; |
94 aura::PropertyConverter* GetPropertyConverter() override; | 96 aura::PropertyConverter* GetPropertyConverter() override; |
95 | 97 |
96 // ScreenMusDelegate: | 98 // ScreenMusDelegate: |
97 void OnWindowManagerFrameValuesChanged() override; | 99 void OnWindowManagerFrameValuesChanged() override; |
98 gfx::Point GetCursorScreenPoint() override; | 100 gfx::Point GetCursorScreenPoint() override; |
99 aura::Window* GetWindowAtScreenPoint(const gfx::Point& point) override; | 101 aura::Window* GetWindowAtScreenPoint(const gfx::Point& point) override; |
100 | 102 |
101 // ui:OSExchangeDataProviderFactory::Factory: | 103 // ui:OSExchangeDataProviderFactory::Factory: |
102 std::unique_ptr<OSExchangeData::Provider> BuildProvider() override; | 104 std::unique_ptr<OSExchangeData::Provider> BuildProvider() override; |
103 | 105 |
104 static MusClient* instance_; | 106 static MusClient* instance_; |
105 | 107 |
106 service_manager::Connector* connector_; | 108 service_manager::Connector* connector_; |
107 service_manager::Identity identity_; | 109 service_manager::Identity identity_; |
108 | 110 |
109 std::unique_ptr<wm::WMState> wm_state_; | 111 std::unique_ptr<wm::WMState> wm_state_; |
110 | 112 |
111 std::unique_ptr<ScreenMus> screen_; | 113 std::unique_ptr<ScreenMus> screen_; |
112 | 114 |
| 115 std::unique_ptr<wm::FocusController> focus_controller_; |
| 116 |
113 std::unique_ptr<aura::PropertyConverter> property_converter_; | 117 std::unique_ptr<aura::PropertyConverter> property_converter_; |
114 | 118 |
115 std::unique_ptr<aura::WindowTreeClient> window_tree_client_; | 119 std::unique_ptr<aura::WindowTreeClient> window_tree_client_; |
116 | 120 |
117 std::unique_ptr<aura::GpuService> gpu_service_; | 121 std::unique_ptr<aura::GpuService> gpu_service_; |
118 | 122 |
119 std::unique_ptr<SurfaceContextFactory> compositor_context_factory_; | 123 std::unique_ptr<SurfaceContextFactory> compositor_context_factory_; |
120 | 124 |
121 DISALLOW_COPY_AND_ASSIGN(MusClient); | 125 DISALLOW_COPY_AND_ASSIGN(MusClient); |
122 }; | 126 }; |
123 | 127 |
124 } // namespace views | 128 } // namespace views |
125 | 129 |
126 #endif // UI_VIEWS_MUS_MUS_CLIENT_INIT_H_ | 130 #endif // UI_VIEWS_MUS_MUS_CLIENT_INIT_H_ |
OLD | NEW |