| 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 #ifndef ASH_WM_ASH_ACTIVATION_CONTROLLER_H_ | 5 #ifndef ASH_WM_ASH_ACTIVATION_CONTROLLER_H_ |
| 6 #define ASH_WM_ASH_ACTIVATION_CONTROLLER_H_ | 6 #define ASH_WM_ASH_ACTIVATION_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "ash/wm/activation_controller_delegate.h" | 8 #include "ash/wm/activation_controller_delegate.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 | 11 |
| 12 namespace ash { | 12 namespace ash { |
| 13 namespace internal { | 13 namespace internal { |
| 14 | 14 |
| 15 class AshActivationController : public ActivationControllerDelegate { | 15 class AshActivationController : public ActivationControllerDelegate { |
| 16 public: | 16 public: |
| 17 AshActivationController(); | 17 AshActivationController(); |
| 18 virtual ~AshActivationController(); | 18 virtual ~AshActivationController(); |
| 19 | 19 |
| 20 private: | 20 private: |
| 21 // Overridden from ActivationControllerDelegate: | 21 // Overridden from ActivationControllerDelegate: |
| 22 virtual aura::Window* WillActivateWindow(aura::Window* window) OVERRIDE; | 22 virtual aura::Window* WillActivateWindow(aura::Window* window) OVERRIDE; |
| 23 virtual aura::Window* WillFocusWindow(aura::Window* window) OVERRIDE; | 23 virtual aura::Window* WillFocusWindow(aura::Window* window) OVERRIDE; |
| 24 | 24 |
| 25 // Returns a handle to the launcher on the active root window which will |
| 26 // be activated as fallback. Also notifies the launcher, so it can return |
| 27 // true from Launcher::CanActivate(). |
| 28 aura::Window* PrepareToActivateLauncher(); |
| 29 |
| 25 DISALLOW_COPY_AND_ASSIGN(AshActivationController); | 30 DISALLOW_COPY_AND_ASSIGN(AshActivationController); |
| 26 }; | 31 }; |
| 27 | 32 |
| 28 } // namespace internal | 33 } // namespace internal |
| 29 } // namespace ash | 34 } // namespace ash |
| 30 | 35 |
| 31 #endif // ASH_WM_ASH_ACTIVATION_CONTROLLER_H_ | 36 #endif // ASH_WM_ASH_ACTIVATION_CONTROLLER_H_ |
| OLD | NEW |