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

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

Issue 7087028: roll clang 131935:132017 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 6 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
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include <gdk/gdk.h> 9 #include <gdk/gdk.h>
10 10
(...skipping 24 matching lines...) Expand all
35 static void RemoveObserver(Observer* observer); 35 static void RemoveObserver(Observer* observer);
36 36
37 // Checks if the WM supports the active window property. Note that the return 37 // Checks if the WM supports the active window property. Note that the return
38 // value can change, especially during system startup. 38 // value can change, especially during system startup.
39 static bool WMSupportsActivation(); 39 static bool WMSupportsActivation();
40 40
41 private: 41 private:
42 friend struct DefaultSingletonTraits<ActiveWindowWatcherX>; 42 friend struct DefaultSingletonTraits<ActiveWindowWatcherX>;
43 43
44 ActiveWindowWatcherX(); 44 ActiveWindowWatcherX();
45 ~ActiveWindowWatcherX(); 45 virtual ~ActiveWindowWatcherX();
46 46
47 void Init(); 47 void Init();
48 48
49 // Sends a notification out through the NotificationService that the active 49 // Sends a notification out through the NotificationService that the active
50 // window has changed. 50 // window has changed.
51 void NotifyActiveWindowChanged(); 51 void NotifyActiveWindowChanged();
52 52
53 // Callback for PropertyChange XEvents. 53 // Callback for PropertyChange XEvents.
54 CHROMEG_CALLBACK_1(ActiveWindowWatcherX, GdkFilterReturn, 54 CHROMEG_CALLBACK_1(ActiveWindowWatcherX, GdkFilterReturn,
55 OnWindowXEvent, GdkXEvent*, GdkEvent*); 55 OnWindowXEvent, GdkXEvent*, GdkEvent*);
56 56
57 ObserverList<Observer> observers_; 57 ObserverList<Observer> observers_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(ActiveWindowWatcherX); 59 DISALLOW_COPY_AND_ASSIGN(ActiveWindowWatcherX);
60 }; 60 };
61 61
62 } // namespace ui 62 } // namespace ui
63 63
64 #endif // UI_BASE_X_ACTIVE_WINDOW_WATCHER_X_H_ 64 #endif // UI_BASE_X_ACTIVE_WINDOW_WATCHER_X_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698