| 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> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 class Gpu; | 43 class Gpu; |
| 44 } | 44 } |
| 45 | 45 |
| 46 namespace wm { | 46 namespace wm { |
| 47 class WMState; | 47 class WMState; |
| 48 } | 48 } |
| 49 | 49 |
| 50 namespace views { | 50 namespace views { |
| 51 | 51 |
| 52 class MusClientObserver; | 52 class MusClientObserver; |
| 53 class PointerWatcherEventRouter2; | 53 class PointerWatcherEventRouter; |
| 54 class ScreenMus; | 54 class ScreenMus; |
| 55 | 55 |
| 56 namespace internal { | 56 namespace internal { |
| 57 class NativeWidgetDelegate; | 57 class NativeWidgetDelegate; |
| 58 } | 58 } |
| 59 | 59 |
| 60 namespace test { | 60 namespace test { |
| 61 class MusClientTestApi; | 61 class MusClientTestApi; |
| 62 } | 62 } |
| 63 | 63 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 89 const Widget::InitParams& init_params); | 89 const Widget::InitParams& init_params); |
| 90 | 90 |
| 91 // Returns the properties to supply to mus when creating a window. | 91 // Returns the properties to supply to mus when creating a window. |
| 92 static std::map<std::string, std::vector<uint8_t>> | 92 static std::map<std::string, std::vector<uint8_t>> |
| 93 ConfigurePropertiesFromParams(const Widget::InitParams& init_params); | 93 ConfigurePropertiesFromParams(const Widget::InitParams& init_params); |
| 94 | 94 |
| 95 aura::WindowTreeClient* window_tree_client() { | 95 aura::WindowTreeClient* window_tree_client() { |
| 96 return window_tree_client_.get(); | 96 return window_tree_client_.get(); |
| 97 } | 97 } |
| 98 | 98 |
| 99 PointerWatcherEventRouter2* pointer_watcher_event_router() { | 99 PointerWatcherEventRouter* pointer_watcher_event_router() { |
| 100 return pointer_watcher_event_router_.get(); | 100 return pointer_watcher_event_router_.get(); |
| 101 } | 101 } |
| 102 | 102 |
| 103 ui::Gpu* gpu() { return gpu_.get(); } | 103 ui::Gpu* gpu() { return gpu_.get(); } |
| 104 | 104 |
| 105 // Creates DesktopNativeWidgetAura with DesktopWindowTreeHostMus. This is | 105 // Creates DesktopNativeWidgetAura with DesktopWindowTreeHostMus. This is |
| 106 // set as the factory function used for creating NativeWidgets when a | 106 // set as the factory function used for creating NativeWidgets when a |
| 107 // NativeWidget has not been explicitly set. | 107 // NativeWidget has not been explicitly set. |
| 108 NativeWidget* CreateNativeWidget(const Widget::InitParams& init_params, | 108 NativeWidget* CreateNativeWidget(const Widget::InitParams& init_params, |
| 109 internal::NativeWidgetDelegate* delegate); | 109 internal::NativeWidgetDelegate* delegate); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 std::unique_ptr<wm::WMState> wm_state_; | 146 std::unique_ptr<wm::WMState> wm_state_; |
| 147 | 147 |
| 148 std::unique_ptr<ScreenMus> screen_; | 148 std::unique_ptr<ScreenMus> screen_; |
| 149 | 149 |
| 150 std::unique_ptr<aura::PropertyConverter> property_converter_; | 150 std::unique_ptr<aura::PropertyConverter> property_converter_; |
| 151 | 151 |
| 152 std::unique_ptr<aura::WindowTreeClient> window_tree_client_; | 152 std::unique_ptr<aura::WindowTreeClient> window_tree_client_; |
| 153 | 153 |
| 154 std::unique_ptr<ui::Gpu> gpu_; | 154 std::unique_ptr<ui::Gpu> gpu_; |
| 155 | 155 |
| 156 std::unique_ptr<PointerWatcherEventRouter2> pointer_watcher_event_router_; | 156 std::unique_ptr<PointerWatcherEventRouter> pointer_watcher_event_router_; |
| 157 | 157 |
| 158 std::unique_ptr<aura::MusContextFactory> compositor_context_factory_; | 158 std::unique_ptr<aura::MusContextFactory> compositor_context_factory_; |
| 159 | 159 |
| 160 std::unique_ptr<discardable_memory::ClientDiscardableSharedMemoryManager> | 160 std::unique_ptr<discardable_memory::ClientDiscardableSharedMemoryManager> |
| 161 discardable_shared_memory_manager_; | 161 discardable_shared_memory_manager_; |
| 162 | 162 |
| 163 DISALLOW_COPY_AND_ASSIGN(MusClient); | 163 DISALLOW_COPY_AND_ASSIGN(MusClient); |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 } // namespace views | 166 } // namespace views |
| 167 | 167 |
| 168 #endif // UI_VIEWS_MUS_MUS_CLIENT_H_ | 168 #endif // UI_VIEWS_MUS_MUS_CLIENT_H_ |
| OLD | NEW |