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

Unified Diff: ui/aura_shell/examples/window_type_launcher.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_shell/desktop_window.cc ('k') | views/aura_desktop/aura_desktop_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/examples/window_type_launcher.cc
===================================================================
--- ui/aura_shell/examples/window_type_launcher.cc (revision 103502)
+++ ui/aura_shell/examples/window_type_launcher.cc (working copy)
@@ -41,7 +41,7 @@
int shown_window_count = 0;
for (aura::Window::Windows::const_iterator i = windows.begin();
i != windows.end(); ++i) {
- if ((*i)->visibility() != aura::Window::VISIBILITY_HIDDEN) {
+ if ((*i)->visible()) {
total_width += (*i)->bounds().width();
max_height = std::max((*i)->bounds().height(), max_height);
shown_window_count++;
@@ -68,7 +68,7 @@
for (aura::Window::Windows::const_iterator i = windows.begin();
i != windows.end();
++i) {
- if ((*i)->visibility() != aura::Window::VISIBILITY_HIDDEN) {
+ if ((*i)->visible()) {
const gfx::Rect& current_bounds((*i)->bounds());
int y = (containing_size.height() -
current_bounds.height() * *y_scale) / 2;
« no previous file with comments | « ui/aura_shell/desktop_window.cc ('k') | views/aura_desktop/aura_desktop_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698