OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 UI_WM_CORE_DEFAULT_ACTIVATION_CLIENT_H_ | 5 #ifndef UI_WM_CORE_DEFAULT_ACTIVATION_CLIENT_H_ |
6 #define UI_WM_CORE_DEFAULT_ACTIVATION_CLIENT_H_ | 6 #define UI_WM_CORE_DEFAULT_ACTIVATION_CLIENT_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 public aura::WindowObserver { | 32 public aura::WindowObserver { |
33 public: | 33 public: |
34 explicit DefaultActivationClient(aura::Window* root_window); | 34 explicit DefaultActivationClient(aura::Window* root_window); |
35 | 35 |
36 // Overridden from aura::client::ActivationClient: | 36 // Overridden from aura::client::ActivationClient: |
37 void AddObserver(aura::client::ActivationChangeObserver* observer) override; | 37 void AddObserver(aura::client::ActivationChangeObserver* observer) override; |
38 void RemoveObserver( | 38 void RemoveObserver( |
39 aura::client::ActivationChangeObserver* observer) override; | 39 aura::client::ActivationChangeObserver* observer) override; |
40 void ActivateWindow(aura::Window* window) override; | 40 void ActivateWindow(aura::Window* window) override; |
41 void DeactivateWindow(aura::Window* window) override; | 41 void DeactivateWindow(aura::Window* window) override; |
42 aura::Window* GetActiveWindow() override; | 42 const aura::Window* GetActiveWindow() const override; |
43 aura::Window* GetActivatableWindow(aura::Window* window) override; | 43 aura::Window* GetActivatableWindow(aura::Window* window) override; |
44 aura::Window* GetToplevelWindow(aura::Window* window) override; | 44 aura::Window* GetToplevelWindow(aura::Window* window) override; |
45 bool CanActivateWindow(aura::Window* window) const override; | 45 bool CanActivateWindow(aura::Window* window) const override; |
46 | 46 |
47 // Overridden from WindowObserver: | 47 // Overridden from WindowObserver: |
48 void OnWindowDestroyed(aura::Window* window) override; | 48 void OnWindowDestroyed(aura::Window* window) override; |
49 | 49 |
50 private: | 50 private: |
51 class Deleter; | 51 class Deleter; |
52 | 52 |
(...skipping 14 matching lines...) Expand all Loading... |
67 aura::Window* last_active_; | 67 aura::Window* last_active_; |
68 | 68 |
69 base::ObserverList<aura::client::ActivationChangeObserver> observers_; | 69 base::ObserverList<aura::client::ActivationChangeObserver> observers_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(DefaultActivationClient); | 71 DISALLOW_COPY_AND_ASSIGN(DefaultActivationClient); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace wm | 74 } // namespace wm |
75 | 75 |
76 #endif // UI_WM_CORE_DEFAULT_ACTIVATION_CLIENT_H_ | 76 #endif // UI_WM_CORE_DEFAULT_ACTIVATION_CLIENT_H_ |
OLD | NEW |