Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Side by Side Diff: ui/base/x/active_window_watcher_x.h

Issue 93863005: ui: Rename ui_export.h to ui_base_export.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: UI_BASE_IMPLEMENTATION Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/base/work_area_watcher_observer.h ('k') | ui/base/x/active_window_watcher_x_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_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/observer_list.h" 9 #include "base/observer_list.h"
10 #include "ui/base/ui_export.h" 10 #include "ui/base/ui_base_export.h"
11 #include "ui/base/x/x11_util.h" 11 #include "ui/base/x/x11_util.h"
12 12
13 template <typename T> struct DefaultSingletonTraits; 13 template <typename T> struct DefaultSingletonTraits;
14 14
15 namespace ui { 15 namespace ui {
16 16
17 class ActiveWindowWatcherXObserver; 17 class ActiveWindowWatcherXObserver;
18 18
19 namespace internal { 19 namespace internal {
20 class RootWindowPropertyWatcherX; 20 class RootWindowPropertyWatcherX;
21 } 21 }
22 22
23 // 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
24 // 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
25 // the active window. 25 // the active window.
26 class UI_EXPORT ActiveWindowWatcherX { 26 class UI_BASE_EXPORT ActiveWindowWatcherX {
27 public: 27 public:
28 static ActiveWindowWatcherX* GetInstance(); 28 static ActiveWindowWatcherX* GetInstance();
29 static void AddObserver(ActiveWindowWatcherXObserver* observer); 29 static void AddObserver(ActiveWindowWatcherXObserver* observer);
30 static void RemoveObserver(ActiveWindowWatcherXObserver* observer); 30 static void RemoveObserver(ActiveWindowWatcherXObserver* observer);
31 31
32 // Checks if the WM supports the active window property. Note that the return 32 // Checks if the WM supports the active window property. Note that the return
33 // value can change, especially during system startup. 33 // value can change, especially during system startup.
34 static bool WMSupportsActivation(); 34 static bool WMSupportsActivation();
35 35
36 private: 36 private:
(...skipping 14 matching lines...) Expand all
51 void NotifyActiveWindowChanged(); 51 void NotifyActiveWindowChanged();
52 52
53 ObserverList<ActiveWindowWatcherXObserver> observers_; 53 ObserverList<ActiveWindowWatcherXObserver> observers_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(ActiveWindowWatcherX); 55 DISALLOW_COPY_AND_ASSIGN(ActiveWindowWatcherX);
56 }; 56 };
57 57
58 } // namespace ui 58 } // namespace ui
59 59
60 #endif // UI_BASE_X_ACTIVE_WINDOW_WATCHER_X_H_ 60 #endif // UI_BASE_X_ACTIVE_WINDOW_WATCHER_X_H_
OLDNEW
« no previous file with comments | « ui/base/work_area_watcher_observer.h ('k') | ui/base/x/active_window_watcher_x_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698