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

Side by Side Diff: components/mus/ws/display_manager_factory.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
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_DISPLAY_MANAGER_FACTORY_H_ 5 #ifndef COMPONENTS_MUS_WS_DISPLAY_MANAGER_FACTORY_H_
6 #define COMPONENTS_MUS_WS_DISPLAY_MANAGER_FACTORY_H_ 6 #define COMPONENTS_MUS_WS_DISPLAY_MANAGER_FACTORY_H_
7 7
8 #include "components/mus/gles2/gpu_state.h" 8 #include "components/mus/gles2/gpu_state.h"
9 #include "mojo/public/cpp/bindings/callback.h" 9 #include "mojo/public/cpp/bindings/callback.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 class ApplicationImpl; 12 class Shell;
13 } 13 }
14 14
15 namespace mus { 15 namespace mus {
16 16
17 namespace ws { 17 namespace ws {
18 18
19 class DisplayManager; 19 class DisplayManager;
20 20
21 // Abstract factory for DisplayManagers. Used by tests to construct test 21 // Abstract factory for DisplayManagers. Used by tests to construct test
22 // DisplayManagers. 22 // DisplayManagers.
23 class DisplayManagerFactory { 23 class DisplayManagerFactory {
24 public: 24 public:
25 virtual DisplayManager* CreateDisplayManager( 25 virtual DisplayManager* CreateDisplayManager(
26 mojo::ApplicationImpl* app_impl, 26 mojo::Shell* shell,
27 const scoped_refptr<mus::GpuState>& gpu_state, 27 const scoped_refptr<mus::GpuState>& gpu_state,
28 const scoped_refptr<mus::SurfacesState>& surfaces_state) = 0; 28 const scoped_refptr<mus::SurfacesState>& surfaces_state) = 0;
29 }; 29 };
30 30
31 } // namespace ws 31 } // namespace ws
32 32
33 } // namespace mus 33 } // namespace mus
34 34
35 #endif // COMPONENTS_MUS_WS_DISPLAY_MANAGER_FACTORY_H_ 35 #endif // COMPONENTS_MUS_WS_DISPLAY_MANAGER_FACTORY_H_
OLDNEW
« no previous file with comments | « components/mus/ws/display_manager.cc ('k') | components/mus/ws/window_manager_client_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698