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

Unified Diff: mojo/services/public/cpp/view_manager/window_manager_delegate.h

Issue 433513005: Pass ServiceProvider thru ViewManagerService::Embed() allowing embedder & embeddee to expose servic… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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/public/cpp/view_manager/window_manager_delegate.h
diff --git a/mojo/services/public/cpp/view_manager/window_manager_delegate.h b/mojo/services/public/cpp/view_manager/window_manager_delegate.h
index 41f841c03b8f1923593cb64da53fea5de211f2bd..6214832b4d51e8cc2dc5acacd82f28839d152c53 100644
--- a/mojo/services/public/cpp/view_manager/window_manager_delegate.h
+++ b/mojo/services/public/cpp/view_manager/window_manager_delegate.h
@@ -5,6 +5,7 @@
#ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_WINDOW_MANAGER_DELEGATE_H_
#define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_WINDOW_MANAGER_DELEGATE_H_
+#include "mojo/public/interfaces/application/service_provider.mojom.h"
#include "mojo/services/public/interfaces/input_events/input_events.mojom.h"
namespace mojo {
@@ -16,7 +17,8 @@ class View;
class WindowManagerDelegate {
public:
// Create an appropriate node to embed |url|.
- virtual void Embed(const String& url) = 0;
+ virtual void Embed(const String& url,
+ InterfaceRequest<ServiceProvider> service_provider) {}
// Dispatch the supplied input event to the appropriate view (taking into
// account focus, activation, modality, etc.).

Powered by Google App Engine
This is Rietveld 408576698