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

Unified Diff: components/mus/ws/display_manager.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/mus/ws/display_manager.h ('k') | components/mus/ws/display_manager_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/display_manager.cc
diff --git a/components/mus/ws/display_manager.cc b/components/mus/ws/display_manager.cc
index 205a650638f277782faf588fb3f4fb7b76097c0a..dea7a8349fb905341584d7a35886de2f6401f90f 100644
--- a/components/mus/ws/display_manager.cc
+++ b/components/mus/ws/display_manager.cc
@@ -28,7 +28,7 @@
#include "mojo/converters/surfaces/surfaces_utils.h"
#include "mojo/converters/transform/transform_type_converters.h"
#include "mojo/shell/public/cpp/application_connection.h"
-#include "mojo/shell/public/cpp/application_impl.h"
+#include "mojo/shell/public/cpp/shell.h"
#include "third_party/skia/include/core/SkXfermode.h"
#include "ui/base/cursor/cursor_loader.h"
#include "ui/events/event.h"
@@ -154,22 +154,19 @@ DisplayManagerFactory* DisplayManager::factory_ = nullptr;
// static
DisplayManager* DisplayManager::Create(
- mojo::ApplicationImpl* app_impl,
+ mojo::Shell* shell,
const scoped_refptr<GpuState>& gpu_state,
const scoped_refptr<SurfacesState>& surfaces_state) {
- if (factory_) {
- return factory_->CreateDisplayManager(app_impl, gpu_state,
- surfaces_state);
- }
- return new DefaultDisplayManager(app_impl, gpu_state,
- surfaces_state);
+ if (factory_)
+ return factory_->CreateDisplayManager(shell, gpu_state, surfaces_state);
+ return new DefaultDisplayManager(shell, gpu_state, surfaces_state);
}
DefaultDisplayManager::DefaultDisplayManager(
- mojo::ApplicationImpl* app_impl,
+ mojo::Shell* shell,
const scoped_refptr<GpuState>& gpu_state,
const scoped_refptr<SurfacesState>& surfaces_state)
- : app_impl_(app_impl),
+ : shell_(shell),
gpu_state_(gpu_state),
surfaces_state_(surfaces_state),
delegate_(nullptr),
« no previous file with comments | « components/mus/ws/display_manager.h ('k') | components/mus/ws/display_manager_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698