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/common/wm/window_state.h" | 7 #include "ash/common/wm/window_state.h" |
8 #include "ash/common/wm/wm_event.h" | 8 #include "ash/common/wm/wm_event.h" |
9 #include "ash/common/wm_shell.h" | 9 #include "ash/common/wm_shell.h" |
10 #include "ash/wm/lock_window_state.h" | 10 #include "ash/wm/lock_window_state.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 is_observing_keyboard_ = false; | 113 is_observing_keyboard_ = false; |
114 } | 114 } |
115 } | 115 } |
116 } | 116 } |
117 | 117 |
118 void LockLayoutManager::OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) { | 118 void LockLayoutManager::OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) { |
119 keyboard_bounds_ = new_bounds; | 119 keyboard_bounds_ = new_bounds; |
120 OnWindowResized(); | 120 OnWindowResized(); |
121 } | 121 } |
122 | 122 |
| 123 void LockLayoutManager::OnKeyboardHidden() {} |
| 124 |
123 void LockLayoutManager::AdjustWindowsForWorkAreaChange( | 125 void LockLayoutManager::AdjustWindowsForWorkAreaChange( |
124 const wm::WMEvent* event) { | 126 const wm::WMEvent* event) { |
125 DCHECK(event->type() == wm::WM_EVENT_DISPLAY_BOUNDS_CHANGED || | 127 DCHECK(event->type() == wm::WM_EVENT_DISPLAY_BOUNDS_CHANGED || |
126 event->type() == wm::WM_EVENT_WORKAREA_BOUNDS_CHANGED); | 128 event->type() == wm::WM_EVENT_WORKAREA_BOUNDS_CHANGED); |
127 | 129 |
128 for (aura::Window::Windows::const_iterator it = window_->children().begin(); | 130 for (aura::Window::Windows::const_iterator it = window_->children().begin(); |
129 it != window_->children().end(); ++it) { | 131 it != window_->children().end(); ++it) { |
130 wm::GetWindowState(*it)->OnWMEvent(event); | 132 wm::GetWindowState(*it)->OnWMEvent(event); |
131 } | 133 } |
132 } | 134 } |
133 | 135 |
134 } // namespace ash | 136 } // namespace ash |
OLD | NEW |