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

Side by Side Diff: components/mus/ws/window_tree_host_impl.h

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
Patch Set: . Created 4 years, 10 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 | « components/mus/ws/window_tree_apptest.cc ('k') | components/mus/ws/window_tree_host_impl.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 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 COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <queue> 10 #include <queue>
(...skipping 30 matching lines...) Expand all
41 public mojom::WindowTreeHost, 41 public mojom::WindowTreeHost,
42 public FocusControllerObserver, 42 public FocusControllerObserver,
43 public FocusControllerDelegate, 43 public FocusControllerDelegate,
44 public EventDispatcherDelegate, 44 public EventDispatcherDelegate,
45 public ServerWindowObserver { 45 public ServerWindowObserver {
46 public: 46 public:
47 // TODO(fsamuel): All these parameters are just plumbing for creating 47 // TODO(fsamuel): All these parameters are just plumbing for creating
48 // DisplayManagers. We should probably just store these common parameters 48 // DisplayManagers. We should probably just store these common parameters
49 // in the DisplayManagerFactory and pass them along on DisplayManager::Create. 49 // in the DisplayManagerFactory and pass them along on DisplayManager::Create.
50 WindowTreeHostImpl(ConnectionManager* connection_manager, 50 WindowTreeHostImpl(ConnectionManager* connection_manager,
51 mojo::ApplicationImpl* app_impl, 51 mojo::Shell* shell,
52 const scoped_refptr<GpuState>& gpu_state, 52 const scoped_refptr<GpuState>& gpu_state,
53 const scoped_refptr<SurfacesState>& surfaces_state); 53 const scoped_refptr<SurfacesState>& surfaces_state);
54 ~WindowTreeHostImpl() override; 54 ~WindowTreeHostImpl() override;
55 55
56 // Initializes state that depends on the existence of a WindowTreeHostImpl. 56 // Initializes state that depends on the existence of a WindowTreeHostImpl.
57 void Init(WindowTreeHostDelegate* delegate); 57 void Init(WindowTreeHostDelegate* delegate);
58 58
59 uint32_t id() const { return id_; } 59 uint32_t id() const { return id_; }
60 60
61 const WindowTreeImpl* GetWindowTree() const; 61 const WindowTreeImpl* GetWindowTree() const;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 mojom::FrameDecorationValuesPtr frame_decoration_values_; 219 mojom::FrameDecorationValuesPtr frame_decoration_values_;
220 220
221 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl); 221 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl);
222 }; 222 };
223 223
224 } // namespace ws 224 } // namespace ws
225 } // namespace mus 225 } // namespace mus
226 226
227 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ 227 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « components/mus/ws/window_tree_apptest.cc ('k') | components/mus/ws/window_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698