Index: ui/aura/window.cc |
=================================================================== |
--- ui/aura/window.cc (revision 119894) |
+++ ui/aura/window.cc (working copy) |
@@ -144,6 +144,15 @@ |
return layer_owner_.release(); |
} |
+RootWindow* Window::GetRootWindow() { |
+ return const_cast<RootWindow*>( |
+ static_cast<const Window*>(this)->GetRootWindow()); |
+} |
+ |
+const RootWindow* Window::GetRootWindow() const { |
+ return parent_ ? parent_->GetRootWindow() : NULL; |
+} |
+ |
void Window::Show() { |
SetVisible(true); |
} |
@@ -510,10 +519,6 @@ |
return it != children_.end(); |
} |
-RootWindow* Window::GetRootWindow() { |
- return parent_ ? parent_->GetRootWindow() : NULL; |
-} |
- |
void Window::OnWindowDetachingFromRootWindow(aura::Window* window) { |
} |