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

Unified Diff: ui/aura/desktop.cc

Issue 8136005: Makes visbility inherited. That is, in order for a window to be (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Window now gets visibility from Layer. Created 9 years, 2 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
« no previous file with comments | « no previous file | ui/aura/window.h » ('j') | ui/aura/window.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/desktop.cc
diff --git a/ui/aura/desktop.cc b/ui/aura/desktop.cc
index 43d76ba1049e61ada88b294c6a090d1dae49c3af..a38d05b4815074f0c83f32475e16b5a094d1e745 100644
--- a/ui/aura/desktop.cc
+++ b/ui/aura/desktop.cc
@@ -50,6 +50,7 @@ Desktop::~Desktop() {
void Desktop::Init() {
window_->Init();
+ window_->Show();
compositor()->SetRootLayer(window_->layer());
}
@@ -136,7 +137,7 @@ Window* Desktop::GetTopmostWindowToActivate(Window* ignore) {
Window::Windows windows(default_parent_->children());
for (Window::Windows::const_reverse_iterator i = windows.rbegin();
i != windows.rend(); ++i) {
- if (*i != ignore && (*i)->visible() &&
+ if (*i != ignore && (*i)->IsVisible() &&
(*i)->delegate()->ShouldActivate(NULL))
return *i;
}
« no previous file with comments | « no previous file | ui/aura/window.h » ('j') | ui/aura/window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698