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