OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_ACTIVATION_CONTROLLER_H_ | 5 #ifndef ASH_WM_ACTIVATION_CONTROLLER_H_ |
6 #define ASH_WM_ACTIVATION_CONTROLLER_H_ | 6 #define ASH_WM_ACTIVATION_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "ui/aura/client/activation_client.h" | 12 #include "ui/aura/client/activation_client.h" |
13 #include "ui/aura/root_window_observer.h" | 13 #include "ui/aura/root_window_observer.h" |
14 #include "ui/aura/window_observer.h" | 14 #include "ui/aura/window_observer.h" |
15 #include "ash/ash_export.h" | 15 #include "ash/ash_export.h" |
16 | 16 |
17 namespace aura_shell { | 17 namespace ash { |
18 namespace internal { | 18 namespace internal { |
19 | 19 |
20 // Exported for unit tests. | 20 // Exported for unit tests. |
21 class ASH_EXPORT ActivationController | 21 class ASH_EXPORT ActivationController |
22 : public aura::client::ActivationClient, | 22 : public aura::client::ActivationClient, |
23 public aura::WindowObserver, | 23 public aura::WindowObserver, |
24 public aura::RootWindowObserver { | 24 public aura::RootWindowObserver { |
25 public: | 25 public: |
26 ActivationController(); | 26 ActivationController(); |
27 virtual ~ActivationController(); | 27 virtual ~ActivationController(); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // For tests that are not running with a Shell instance, | 65 // For tests that are not running with a Shell instance, |
66 // ActivationController's attempts to locate the next active window in | 66 // ActivationController's attempts to locate the next active window in |
67 // GetTopmostWindowToActivate() will crash, so we provide this way for such | 67 // GetTopmostWindowToActivate() will crash, so we provide this way for such |
68 // tests to specify a default container. | 68 // tests to specify a default container. |
69 aura::Window* default_container_for_test_; | 69 aura::Window* default_container_for_test_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(ActivationController); | 71 DISALLOW_COPY_AND_ASSIGN(ActivationController); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace internal | 74 } // namespace internal |
75 } // namespace aura_shell | 75 } // namespace ash |
76 | 76 |
77 #endif // ASH_WM_ACTIVATION_CONTROLLER_H_ | 77 #endif // ASH_WM_ACTIVATION_CONTROLLER_H_ |
OLD | NEW |