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

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

Issue 403083002: Allow EmbedRoot to be called multiple times. (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/public/cpp/view_manager/view_manager.h
diff --git a/mojo/services/public/cpp/view_manager/view_manager.h b/mojo/services/public/cpp/view_manager/view_manager.h
index 3c55e30732dbda2a33d8ea15ef4415486fb2f68a..83b1199fa0dbda4ba8bbf5659ac523db3efb7f49 100644
--- a/mojo/services/public/cpp/view_manager/view_manager.h
+++ b/mojo/services/public/cpp/view_manager/view_manager.h
@@ -17,8 +17,8 @@ namespace view_manager {
class Node;
class View;
-class ViewEventDispatcher;
class ViewManagerDelegate;
+class WindowManagerDelegate;
class ViewManager {
public:
@@ -26,12 +26,13 @@ class ViewManager {
static void ConfigureIncomingConnection(ApplicationConnection* connection,
ViewManagerDelegate* delegate);
- // Sets the event dispatcher. Can only be called by the app rendering to the
- // root Node of the hierarchy.
- virtual void SetEventDispatcher(ViewEventDispatcher* dispatcher) = 0;
+ // Sets the window manager delegate. Can only be called by the app embedded at
+ // the service root node.
+ virtual void SetWindowManagerDelegate(
+ WindowManagerDelegate* window_manager_delegate) = 0;
// Dispatches the supplied event to the specified View. Can be called only
- // by the application that called SetEventDispatcher().
+ // by the application that called SetWindowManagerDelegate().
virtual void DispatchEvent(View* target, EventPtr event) = 0;
// Returns the URL of the application that embedded this application.

Powered by Google App Engine
This is Rietveld 408576698