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

Unified Diff: ui/aura/window_observer.h

Issue 8253001: aura: Some changes in Window and Desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« ui/aura/window.cc ('K') | « ui/aura/window.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_observer.h
diff --git a/ui/aura/window_observer.h b/ui/aura/window_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..ad61a6bc48ff8806899a3794904e03392ec15dce
--- /dev/null
+++ b/ui/aura/window_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_AURA_DESKTOP_OBSERVER_H_
+#define UI_AURA_DESKTOP_OBSERVER_H_
+#pragma once
+
+#include "ui/aura/aura_export.h"
+
+namespace aura {
+
+class AURA_EXPORT WindowObserver {
+ public:
+ virtual void OnWindowClosing(Window* widget) {}
+ virtual void OnWindowVisibilityChanged(Window* widget, bool visible) {}
sky 2011/10/12 22:05:38 I don't like passing in visible or active here. Th
sadrul 2011/10/12 22:59:58 Done.
+ virtual void OnWindowActivationChanged(Window* widget, bool active) {}
+
+ protected:
+ virtual ~WindowObserver() {}
+};
+
+} // namespace aura
+
+#endif // UI_AURA_DESKTOP_OBSERVER_H_
+
« ui/aura/window.cc ('K') | « ui/aura/window.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698