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/mus/bridge/wm_shell_mus.h" | 5 #include "ash/mus/bridge/wm_shell_mus.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/common/accelerators/accelerator_controller.h" | 9 #include "ash/common/accelerators/accelerator_controller.h" |
10 #include "ash/common/key_event_watcher.h" | 10 #include "ash/common/key_event_watcher.h" |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
385 void WmShellMus::OnOverviewModeStarting() { | 385 void WmShellMus::OnOverviewModeStarting() { |
386 for (auto& observer : *shell_observers()) | 386 for (auto& observer : *shell_observers()) |
387 observer.OnOverviewModeStarting(); | 387 observer.OnOverviewModeStarting(); |
388 } | 388 } |
389 | 389 |
390 void WmShellMus::OnOverviewModeEnded() { | 390 void WmShellMus::OnOverviewModeEnded() { |
391 for (auto& observer : *shell_observers()) | 391 for (auto& observer : *shell_observers()) |
392 observer.OnOverviewModeEnded(); | 392 observer.OnOverviewModeEnded(); |
393 } | 393 } |
394 | 394 |
395 void WmShellMus::OnUserSessionStateActive() { | |
396 CreateShelf(); | |
397 // Mash has a different codepath for virtual keyboard initialization. | |
msw
2016/12/16 16:26:20
This comment is a bit odd, since nothing keyboard
James Cook
2016/12/20 04:02:43
This codepath doesn't exist anymore.
| |
398 } | |
399 | |
395 SessionStateDelegate* WmShellMus::GetSessionStateDelegate() { | 400 SessionStateDelegate* WmShellMus::GetSessionStateDelegate() { |
396 return session_state_delegate_.get(); | 401 return session_state_delegate_.get(); |
397 } | 402 } |
398 | 403 |
399 void WmShellMus::AddActivationObserver(WmActivationObserver* observer) { | 404 void WmShellMus::AddActivationObserver(WmActivationObserver* observer) { |
400 activation_observers_.AddObserver(observer); | 405 activation_observers_.AddObserver(observer); |
401 } | 406 } |
402 | 407 |
403 void WmShellMus::RemoveActivationObserver(WmActivationObserver* observer) { | 408 void WmShellMus::RemoveActivationObserver(WmActivationObserver* observer) { |
404 activation_observers_.RemoveObserver(observer); | 409 activation_observers_.RemoveObserver(observer); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
458 WmWindow* gained_active_wm = WmWindowMus::Get(gained_active); | 463 WmWindow* gained_active_wm = WmWindowMus::Get(gained_active); |
459 if (gained_active_wm) | 464 if (gained_active_wm) |
460 set_root_window_for_new_windows(gained_active_wm->GetRootWindow()); | 465 set_root_window_for_new_windows(gained_active_wm->GetRootWindow()); |
461 WmWindow* lost_active_wm = WmWindowMus::Get(lost_active); | 466 WmWindow* lost_active_wm = WmWindowMus::Get(lost_active); |
462 for (auto& observer : activation_observers_) | 467 for (auto& observer : activation_observers_) |
463 observer.OnWindowActivated(gained_active_wm, lost_active_wm); | 468 observer.OnWindowActivated(gained_active_wm, lost_active_wm); |
464 } | 469 } |
465 | 470 |
466 } // namespace mus | 471 } // namespace mus |
467 } // namespace ash | 472 } // namespace ash |
OLD | NEW |