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

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

Issue 818583002: Moves Create() off of View and onto ViewManager (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: merge 2 trunk 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
« no previous file with comments | « mojo/services/view_manager/public/cpp/view.h ('k') | services/window_manager/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7d989f22d702f140dea1f2bb927fc6557bd3a17f..3766c9f96a8ca85f296c5fc7479968eedc56a6ab 100644
--- a/mojo/services/view_manager/public/cpp/view_manager.h
+++ b/mojo/services/view_manager/public/cpp/view_manager.h
@@ -29,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') | services/window_manager/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698