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

Unified Diff: ui/aura/desktop_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
Index: ui/aura/desktop_observer.h
diff --git a/ui/aura/desktop_observer.h b/ui/aura/desktop_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..a53cd4ba0e52e71b42a1db091cc6662db5333640
--- /dev/null
+++ b/ui/aura/desktop_observer.h
@@ -0,0 +1,33 @@
+// 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 gfx {
+class Size;
+}
+
+namespace aura {
+
+class Window;
+
+class AURA_EXPORT DesktopObserver {
+ public:
+ // Invoked after the desktop is resized.
+ virtual void OnDesktopResized(const gfx::Size& new_size) {}
+
+ // Invoked when the active window is changed.
sky 2011/10/12 23:20:52 Document that |active| may be NULL if there are no
sadrul 2011/10/13 00:44:18 Done.
+ virtual void OnActiveWindowChanged(Window* active) {}
+
+ protected:
+ virtual ~DesktopObserver() {}
+};
+
+} // namespace aura
+
+#endif // UI_AURA_DESKTOP_OBSERVER_H_
« no previous file with comments | « ui/aura/desktop_host_linux.cc ('k') | ui/aura/window.h » ('j') | ui/aura/window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698