OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_AURA_SHELL_WORKSPACE_WORKSPACE_OBSERVER_H_ | |
6 #define UI_AURA_SHELL_WORKSPACE_WORKSPACE_OBSERVER_H_ | |
7 #pragma once | |
8 | |
9 #include "ui/aura_shell/aura_shell_export.h" | |
10 | |
11 namespace aura { | |
12 class Window; | |
13 } | |
14 | |
15 namespace aura_shell { | |
16 namespace internal { | |
17 class Workspace; | |
18 class WorkspaceManager; | |
19 | |
20 // A class to observe changes in workspace state. | |
21 class AURA_SHELL_EXPORT WorkspaceObserver { | |
22 public: | |
23 // Invoked when |start| window is moved and inserted | |
24 // at the |target| window's position by |WorkspaceManager::RotateWindow|. | |
25 virtual void WindowMoved(WorkspaceManager* manager, | |
26 aura::Window* source, | |
27 aura::Window* target) = 0; | |
28 | |
29 // Invoked when the active workspace changes. |old| is | |
30 // the old active workspace and can be NULL. | |
31 virtual void ActiveWorkspaceChanged(WorkspaceManager* manager, | |
32 Workspace* old) = 0; | |
33 protected: | |
34 virtual ~WorkspaceObserver() {} | |
35 }; | |
36 | |
37 } // namespace internal | |
38 } // namespace aura_shell | |
39 | |
40 #endif // UI_AURA_SHELL_WORKSPACE_WORKSPACE_OBSERVER_H_ | |
OLD | NEW |