Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(615)

Side by Side Diff: ash/aura/wm_shell_aura.cc

Issue 2625733003: Re-reland: chromeos: Fix shelf appearing at login screen under mash (Closed)
Patch Set: rebase, fix conflict with sky Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/common/shelf/shelf_widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
321 void WmShellAura::OnDisplayConfigurationChanging() { 330 void WmShellAura::OnDisplayConfigurationChanging() {
322 for (auto& observer : display_observers_) 331 for (auto& observer : display_observers_)
323 observer.OnDisplayConfigurationChanging(); 332 observer.OnDisplayConfigurationChanging();
324 } 333 }
325 334
326 void WmShellAura::OnDisplayConfigurationChanged() { 335 void WmShellAura::OnDisplayConfigurationChanged() {
327 for (auto& observer : display_observers_) 336 for (auto& observer : display_observers_)
328 observer.OnDisplayConfigurationChanged(); 337 observer.OnDisplayConfigurationChanged();
329 } 338 }
330 339
331 } // namespace ash 340 } // namespace ash
OLDNEW
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/common/shelf/shelf_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698