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

Unified Diff: ui/aura_shell/laptop_mode_layout_manager.cc

Issue 8968022: Shell related switches -> aura shell switches. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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/drag_drop_controller_unittest.cc ('k') | ui/aura_shell/modal_container_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/laptop_mode_layout_manager.cc
===================================================================
--- ui/aura_shell/laptop_mode_layout_manager.cc (revision 114849)
+++ ui/aura_shell/laptop_mode_layout_manager.cc (working copy)
@@ -27,7 +27,7 @@
void LaptopModeLayoutManager::OnWindowAddedToLayout(aura::Window* child) {
windows_.insert(child);
child->AddObserver(this);
- if (child->GetProperty(aura::kShowStateKey))
+ if (child->GetProperty(aura::client::kShowStateKey))
UpdateBoundsFromShowState(child);
}
@@ -48,7 +48,7 @@
gfx::Rect bounds = requested_bounds;
// Avoid a janky resize on startup by ensuring the initial bounds fill the
// screen.
- if (child->GetIntProperty(aura::kShowStateKey) == ui::SHOW_STATE_MAXIMIZED)
+ if (IsWindowMaximized(child))
bounds = gfx::Screen::GetPrimaryMonitorBounds();
SetChildBoundsDirect(child, bounds);
}
@@ -56,7 +56,7 @@
void LaptopModeLayoutManager::OnWindowPropertyChanged(aura::Window* window,
const char* name,
void* old) {
- if (name == aura::kShowStateKey)
+ if (name == aura::client::kShowStateKey)
UpdateBoundsFromShowState(window);
}
« no previous file with comments | « ui/aura_shell/drag_drop_controller_unittest.cc ('k') | ui/aura_shell/modal_container_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698