| Index: ash/wm/lock_window_state.cc
|
| diff --git a/ash/wm/lock_window_state.cc b/ash/wm/lock_window_state.cc
|
| index 591a60dfae09b34b7111fb8d4053f01d69c41fd3..1ebd6bc9ebc2486da161550fbd3b27c4017e1de6 100644
|
| --- a/ash/wm/lock_window_state.cc
|
| +++ b/ash/wm/lock_window_state.cc
|
| @@ -13,6 +13,7 @@
|
| #include "ash/wm/lock_layout_manager.h"
|
| #include "ash/wm/window_animations.h"
|
| #include "ash/wm/window_state.h"
|
| +#include "ash/wm/window_state_aura.h"
|
| #include "ash/wm/window_state_delegate.h"
|
| #include "ash/wm/window_state_util.h"
|
| #include "ash/wm/window_util.h"
|
| @@ -34,7 +35,7 @@ LockWindowState::~LockWindowState() {
|
|
|
| void LockWindowState::OnWMEvent(wm::WindowState* window_state,
|
| const wm::WMEvent* event) {
|
| - aura::Window* window = window_state->window();
|
| + aura::Window* window = window_state->aura_window();
|
| gfx::Rect bounds = window->bounds();
|
|
|
| switch (event->type()) {
|
| @@ -133,7 +134,7 @@ void LockWindowState::UpdateWindow(wm::WindowState* window_state,
|
|
|
| current_state_type_ = target_state;
|
| ::wm::SetWindowVisibilityAnimationType(
|
| - window_state->window(), WINDOW_VISIBILITY_ANIMATION_TYPE_MINIMIZE);
|
| + window_state->aura_window(), WINDOW_VISIBILITY_ANIMATION_TYPE_MINIMIZE);
|
| window_state->window()->Hide();
|
| if (window_state->IsActive())
|
| window_state->Deactivate();
|
| @@ -153,9 +154,9 @@ void LockWindowState::UpdateWindow(wm::WindowState* window_state,
|
| UpdateBounds(window_state);
|
| window_state->NotifyPostStateTypeChange(old_state_type);
|
|
|
| - if ((window_state->window()->TargetVisibility() ||
|
| - old_state_type == wm::WINDOW_STATE_TYPE_MINIMIZED) &&
|
| - !window_state->window()->layer()->visible()) {
|
| + if ((window_state->aura_window()->TargetVisibility() ||
|
| + old_state_type == wm::WINDOW_STATE_TYPE_MINIMIZED) &&
|
| + !window_state->aura_window()->layer()->visible()) {
|
| // The layer may be hidden if the window was previously minimized. Make
|
| // sure it's visible.
|
| window_state->window()->Show();
|
| @@ -193,7 +194,7 @@ void LockWindowState::UpdateBounds(wm::WindowState* window_state) {
|
| keyboard_bounds = keyboard_controller->current_keyboard_bounds();
|
| }
|
| gfx::Rect bounds =
|
| - ScreenUtil::GetShelfDisplayBoundsInRoot(window_state->window());
|
| + ScreenUtil::GetShelfDisplayBoundsInRoot(window_state->aura_window());
|
|
|
| bounds.set_height(bounds.height() - keyboard_bounds.height());
|
|
|
|
|