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

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

Issue 805123003: Adds capture to the mojo window_manager. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: sky comments 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.h
diff --git a/mojo/services/view_manager/public/cpp/view.h b/mojo/services/view_manager/public/cpp/view.h
index 8569616aefb5802e963de67fd02d76887b8d5c9f..d3c62923a39956b2fed33eeda755c9ea3f7fa035 100644
--- a/mojo/services/view_manager/public/cpp/view.h
+++ b/mojo/services/view_manager/public/cpp/view.h
@@ -103,6 +103,9 @@ class View {
View* parent() { return parent_; }
const View* parent() const { return parent_; }
const Children& children() const { return children_; }
+ View* GetRoot() {
+ return const_cast<View*>(const_cast<const View*>(this)->GetRoot());
+ }
const View* GetRoot() const;
void AddChild(View* child);

Powered by Google App Engine
This is Rietveld 408576698