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

Unified Diff: ui/base/x/active_window_watcher_x_observer.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: Move observers into their own header files. 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
Index: ui/base/x/active_window_watcher_x_observer.h
diff --git a/ui/base/x/active_window_watcher_x_observer.h b/ui/base/x/active_window_watcher_x_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..834e6da5a6da13524f26276b44af807e7a195a29
--- /dev/null
+++ b/ui/base/x/active_window_watcher_x_observer.h
@@ -0,0 +1,26 @@
+// 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_ACTIVE_WINDOW_WATCHER_X_OBSERVER_H_
+#define UI_BASE_X_ACTIVE_WINDOW_WATCHER_X_OBSERVER_H_
+#pragma once
+
+#include <gdk/gdk.h>
+
+#include "ui/base/ui_export.h"
+
+namespace ui {
+
+class UI_EXPORT ActiveWindowWatcherXObserver {
+ public:
+ // |active_window| will be NULL if the active window isn't one of Chrome's.
+ virtual void ActiveWindowChanged(GdkWindow* active_window) = 0;
+
+ protected:
+ virtual ~ActiveWindowWatcherXObserver();
sky 2011/11/21 23:50:32 You can inline this. By that I mean put the {} rig
prasadt 2011/11/22 00:46:34 Done.
+};
+
+} // namespace ui
+
+#endif // UI_BASE_X_ACTIVE_WINDOW_WATCHER_X_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698