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

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

Issue 380413003: Mojo: Use InterfaceFactory<Interface> for service registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix network_service_loader Created 6 years, 5 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.h
diff --git a/mojo/services/window_manager/window_manager_app.h b/mojo/services/window_manager/window_manager_app.h
index 9792f76e1788b06c52f969fcacedb4025ba764e4..bcd74db30ccfcd613961aaa99b45acd67d1ea57e 100644
--- a/mojo/services/window_manager/window_manager_app.h
+++ b/mojo/services/window_manager/window_manager_app.h
@@ -10,10 +10,13 @@
#include "base/memory/scoped_ptr.h"
#include "mojo/aura/window_tree_host_mojo_delegate.h"
#include "mojo/public/cpp/application/application_delegate.h"
+#include "mojo/public/cpp/application/interface_factory_with_context.h"
#include "mojo/public/cpp/bindings/string.h"
#include "mojo/services/public/cpp/view_manager/node_observer.h"
#include "mojo/services/public/cpp/view_manager/types.h"
+#include "mojo/services/public/cpp/view_manager/view_manager_client_factory.h"
#include "mojo/services/public/cpp/view_manager/view_manager_delegate.h"
+#include "mojo/services/window_manager/window_manager_service_impl.h"
#include "ui/aura/client/focus_change_observer.h"
#include "ui/wm/public/activation_change_observer.h"
@@ -35,12 +38,15 @@ class AuraInit;
class WindowManagerServiceImpl;
class WindowTreeHostMojo;
-class WindowManagerApp : public ApplicationDelegate,
- public view_manager::ViewManagerDelegate,
- public view_manager::NodeObserver,
- public WindowTreeHostMojoDelegate,
- public aura::client::FocusChangeObserver,
- public aura::client::ActivationChangeObserver {
+class WindowManagerApp
+ : public ApplicationDelegate,
+ public view_manager::ViewManagerDelegate,
+ public view_manager::NodeObserver,
+ public WindowTreeHostMojoDelegate,
+ public aura::client::FocusChangeObserver,
+ public aura::client::ActivationChangeObserver,
+ public InterfaceFactoryWithContext<WindowManagerServiceImpl,
+ WindowManagerApp> {
public:
WindowManagerApp();
virtual ~WindowManagerApp();
@@ -98,6 +104,7 @@ class WindowManagerApp : public ApplicationDelegate,
void UnregisterSubtree(view_manager::Id id);
view_manager::ViewManager* view_manager_;
+ view_manager::ViewManagerClientFactory view_manager_client_factory_;
view_manager::Node* root_;
scoped_ptr<AuraInit> aura_init_;
« no previous file with comments | « mojo/services/window_manager/window_manager_api_unittest.cc ('k') | mojo/services/window_manager/window_manager_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698