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

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..fd278cc971b9c46356adf6d76f1c66e713d5a4d0 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_; }
+ gfx::Rect bounds() const { return window_.bounds(); }
sky 2014/05/23 13:16:29 const gfx::Rect&
+
const Node* GetParent() const;
Node* GetParent() {
return const_cast<Node*>(const_cast<const Node*>(this)->GetParent());

Powered by Google App Engine
This is Rietveld 408576698