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

Unified Diff: mojo/services/view_manager/node.h

Issue 296133012: Some security checks around destruction/setting bounds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 months 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/node.h
diff --git a/mojo/services/view_manager/node.h b/mojo/services/view_manager/node.h
index 57c2deab59a7a36614e5ca9d5b0825a31faf10ef..f5896fdd92bcbbb0a6c3f76669192a3024f23fc4 100644
--- a/mojo/services/view_manager/node.h
+++ b/mojo/services/view_manager/node.h
@@ -39,6 +39,8 @@ class MOJO_VIEW_MANAGER_EXPORT Node
aura::Window* window() { return &window_; }
+ const gfx::Rect& bounds() const { return window_.bounds(); }
+
const Node* GetParent() const;
Node* GetParent() {
return const_cast<Node*>(const_cast<const Node*>(this)->GetParent());
« no previous file with comments | « mojo/services/public/interfaces/view_manager/view_manager.mojom ('k') | mojo/services/view_manager/view_manager_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698