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

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

Issue 795593004: Update mojo sdk to rev cc531b32182099a5a034a99daff35ed5d38a61c8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More workarounds for MSVC Created 6 years 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/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() {}
};
« no previous file with comments | « mojo/services/view_manager/public/cpp/view.h ('k') | mojo/services/view_manager/public/cpp/view_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698