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

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

Issue 286973009: Revert 270925 "Tweaks to ViewManager:" (Closed) Base URL: svn://svn.chromium.org/chrome/
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: trunk/src/mojo/services/view_manager/node.h
===================================================================
--- trunk/src/mojo/services/view_manager/node.h (revision 270932)
+++ trunk/src/mojo/services/view_manager/node.h (working copy)
@@ -39,24 +39,13 @@
aura::Window* window() { return &window_; }
- const Node* GetParent() const;
- Node* GetParent() {
- return const_cast<Node*>(const_cast<const Node*>(this)->GetParent());
- }
+ Node* GetParent();
- const Node* GetRoot() const;
- Node* GetRoot() {
- return const_cast<Node*>(const_cast<const Node*>(this)->GetRoot());
- }
-
std::vector<Node*> GetChildren();
- bool Contains(const Node* node) const;
-
// Sets the view associated with this node. Node does not own its View.
void SetView(View* view);
View* view() { return view_; }
- const View* view() const { return view_; }
private:
// WindowObserver overrides:

Powered by Google App Engine
This is Rietveld 408576698