Index: mojo/services/view_manager/public/cpp/view.h |
diff --git a/mojo/services/view_manager/public/cpp/view.h b/mojo/services/view_manager/public/cpp/view.h |
index 89fc973b2e3f9c331981f050ee6cf1ec487a6ff5..3222b330f08bd5dc2de26a09ee5210596ebc68bd 100644 |
--- a/mojo/services/view_manager/public/cpp/view.h |
+++ b/mojo/services/view_manager/public/cpp/view.h |
@@ -36,10 +36,6 @@ class View { |
using Children = std::vector<View*>; |
using SharedProperties = std::map<std::string, std::vector<uint8_t>>; |
- // Creates and returns a new View (which is owned by the ViewManager). Views |
- // are initially hidden, use SetVisible(true) to show. |
- static View* Create(ViewManager* view_manager); |
- |
// Destroys this view and all its children. |
void Destroy(); |
@@ -138,7 +134,7 @@ class View { |
friend class ViewPrivate; |
friend class ViewManagerClientImpl; |
- explicit View(ViewManager* manager); |
+ View(ViewManager* manager, Id id); |
// Called by the public {Set,Get,Clear}Property functions. |
int64 SetLocalPropertyInternal(const void* key, |