Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Side by Side Diff: ui/views/mus/mus_client.h

Issue 2644093002: aura: Some change to how the client-lib is set up. (Closed)
Patch Set: . Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/aura/mus/window_tree_client.cc ('k') | ui/views/mus/mus_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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;
24 class Window; 23 class Window;
25 class WindowTreeClient; 24 class WindowTreeClient;
26 } 25 }
27 26
28 namespace base { 27 namespace base {
29 class SingleThreadTaskRunner; 28 class SingleThreadTaskRunner;
30 class Thread; 29 class Thread;
31 } 30 }
32 31
33 namespace discardable_memory { 32 namespace discardable_memory {
34 class ClientDiscardableSharedMemoryManager; 33 class ClientDiscardableSharedMemoryManager;
35 } 34 }
36 35
37 namespace service_manager { 36 namespace service_manager {
38 class Connector; 37 class Connector;
39 class Identity; 38 class Identity;
40 } 39 }
41 40
42 namespace ui {
43 class Gpu;
44 }
45
46 namespace wm { 41 namespace wm {
47 class WMState; 42 class WMState;
48 } 43 }
49 44
50 namespace views { 45 namespace views {
51 46
52 class MusClientObserver; 47 class MusClientObserver;
53 class PointerWatcherEventRouter; 48 class PointerWatcherEventRouter;
54 class ScreenMus; 49 class ScreenMus;
55 50
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 ConfigurePropertiesFromParams(const Widget::InitParams& init_params); 88 ConfigurePropertiesFromParams(const Widget::InitParams& init_params);
94 89
95 aura::WindowTreeClient* window_tree_client() { 90 aura::WindowTreeClient* window_tree_client() {
96 return window_tree_client_.get(); 91 return window_tree_client_.get();
97 } 92 }
98 93
99 PointerWatcherEventRouter* pointer_watcher_event_router() { 94 PointerWatcherEventRouter* pointer_watcher_event_router() {
100 return pointer_watcher_event_router_.get(); 95 return pointer_watcher_event_router_.get();
101 } 96 }
102 97
103 ui::Gpu* gpu() { return gpu_.get(); }
104
105 // Creates DesktopNativeWidgetAura with DesktopWindowTreeHostMus. This is 98 // Creates DesktopNativeWidgetAura with DesktopWindowTreeHostMus. This is
106 // set as the factory function used for creating NativeWidgets when a 99 // set as the factory function used for creating NativeWidgets when a
107 // NativeWidget has not been explicitly set. 100 // NativeWidget has not been explicitly set.
108 NativeWidget* CreateNativeWidget(const Widget::InitParams& init_params, 101 NativeWidget* CreateNativeWidget(const Widget::InitParams& init_params,
109 internal::NativeWidgetDelegate* delegate); 102 internal::NativeWidgetDelegate* delegate);
110 103
111 void AddObserver(MusClientObserver* observer); 104 void AddObserver(MusClientObserver* observer);
112 void RemoveObserver(MusClientObserver* observer); 105 void RemoveObserver(MusClientObserver* observer);
113 106
114 private: 107 private:
(...skipping 28 matching lines...) Expand all
143 // NOTE: this may be null (creation is based on argument supplied to 136 // NOTE: this may be null (creation is based on argument supplied to
144 // constructor). 137 // constructor).
145 std::unique_ptr<wm::WMState> wm_state_; 138 std::unique_ptr<wm::WMState> wm_state_;
146 139
147 std::unique_ptr<ScreenMus> screen_; 140 std::unique_ptr<ScreenMus> screen_;
148 141
149 std::unique_ptr<aura::PropertyConverter> property_converter_; 142 std::unique_ptr<aura::PropertyConverter> property_converter_;
150 143
151 std::unique_ptr<aura::WindowTreeClient> window_tree_client_; 144 std::unique_ptr<aura::WindowTreeClient> window_tree_client_;
152 145
153 std::unique_ptr<ui::Gpu> gpu_;
154
155 std::unique_ptr<PointerWatcherEventRouter> pointer_watcher_event_router_; 146 std::unique_ptr<PointerWatcherEventRouter> pointer_watcher_event_router_;
156 147
157 std::unique_ptr<aura::MusContextFactory> compositor_context_factory_;
158
159 std::unique_ptr<discardable_memory::ClientDiscardableSharedMemoryManager> 148 std::unique_ptr<discardable_memory::ClientDiscardableSharedMemoryManager>
160 discardable_shared_memory_manager_; 149 discardable_shared_memory_manager_;
161 150
162 DISALLOW_COPY_AND_ASSIGN(MusClient); 151 DISALLOW_COPY_AND_ASSIGN(MusClient);
163 }; 152 };
164 153
165 } // namespace views 154 } // namespace views
166 155
167 #endif // UI_VIEWS_MUS_MUS_CLIENT_H_ 156 #endif // UI_VIEWS_MUS_MUS_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/window_tree_client.cc ('k') | ui/views/mus/mus_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698