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 UI_AURA_DESKTOP_DESTKOP_ACTIVATION_CLIENT_H_ | 5 #ifndef UI_AURA_DESKTOP_DESTKOP_ACTIVATION_CLIENT_H_ |
6 #define UI_AURA_DESKTOP_DESTKOP_ACTIVATION_CLIENT_H_ | 6 #define UI_AURA_DESKTOP_DESTKOP_ACTIVATION_CLIENT_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "base/scoped_observer.h" | 10 #include "base/scoped_observer.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 explicit DesktopActivationClient(FocusManager* focus_manager); | 32 explicit DesktopActivationClient(FocusManager* focus_manager); |
33 virtual ~DesktopActivationClient(); | 33 virtual ~DesktopActivationClient(); |
34 | 34 |
35 // ActivationClient: | 35 // ActivationClient: |
36 virtual void AddObserver(client::ActivationChangeObserver* observer) OVERRIDE; | 36 virtual void AddObserver(client::ActivationChangeObserver* observer) OVERRIDE; |
37 virtual void RemoveObserver( | 37 virtual void RemoveObserver( |
38 client::ActivationChangeObserver* observer) OVERRIDE; | 38 client::ActivationChangeObserver* observer) OVERRIDE; |
39 virtual void ActivateWindow(Window* window) OVERRIDE; | 39 virtual void ActivateWindow(Window* window) OVERRIDE; |
40 virtual void DeactivateWindow(Window* window) OVERRIDE; | 40 virtual void DeactivateWindow(Window* window) OVERRIDE; |
41 virtual aura::Window* GetActiveWindow() OVERRIDE; | 41 virtual aura::Window* GetActiveWindow() OVERRIDE; |
42 virtual bool OnWillFocusWindow(Window* window, const Event* event) OVERRIDE; | 42 virtual bool OnWillFocusWindow(Window* window, |
| 43 const ui::Event* event) OVERRIDE; |
43 virtual bool CanActivateWindow(Window* window) const OVERRIDE; | 44 virtual bool CanActivateWindow(Window* window) const OVERRIDE; |
44 | 45 |
45 // Overridden from aura::WindowObserver: | 46 // Overridden from aura::WindowObserver: |
46 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 47 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; |
47 | 48 |
48 // Overridden from aura::EnvObserver: | 49 // Overridden from aura::EnvObserver: |
49 virtual void OnWindowInitialized(aura::Window* window) OVERRIDE; | 50 virtual void OnWindowInitialized(aura::Window* window) OVERRIDE; |
50 | 51 |
51 // Overridden from aura::FocusChangeObserver: | 52 // Overridden from aura::FocusChangeObserver: |
52 virtual void OnWindowFocused(aura::Window* window) OVERRIDE; | 53 virtual void OnWindowFocused(aura::Window* window) OVERRIDE; |
(...skipping 16 matching lines...) Expand all Loading... |
69 ObserverList<client::ActivationChangeObserver> observers_; | 70 ObserverList<client::ActivationChangeObserver> observers_; |
70 | 71 |
71 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; | 72 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(DesktopActivationClient); | 74 DISALLOW_COPY_AND_ASSIGN(DesktopActivationClient); |
74 }; | 75 }; |
75 | 76 |
76 } // namespace aura | 77 } // namespace aura |
77 | 78 |
78 #endif // UI_AURA_DESKTOP_DESTKOP_ACTIVATION_CLIENT_H_ | 79 #endif // UI_AURA_DESKTOP_DESTKOP_ACTIVATION_CLIENT_H_ |
OLD | NEW |