| 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 | 9 |
| 10 #include "ash/accelerators/accelerator_controller.h" | 10 #include "ash/accelerators/accelerator_controller.h" |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 #if defined(OS_CHROMEOS) | 413 #if defined(OS_CHROMEOS) |
| 414 if (projecting_observer_) | 414 if (projecting_observer_) |
| 415 projecting_observer_->OnCastingSessionStartedOrStopped(started); | 415 projecting_observer_->OnCastingSessionStartedOrStopped(started); |
| 416 #endif | 416 #endif |
| 417 } | 417 } |
| 418 | 418 |
| 419 void Shell::OnOverviewModeStarting() { | 419 void Shell::OnOverviewModeStarting() { |
| 420 FOR_EACH_OBSERVER(ShellObserver, observers_, OnOverviewModeStarting()); | 420 FOR_EACH_OBSERVER(ShellObserver, observers_, OnOverviewModeStarting()); |
| 421 } | 421 } |
| 422 | 422 |
| 423 void Shell::OnOverviewModeEnding() { | 423 void Shell::OnOverviewModeEnded() { |
| 424 FOR_EACH_OBSERVER(ShellObserver, observers_, OnOverviewModeEnding()); | 424 FOR_EACH_OBSERVER(ShellObserver, observers_, OnOverviewModeEnded()); |
| 425 } | 425 } |
| 426 | 426 |
| 427 void Shell::OnMaximizeModeStarted() { | 427 void Shell::OnMaximizeModeStarted() { |
| 428 FOR_EACH_OBSERVER(ShellObserver, observers_, OnMaximizeModeStarted()); | 428 FOR_EACH_OBSERVER(ShellObserver, observers_, OnMaximizeModeStarted()); |
| 429 } | 429 } |
| 430 | 430 |
| 431 void Shell::OnMaximizeModeEnded() { | 431 void Shell::OnMaximizeModeEnded() { |
| 432 FOR_EACH_OBSERVER(ShellObserver, observers_, OnMaximizeModeEnded()); | 432 FOR_EACH_OBSERVER(ShellObserver, observers_, OnMaximizeModeEnded()); |
| 433 } | 433 } |
| 434 | 434 |
| (...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1161 //////////////////////////////////////////////////////////////////////////////// | 1161 //////////////////////////////////////////////////////////////////////////////// |
| 1162 // Shell, aura::client::ActivationChangeObserver implementation: | 1162 // Shell, aura::client::ActivationChangeObserver implementation: |
| 1163 | 1163 |
| 1164 void Shell::OnWindowActivated(aura::Window* gained_active, | 1164 void Shell::OnWindowActivated(aura::Window* gained_active, |
| 1165 aura::Window* lost_active) { | 1165 aura::Window* lost_active) { |
| 1166 if (gained_active) | 1166 if (gained_active) |
| 1167 target_root_window_ = gained_active->GetRootWindow(); | 1167 target_root_window_ = gained_active->GetRootWindow(); |
| 1168 } | 1168 } |
| 1169 | 1169 |
| 1170 } // namespace ash | 1170 } // namespace ash |
| OLD | NEW |