| 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" |
| 11 #include "ui/aura/aura_export.h" | |
| 12 #include "ui/aura/client/activation_client.h" | 11 #include "ui/aura/client/activation_client.h" |
| 13 #include "ui/aura/env_observer.h" | 12 #include "ui/aura/env_observer.h" |
| 14 #include "ui/aura/focus_change_observer.h" | 13 #include "ui/aura/focus_change_observer.h" |
| 15 #include "ui/aura/root_window_observer.h" | 14 #include "ui/aura/root_window_observer.h" |
| 16 #include "ui/aura/window_observer.h" | 15 #include "ui/aura/window_observer.h" |
| 16 #include "ui/views/views_export.h" |
| 17 | 17 |
| 18 namespace aura { | 18 namespace aura { |
| 19 class FocusManager; | 19 class FocusManager; |
| 20 namespace client { | 20 namespace client { |
| 21 class ActivationChangeObserver; | 21 class ActivationChangeObserver; |
| 22 } | 22 } |
| 23 | 23 |
| 24 // An activation client that handles activation events in a single | 24 // An activation client that handles activation events in a single |
| 25 // RootWindow. Used only on the Desktop where there can be multiple RootWindow | 25 // RootWindow. Used only on the Desktop where there can be multiple RootWindow |
| 26 // objects. | 26 // objects. |
| 27 class AURA_EXPORT DesktopActivationClient : public client::ActivationClient, | 27 class VIEWS_EXPORT DesktopActivationClient : public client::ActivationClient, |
| 28 public WindowObserver, | 28 public WindowObserver, |
| 29 public FocusChangeObserver { | 29 public FocusChangeObserver { |
| 30 public: | 30 public: |
| 31 explicit DesktopActivationClient(FocusManager* focus_manager); | 31 explicit DesktopActivationClient(FocusManager* focus_manager); |
| 32 virtual ~DesktopActivationClient(); | 32 virtual ~DesktopActivationClient(); |
| 33 | 33 |
| 34 // ActivationClient: | 34 // ActivationClient: |
| 35 virtual void AddObserver(client::ActivationChangeObserver* observer) OVERRIDE; | 35 virtual void AddObserver(client::ActivationChangeObserver* observer) OVERRIDE; |
| 36 virtual void RemoveObserver( | 36 virtual void RemoveObserver( |
| 37 client::ActivationChangeObserver* observer) OVERRIDE; | 37 client::ActivationChangeObserver* observer) OVERRIDE; |
| 38 virtual void ActivateWindow(Window* window) OVERRIDE; | 38 virtual void ActivateWindow(Window* window) OVERRIDE; |
| 39 virtual void DeactivateWindow(Window* window) OVERRIDE; | 39 virtual void DeactivateWindow(Window* window) OVERRIDE; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 66 ObserverList<client::ActivationChangeObserver> observers_; | 66 ObserverList<client::ActivationChangeObserver> observers_; |
| 67 | 67 |
| 68 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; | 68 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(DesktopActivationClient); | 70 DISALLOW_COPY_AND_ASSIGN(DesktopActivationClient); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace aura | 73 } // namespace aura |
| 74 | 74 |
| 75 #endif // UI_AURA_DESKTOP_DESTKOP_ACTIVATION_CLIENT_H_ | 75 #endif // UI_AURA_DESKTOP_DESTKOP_ACTIVATION_CLIENT_H_ |
| OLD | NEW |