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

Unified Diff: mojo/services/window_manager/window_manager_app.cc

Issue 685013002: Refactors event dispatching of NativeViewport into its own interface (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cleanup Created 6 years, 2 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
Index: mojo/services/window_manager/window_manager_app.cc
diff --git a/mojo/services/window_manager/window_manager_app.cc b/mojo/services/window_manager/window_manager_app.cc
index e9e77476571b6297ae86f2287025da728ae78d2c..9af766e194e5af9113563f086c65f74b4569fdc7 100644
--- a/mojo/services/window_manager/window_manager_app.cc
+++ b/mojo/services/window_manager/window_manager_app.cc
@@ -94,13 +94,12 @@ WindowManagerApp::WindowManagerApp(
: shell_(nullptr),
window_manager_service2_factory_(this),
window_manager_factory_(this),
- window_manager_internal_service_factory_(this),
+ native_viewport_event_dispatcher_factory_(this),
wrapped_view_manager_delegate_(view_manager_delegate),
window_manager_delegate_(window_manager_delegate),
view_manager_(NULL),
root_(NULL),
- dummy_delegate_(new DummyDelegate),
- window_manager_client_(nullptr) {
+ dummy_delegate_(new DummyDelegate) {
}
WindowManagerApp::~WindowManagerApp() {}
@@ -381,7 +380,9 @@ void WindowManagerApp::LaunchViewManager(ApplicationImpl* app) {
view_manager_client_ = ViewManagerClientFactory::WeakBindViewManagerToPipe(
pipe.handle0.Pass(), shell_, this).Pass();
- view_manager_app->AddService(&window_manager_internal_service_factory_);
+ view_manager_app->AddService(&native_viewport_event_dispatcher_factory_);
+
+ view_manager_app->ConnectToService(&window_manager_client_);
}
} // namespace mojo
« no previous file with comments | « mojo/services/window_manager/window_manager_app.h ('k') | mojo/services/window_manager/window_manager_internal_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698