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

Unified Diff: mojo/services/view_manager/view_manager_init_service_impl.h

Issue 400113005: A new WM bootstrap flow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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/view_manager/view_manager_init_service_impl.h
diff --git a/mojo/services/view_manager/view_manager_init_service_impl.h b/mojo/services/view_manager/view_manager_init_service_impl.h
index f659df98a366bffeefc9c92a09a1b5d7efeb0118..a10af10d6909f51eb7b586949759b147cf3ddf3b 100644
--- a/mojo/services/view_manager/view_manager_init_service_impl.h
+++ b/mojo/services/view_manager/view_manager_init_service_impl.h
@@ -12,7 +12,6 @@
#include "base/memory/scoped_vector.h"
#include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h"
#include "mojo/services/view_manager/root_node_manager.h"
-#include "mojo/services/view_manager/root_view_manager_delegate.h"
#include "mojo/services/view_manager/view_manager_export.h"
namespace mojo {
@@ -23,6 +22,8 @@ class ServiceProvider;
namespace view_manager {
namespace service {
+class ViewManagerInitServiceContext;
+
#if defined(OS_WIN)
// Equivalent of NON_EXPORTED_BASE which does not work with the template snafu
// below.
@@ -33,12 +34,16 @@ namespace service {
// Used to create the initial ViewManagerClient. Doesn't initiate the Connect()
// until the WindowTreeHost has been created.
class MOJO_VIEW_MANAGER_EXPORT ViewManagerInitServiceImpl
- : public InterfaceImpl<ViewManagerInitService>,
- public RootViewManagerDelegate {
+ : public InterfaceImpl<ViewManagerInitService> {
public:
- explicit ViewManagerInitServiceImpl(ApplicationConnection* connection);
+ ViewManagerInitServiceImpl(ApplicationConnection* connection,
+ ViewManagerInitServiceContext* context);
virtual ~ViewManagerInitServiceImpl();
+ void OnNativeViewportDeleted();
+
+ void OnRootViewManagerWindowTreeHostCreated();
+
private:
struct ConnectParams {
ConnectParams();
@@ -54,15 +59,10 @@ class MOJO_VIEW_MANAGER_EXPORT ViewManagerInitServiceImpl
virtual void Embed(const String& url,
const Callback<void(bool)>& callback) OVERRIDE;
- // RootViewManagerDelegate overrides:
- virtual void OnRootViewManagerWindowTreeHostCreated() OVERRIDE;
-
- void OnNativeViewportDeleted();
+ ViewManagerInitServiceContext* context_;
ServiceProvider* service_provider_;
- RootNodeManager root_node_manager_;
-
// Stores information about inbound calls to Embed() pending execution on
// the window tree host being ready to use.
ScopedVector<ConnectParams> connect_params_;

Powered by Google App Engine
This is Rietveld 408576698