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

Unified Diff: ui/aura/desktop.cc

Issue 8082017: Change Window visibility to a simple boolean for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « ui/aura/demo/demo_main.cc ('k') | 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
===================================================================
--- ui/aura/desktop.cc (revision 103502)
+++ ui/aura/desktop.cc (working copy)
@@ -57,7 +57,7 @@
Window* default_parent = new internal::ToplevelWindowContainer;
default_parent->Init();
default_parent->SetBounds(window_->bounds());
- default_parent->SetVisibility(Window::VISIBILITY_SHOWN);
+ default_parent->Show();
window_->AddChild(default_parent);
set_default_parent(default_parent);
}
@@ -136,7 +136,7 @@
Window::Windows windows(default_parent_->children());
for (Window::Windows::const_reverse_iterator i = windows.rbegin();
i != windows.rend(); ++i) {
- if (*i != ignore && (*i)->visibility() == Window::VISIBILITY_SHOWN &&
+ if (*i != ignore && (*i)->visible() &&
(*i)->delegate()->ShouldActivate(NULL))
return *i;
}
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/aura/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698