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

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

Issue 8595003: Have panels respond to changes in work area on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile linux_view and chromeos. Created 9 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_BASE_X_ROOT_WINDOW_PROPERTY_WATCHER_X_H_
6 #define UI_BASE_X_ROOT_WINDOW_PROPERTY_WATCHER_X_H_
7 #pragma once
8
9 #include <gdk/gdk.h>
10
11 #include "base/basictypes.h"
12 #include "base/memory/singleton.h"
13 #include "ui/base/gtk/gtk_signal.h"
14 #include "ui/base/ui_export.h"
15
16 namespace ui {
17
18 namespace internal {
19
20 // This class keeps track of changes to properties on the root window. This is
21 // not to be used directly. Implement a watcher for the specific property you're
22 // interested in.
23 class RootWindowPropertyWatcherX {
24 public:
25 static RootWindowPropertyWatcherX* GetInstance();
26
27 private:
28 friend struct DefaultSingletonTraits<RootWindowPropertyWatcherX>;
29
30 RootWindowPropertyWatcherX();
31 ~RootWindowPropertyWatcherX();
32
33 // Callback for PropertyChange XEvents.
34 CHROMEG_CALLBACK_1(RootWindowPropertyWatcherX, GdkFilterReturn,
35 OnWindowXEvent, GdkXEvent*, GdkEvent*);
36
37 DISALLOW_COPY_AND_ASSIGN(RootWindowPropertyWatcherX);
38 };
39
40 } // namespace internal
41
42 } // namespace ui
43
44 #endif // UI_BASE_X_ROOT_WINDOW_PROPERTY_WATCHER_X_H_
OLDNEW
« no previous file with comments | « ui/base/x/active_window_watcher_x_observer.h ('k') | ui/base/x/root_window_property_watcher_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698