| 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.
|
|
|