| Index: mojo/services/view_manager/public/cpp/view_manager.h
|
| diff --git a/mojo/services/view_manager/public/cpp/view_manager.h b/mojo/services/view_manager/public/cpp/view_manager.h
|
| index 4e0ebccc8f280d4d5470767f3d64e726946ad579..3766c9f96a8ca85f296c5fc7479968eedc56a6ab 100644
|
| --- a/mojo/services/view_manager/public/cpp/view_manager.h
|
| +++ b/mojo/services/view_manager/public/cpp/view_manager.h
|
| @@ -12,10 +12,8 @@
|
| namespace mojo {
|
| class View;
|
|
|
| -// Encapsulates a connection to the view manager service.
|
| -// A unique connection is made for every unique embed path for an app. e.g. for
|
| -// app B embed by the following paths: A->B, A->C->B - there are two connections
|
| -// and thus two instances of this class.
|
| +// Encapsulates a connection to the view manager service. A unique connection
|
| +// is made every time an app is embedded.
|
| class ViewManager {
|
| public:
|
| // Returns the URL of the application that embedded this application.
|
| @@ -31,6 +29,10 @@ class ViewManager {
|
| // focused.
|
| virtual View* GetFocusedView() = 0;
|
|
|
| + // Creates and returns a new View (which is owned by the ViewManager). Views
|
| + // are initially hidden, use SetVisible(true) to show.
|
| + virtual View* CreateView() = 0;
|
| +
|
| protected:
|
| virtual ~ViewManager() {}
|
| };
|
|
|