| 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);
|
| }
|
|
|
|
|