OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/aura/wm_shell_aura.h" | 5 #include "ash/aura/wm_shell_aura.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/aura/key_event_watcher_aura.h" | 9 #include "ash/aura/key_event_watcher_aura.h" |
10 #include "ash/aura/pointer_watcher_adapter.h" | 10 #include "ash/aura/pointer_watcher_adapter.h" |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 } | 311 } |
312 | 312 |
313 void WmShellAura::OnAttemptToReactivateWindow(aura::Window* request_active, | 313 void WmShellAura::OnAttemptToReactivateWindow(aura::Window* request_active, |
314 aura::Window* actual_active) { | 314 aura::Window* actual_active) { |
315 for (auto& observer : activation_observers_) { | 315 for (auto& observer : activation_observers_) { |
316 observer.OnAttemptToReactivateWindow(WmWindowAura::Get(request_active), | 316 observer.OnAttemptToReactivateWindow(WmWindowAura::Get(request_active), |
317 WmWindowAura::Get(actual_active)); | 317 WmWindowAura::Get(actual_active)); |
318 } | 318 } |
319 } | 319 } |
320 | 320 |
321 void WmShellAura::SessionStateChanged(session_manager::SessionState state) { | |
322 // Create the shelf if necessary. | |
323 WmShell::SessionStateChanged(state); | |
324 | |
325 // Recreate the keyboard after initial login and after multiprofile login. | |
326 if (state == session_manager::SessionState::ACTIVE) | |
327 Shell::GetInstance()->CreateKeyboard(); | |
328 } | |
329 | |
330 void WmShellAura::OnDisplayConfigurationChanging() { | 321 void WmShellAura::OnDisplayConfigurationChanging() { |
331 for (auto& observer : display_observers_) | 322 for (auto& observer : display_observers_) |
332 observer.OnDisplayConfigurationChanging(); | 323 observer.OnDisplayConfigurationChanging(); |
333 } | 324 } |
334 | 325 |
335 void WmShellAura::OnDisplayConfigurationChanged() { | 326 void WmShellAura::OnDisplayConfigurationChanged() { |
336 for (auto& observer : display_observers_) | 327 for (auto& observer : display_observers_) |
337 observer.OnDisplayConfigurationChanged(); | 328 observer.OnDisplayConfigurationChanged(); |
338 } | 329 } |
339 | 330 |
340 } // namespace ash | 331 } // namespace ash |
OLD | NEW |