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

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

Issue 405803002: Revert 284322 "Allow EmbedRoot to be called multiple times." (Closed) Base URL: svn://svn.chromium.org/chrome/
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: trunk/src/mojo/services/public/cpp/view_manager/view_manager.h
===================================================================
--- trunk/src/mojo/services/public/cpp/view_manager/view_manager.h (revision 284322)
+++ trunk/src/mojo/services/public/cpp/view_manager/view_manager.h (working copy)
@@ -17,8 +17,8 @@
class Node;
class View;
+class ViewEventDispatcher;
class ViewManagerDelegate;
-class WindowManagerDelegate;
class ViewManager {
public:
@@ -26,13 +26,12 @@
static void ConfigureIncomingConnection(ApplicationConnection* connection,
ViewManagerDelegate* delegate);
- // 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;
+ // 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;
// Dispatches the supplied event to the specified View. Can be called only
- // by the application that called SetWindowManagerDelegate().
+ // by the application that called SetEventDispatcher().
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