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

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

Issue 7569005: Rename UI_API to UI_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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/win/window_impl.h ('k') | ui/base/x/x11_util.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) 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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/singleton.h" 12 #include "base/memory/singleton.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "ui/base/gtk/gtk_signal.h" 14 #include "ui/base/gtk/gtk_signal.h"
15 #include "ui/ui_api.h" 15 #include "ui/base/ui_export.h"
16 16
17 namespace ui { 17 namespace ui {
18 18
19 // This is a helper class that is used to keep track of which window the X 19 // This is a helper class that is used to keep track of which window the X
20 // window manager thinks is active. Add an Observer to listener for changes to 20 // window manager thinks is active. Add an Observer to listener for changes to
21 // the active window. 21 // the active window.
22 class UI_API ActiveWindowWatcherX { 22 class UI_EXPORT ActiveWindowWatcherX {
23 public: 23 public:
24 class Observer { 24 class Observer {
25 public: 25 public:
26 // |active_window| will be NULL if the active window isn't one of Chrome's. 26 // |active_window| will be NULL if the active window isn't one of Chrome's.
27 virtual void ActiveWindowChanged(GdkWindow* active_window) = 0; 27 virtual void ActiveWindowChanged(GdkWindow* active_window) = 0;
28 28
29 protected: 29 protected:
30 virtual ~Observer() {} 30 virtual ~Observer() {}
31 }; 31 };
32 32
(...skipping 23 matching lines...) Expand all
56 OnWindowXEvent, GdkXEvent*, GdkEvent*); 56 OnWindowXEvent, GdkXEvent*, GdkEvent*);
57 57
58 ObserverList<Observer> observers_; 58 ObserverList<Observer> observers_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(ActiveWindowWatcherX); 60 DISALLOW_COPY_AND_ASSIGN(ActiveWindowWatcherX);
61 }; 61 };
62 62
63 } // namespace ui 63 } // namespace ui
64 64
65 #endif // UI_BASE_X_ACTIVE_WINDOW_WATCHER_X_H_ 65 #endif // UI_BASE_X_ACTIVE_WINDOW_WATCHER_X_H_
OLDNEW
« no previous file with comments | « ui/base/win/window_impl.h ('k') | ui/base/x/x11_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698