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

Unified 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, 1 month 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/root_window_property_watcher_x.h
diff --git a/ui/base/x/root_window_property_watcher_x.h b/ui/base/x/root_window_property_watcher_x.h
new file mode 100644
index 0000000000000000000000000000000000000000..6684e835bdbf1c425c3c0fffa28380d5a477688b
--- /dev/null
+++ b/ui/base/x/root_window_property_watcher_x.h
@@ -0,0 +1,44 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_BASE_X_ROOT_WINDOW_PROPERTY_WATCHER_X_H_
+#define UI_BASE_X_ROOT_WINDOW_PROPERTY_WATCHER_X_H_
+#pragma once
+
+#include <gdk/gdk.h>
+
+#include "base/basictypes.h"
+#include "base/memory/singleton.h"
+#include "ui/base/gtk/gtk_signal.h"
+#include "ui/base/ui_export.h"
+
+namespace ui {
+
+namespace internal {
+
+// This class keeps track of changes to properties on the root window. This is
+// not to be used directly. Implement a watcher for the specific property you're
+// interested in.
+class RootWindowPropertyWatcherX {
+ public:
+ static RootWindowPropertyWatcherX* GetInstance();
+
+ private:
+ friend struct DefaultSingletonTraits<RootWindowPropertyWatcherX>;
+
+ RootWindowPropertyWatcherX();
+ ~RootWindowPropertyWatcherX();
+
+ // Callback for PropertyChange XEvents.
+ CHROMEG_CALLBACK_1(RootWindowPropertyWatcherX, GdkFilterReturn,
+ OnWindowXEvent, GdkXEvent*, GdkEvent*);
+
+ DISALLOW_COPY_AND_ASSIGN(RootWindowPropertyWatcherX);
+};
+
+} // namespace internal
+
+} // namespace ui
+
+#endif // UI_BASE_X_ROOT_WINDOW_PROPERTY_WATCHER_X_H_
« 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