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

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: Merge to trunk 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') | no next file with comments »
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 6364836dbe8dc42deec360eb1a6b2aad92526ba0..6af7e40bfd11dee1bfbe5a49cfafe288ace12196 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());
}
@@ -145,7 +146,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698