| 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_layout_manager.h" | 5 #include "ash/wm/lock_layout_manager.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/shell_delegate.h" | 8 #include "ash/shell_delegate.h" |
| 9 #include "ash/wm/lock_window_state.h" | 9 #include "ash/wm/lock_window_state.h" |
| 10 #include "ash/wm/window_state.h" | 10 #include "ash/wm/window_state.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 is_observing_keyboard_ = true; | 114 is_observing_keyboard_ = true; |
| 115 } | 115 } |
| 116 } else { | 116 } else { |
| 117 keyboard::KeyboardController::GetInstance()->RemoveObserver(this); | 117 keyboard::KeyboardController::GetInstance()->RemoveObserver(this); |
| 118 is_observing_keyboard_ = false; | 118 is_observing_keyboard_ = false; |
| 119 } | 119 } |
| 120 } | 120 } |
| 121 } | 121 } |
| 122 | 122 |
| 123 void LockLayoutManager::OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) { | 123 void LockLayoutManager::OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) { |
| 124 } |
| 125 |
| 126 void LockLayoutManager::OnKeyboardBoundsChanged(const gfx::Rect& new_bounds) { |
| 124 keyboard_bounds_ = new_bounds; | 127 keyboard_bounds_ = new_bounds; |
| 125 OnWindowResized(); | 128 OnWindowResized(); |
| 126 } | 129 } |
| 127 | 130 |
| 128 void LockLayoutManager::AdjustWindowsForWorkAreaChange( | 131 void LockLayoutManager::AdjustWindowsForWorkAreaChange( |
| 129 const wm::WMEvent* event) { | 132 const wm::WMEvent* event) { |
| 130 DCHECK(event->type() == wm::WM_EVENT_DISPLAY_BOUNDS_CHANGED || | 133 DCHECK(event->type() == wm::WM_EVENT_DISPLAY_BOUNDS_CHANGED || |
| 131 event->type() == wm::WM_EVENT_WORKAREA_BOUNDS_CHANGED); | 134 event->type() == wm::WM_EVENT_WORKAREA_BOUNDS_CHANGED); |
| 132 | 135 |
| 133 for (aura::Window::Windows::const_iterator it = window_->children().begin(); | 136 for (aura::Window::Windows::const_iterator it = window_->children().begin(); |
| 134 it != window_->children().end(); | 137 it != window_->children().end(); |
| 135 ++it) { | 138 ++it) { |
| 136 wm::GetWindowState(*it)->OnWMEvent(event); | 139 wm::GetWindowState(*it)->OnWMEvent(event); |
| 137 } | 140 } |
| 138 } | 141 } |
| 139 | 142 |
| 140 } // namespace ash | 143 } // namespace ash |
| OLD | NEW |