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

Side by Side Diff: ui/aura_shell/workspace/workspace_observer.h

Issue 9035001: Move some more WM functionality down into ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 12 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ui/aura_shell/workspace/workspace_manager_unittest.cc ('k') | ui/aura_shell/workspace_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698