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

Unified Diff: ui/aura_shell/workspace/workspace_observer.h

Issue 8430024: Add WorkspaceObserver to observe changes in workspace state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comments 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/aura_shell/workspace/workspace_manager_unittest.cc ('k') | views/widget/native_widget_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/workspace/workspace_observer.h
diff --git a/ui/aura_shell/workspace/workspace_observer.h b/ui/aura_shell/workspace/workspace_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..e0387bb1157d6ab669664c3166e2bf41ccdd8737
--- /dev/null
+++ b/ui/aura_shell/workspace/workspace_observer.h
@@ -0,0 +1,40 @@
+// 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_SHELL_WORKSPACE_WORKSPACE_OBSERVER_H_
+#define UI_AURA_SHELL_WORKSPACE_WORKSPACE_OBSERVER_H_
+#pragma once
+
+#include "ui/aura_shell/aura_shell_export.h"
+
+namespace aura {
+class Window;
+}
+
+namespace aura_shell {
+namespace internal {
+class Workspace;
+class WorkspaceManager;
+
+// A class to observe changes in workspace state.
+class AURA_SHELL_EXPORT WorkspaceObserver {
+ public:
+ // Invoked when |start| window is moved and inserted
+ // at the |target| window's position by |WorkspaceManager::RotateWindow|.
+ virtual void WindowMoved(WorkspaceManager* manager,
+ aura::Window* source,
+ aura::Window* target) = 0;
+
+ // Invoked when the active workspace changes. |old| is
+ // the old active workspace and can be NULL.
+ virtual void ActiveWorkspaceChanged(WorkspaceManager* manager,
+ Workspace* old) = 0;
+ protected:
+ virtual ~WorkspaceObserver() {}
+};
+
+} // namespace internal
+} // namespace aura_shell
+
+#endif // UI_AURA_SHELL_WORKSPACE_WORKSPACE_OBSERVER_H_
« no previous file with comments | « ui/aura_shell/workspace/workspace_manager_unittest.cc ('k') | views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698