| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/wm/lock_window_state.h" | 5 #include "ash/wm/lock_window_state.h" |
| 6 | 6 |
| 7 #include "ash/screen_util.h" | 7 #include "ash/screen_util.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "ash/wm/lock_layout_manager.h" | 9 #include "ash/wm/lock_layout_manager.h" |
| 10 #include "ash/wm/window_animations.h" | 10 #include "ash/wm/window_animations.h" |
| 11 #include "ash/wm/window_state.h" | 11 #include "ash/wm/window_state.h" |
| 12 #include "ash/wm/window_state_delegate.h" | 12 #include "ash/wm/window_state_delegate.h" |
| 13 #include "ash/wm/window_state_util.h" | 13 #include "ash/wm/window_state_util.h" |
| 14 #include "ash/wm/window_util.h" | 14 #include "ash/wm/window_util.h" |
| 15 #include "ash/wm/wm_event.h" | 15 #include "ash/wm/wm_event.h" |
| 16 #include "ui/aura/window.h" | 16 #include "ui/aura/window.h" |
| 17 #include "ui/aura/window_delegate.h" | 17 #include "ui/aura/window_delegate.h" |
| 18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/geometry/rect.h" |
| 19 #include "ui/keyboard/keyboard_controller.h" | 19 #include "ui/keyboard/keyboard_controller.h" |
| 20 #include "ui/keyboard/keyboard_util.h" | 20 #include "ui/keyboard/keyboard_util.h" |
| 21 #include "ui/wm/core/window_animations.h" | 21 #include "ui/wm/core/window_animations.h" |
| 22 | 22 |
| 23 namespace ash { | 23 namespace ash { |
| 24 | 24 |
| 25 LockWindowState::LockWindowState(aura::Window* window) | 25 LockWindowState::LockWindowState(aura::Window* window) |
| 26 : current_state_type_(wm::GetWindowState(window)->GetStateType()) { | 26 : current_state_type_(wm::GetWindowState(window)->GetStateType()) { |
| 27 } | 27 } |
| 28 | 28 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 gfx::Rect bounds = | 179 gfx::Rect bounds = |
| 180 ScreenUtil::GetDisplayBoundsInParent(window_state->window()); | 180 ScreenUtil::GetDisplayBoundsInParent(window_state->window()); |
| 181 bounds.set_height(bounds.height() - keyboard_bounds.height()); | 181 bounds.set_height(bounds.height() - keyboard_bounds.height()); |
| 182 | 182 |
| 183 VLOG(1) << "Updating window bounds to: " << bounds.ToString(); | 183 VLOG(1) << "Updating window bounds to: " << bounds.ToString(); |
| 184 window_state->SetBoundsDirect(bounds); | 184 window_state->SetBoundsDirect(bounds); |
| 185 } | 185 } |
| 186 | 186 |
| 187 } // namespace ash | 187 } // namespace ash |
| OLD | NEW |