| 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 UI_BASE_X_ACTIVE_WINDOW_WATCHER_X_H_ | 5 #ifndef UI_BASE_X_ACTIVE_WINDOW_WATCHER_X_H_ |
| 6 #define UI_BASE_X_ACTIVE_WINDOW_WATCHER_X_H_ | 6 #define UI_BASE_X_ACTIVE_WINDOW_WATCHER_X_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/singleton.h" | |
| 10 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 11 #include "ui/base/ui_export.h" | 10 #include "ui/base/ui_export.h" |
| 12 #include "ui/base/x/x11_util.h" | 11 #include "ui/base/x/x11_util.h" |
| 13 | 12 |
| 13 template <typename T> struct DefaultSingletonTraits; |
| 14 |
| 14 namespace ui { | 15 namespace ui { |
| 15 | 16 |
| 16 class ActiveWindowWatcherXObserver; | 17 class ActiveWindowWatcherXObserver; |
| 17 | 18 |
| 18 namespace internal { | 19 namespace internal { |
| 19 class RootWindowPropertyWatcherX; | 20 class RootWindowPropertyWatcherX; |
| 20 } | 21 } |
| 21 | 22 |
| 22 // This is a helper class that is used to keep track of which window the X | 23 // This is a helper class that is used to keep track of which window the X |
| 23 // window manager thinks is active. Add an Observer to listen for changes to | 24 // window manager thinks is active. Add an Observer to listen for changes to |
| (...skipping 26 matching lines...) Expand all Loading... |
| 50 void NotifyActiveWindowChanged(); | 51 void NotifyActiveWindowChanged(); |
| 51 | 52 |
| 52 ObserverList<ActiveWindowWatcherXObserver> observers_; | 53 ObserverList<ActiveWindowWatcherXObserver> observers_; |
| 53 | 54 |
| 54 DISALLOW_COPY_AND_ASSIGN(ActiveWindowWatcherX); | 55 DISALLOW_COPY_AND_ASSIGN(ActiveWindowWatcherX); |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 } // namespace ui | 58 } // namespace ui |
| 58 | 59 |
| 59 #endif // UI_BASE_X_ACTIVE_WINDOW_WATCHER_X_H_ | 60 #endif // UI_BASE_X_ACTIVE_WINDOW_WATCHER_X_H_ |
| OLD | NEW |