| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/shell.h" | 5 #include "ash/shell.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 WmWindow* root_window) { | 448 WmWindow* root_window) { |
| 449 for (auto& observer : shell_observers_) | 449 for (auto& observer : shell_observers_) |
| 450 observer.OnFullscreenStateChanged(is_fullscreen, root_window); | 450 observer.OnFullscreenStateChanged(is_fullscreen, root_window); |
| 451 } | 451 } |
| 452 | 452 |
| 453 void Shell::NotifyPinnedStateChanged(WmWindow* pinned_window) { | 453 void Shell::NotifyPinnedStateChanged(WmWindow* pinned_window) { |
| 454 for (auto& observer : shell_observers_) | 454 for (auto& observer : shell_observers_) |
| 455 observer.OnPinnedStateChanged(pinned_window); | 455 observer.OnPinnedStateChanged(pinned_window); |
| 456 } | 456 } |
| 457 | 457 |
| 458 void Shell::NotifyVirtualKeyboardActivated(bool activated) { | 458 void Shell::NotifyVirtualKeyboardActivated(bool activated, |
| 459 WmWindow* root_window) { |
| 459 for (auto& observer : shell_observers_) | 460 for (auto& observer : shell_observers_) |
| 460 observer.OnVirtualKeyboardStateChanged(activated); | 461 observer.OnVirtualKeyboardStateChanged(activated, root_window); |
| 461 } | 462 } |
| 462 | 463 |
| 463 void Shell::NotifyShelfCreatedForRootWindow(WmWindow* root_window) { | 464 void Shell::NotifyShelfCreatedForRootWindow(WmWindow* root_window) { |
| 464 for (auto& observer : shell_observers_) | 465 for (auto& observer : shell_observers_) |
| 465 observer.OnShelfCreatedForRootWindow(root_window); | 466 observer.OnShelfCreatedForRootWindow(root_window); |
| 466 } | 467 } |
| 467 | 468 |
| 468 void Shell::NotifyShelfAlignmentChanged(WmWindow* root_window) { | 469 void Shell::NotifyShelfAlignmentChanged(WmWindow* root_window) { |
| 469 for (auto& observer : shell_observers_) | 470 for (auto& observer : shell_observers_) |
| 470 observer.OnShelfAlignmentChanged(root_window); | 471 observer.OnShelfAlignmentChanged(root_window); |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1069 void Shell::OnWindowActivated( | 1070 void Shell::OnWindowActivated( |
| 1070 aura::client::ActivationChangeObserver::ActivationReason reason, | 1071 aura::client::ActivationChangeObserver::ActivationReason reason, |
| 1071 aura::Window* gained_active, | 1072 aura::Window* gained_active, |
| 1072 aura::Window* lost_active) { | 1073 aura::Window* lost_active) { |
| 1073 WmWindow* gained_active_wm = WmWindow::Get(gained_active); | 1074 WmWindow* gained_active_wm = WmWindow::Get(gained_active); |
| 1074 if (gained_active_wm) | 1075 if (gained_active_wm) |
| 1075 root_window_for_new_windows_ = gained_active_wm->GetRootWindow(); | 1076 root_window_for_new_windows_ = gained_active_wm->GetRootWindow(); |
| 1076 } | 1077 } |
| 1077 | 1078 |
| 1078 } // namespace ash | 1079 } // namespace ash |
| OLD | NEW |