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_H_ | 5 #ifndef UI_VIEWS_MUS_MUS_CLIENT_H_ |
6 #define UI_VIEWS_MUS_MUS_CLIENT_H_ | 6 #define UI_VIEWS_MUS_MUS_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "ui/aura/mus/window_tree_client_delegate.h" | 15 #include "ui/aura/mus/window_tree_client_delegate.h" |
16 #include "ui/base/dragdrop/os_exchange_data_provider_factory.h" | 16 #include "ui/base/dragdrop/os_exchange_data_provider_factory.h" |
17 #include "ui/views/mus/mus_export.h" | 17 #include "ui/views/mus/mus_export.h" |
18 #include "ui/views/mus/screen_mus_delegate.h" | 18 #include "ui/views/mus/screen_mus_delegate.h" |
19 #include "ui/views/widget/widget.h" | 19 #include "ui/views/widget/widget.h" |
20 | 20 |
21 namespace aura { | 21 namespace aura { |
22 class PropertyConverter; | 22 class PropertyConverter; |
23 class MusContextFactory; | 23 class MusContextFactory; |
24 class Window; | 24 class Window; |
25 class WindowTreeClient; | 25 class WindowTreeClient; |
26 } | 26 } |
27 | 27 |
28 namespace base { | 28 namespace base { |
29 class SingleThreadTaskRunner; | 29 class SingleThreadTaskRunner; |
| 30 class Thread; |
| 31 } |
| 32 |
| 33 namespace discardable_memory { |
| 34 class ClientDiscardableSharedMemoryManager; |
30 } | 35 } |
31 | 36 |
32 namespace service_manager { | 37 namespace service_manager { |
33 class Connector; | 38 class Connector; |
34 class Identity; | 39 class Identity; |
35 } | 40 } |
36 | 41 |
37 namespace ui { | 42 namespace ui { |
38 class GpuService; | 43 class GpuService; |
39 } | 44 } |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 gfx::Point GetCursorScreenPoint() override; | 126 gfx::Point GetCursorScreenPoint() override; |
122 aura::Window* GetWindowAtScreenPoint(const gfx::Point& point) override; | 127 aura::Window* GetWindowAtScreenPoint(const gfx::Point& point) override; |
123 | 128 |
124 // ui:OSExchangeDataProviderFactory::Factory: | 129 // ui:OSExchangeDataProviderFactory::Factory: |
125 std::unique_ptr<OSExchangeData::Provider> BuildProvider() override; | 130 std::unique_ptr<OSExchangeData::Provider> BuildProvider() override; |
126 | 131 |
127 static MusClient* instance_; | 132 static MusClient* instance_; |
128 | 133 |
129 service_manager::Identity identity_; | 134 service_manager::Identity identity_; |
130 | 135 |
| 136 std::unique_ptr<base::Thread> io_thread_; |
| 137 |
131 base::ObserverList<MusClientObserver> observer_list_; | 138 base::ObserverList<MusClientObserver> observer_list_; |
132 | 139 |
133 std::unique_ptr<wm::WMState> wm_state_; | 140 std::unique_ptr<wm::WMState> wm_state_; |
134 | 141 |
135 std::unique_ptr<ScreenMus> screen_; | 142 std::unique_ptr<ScreenMus> screen_; |
136 | 143 |
137 std::unique_ptr<aura::PropertyConverter> property_converter_; | 144 std::unique_ptr<aura::PropertyConverter> property_converter_; |
138 | 145 |
139 std::unique_ptr<aura::WindowTreeClient> window_tree_client_; | 146 std::unique_ptr<aura::WindowTreeClient> window_tree_client_; |
140 | 147 |
141 std::unique_ptr<ui::GpuService> gpu_service_; | 148 std::unique_ptr<ui::GpuService> gpu_service_; |
142 | 149 |
143 std::unique_ptr<PointerWatcherEventRouter2> pointer_watcher_event_router_; | 150 std::unique_ptr<PointerWatcherEventRouter2> pointer_watcher_event_router_; |
144 | 151 |
145 std::unique_ptr<aura::MusContextFactory> compositor_context_factory_; | 152 std::unique_ptr<aura::MusContextFactory> compositor_context_factory_; |
146 | 153 |
| 154 std::unique_ptr<discardable_memory::ClientDiscardableSharedMemoryManager> |
| 155 discardable_shared_memory_manager_; |
| 156 |
147 DISALLOW_COPY_AND_ASSIGN(MusClient); | 157 DISALLOW_COPY_AND_ASSIGN(MusClient); |
148 }; | 158 }; |
149 | 159 |
150 } // namespace views | 160 } // namespace views |
151 | 161 |
152 #endif // UI_VIEWS_MUS_MUS_CLIENT_H_ | 162 #endif // UI_VIEWS_MUS_MUS_CLIENT_H_ |
OLD | NEW |