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

Side by Side 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: " 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 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_WORKSPACEE_OBSERVER_H_
sky 2011/11/02 03:57:49 fix this
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 has chagned. |old| is
sky 2011/11/02 03:57:49 'has chagned' -> changes
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

Powered by Google App Engine
This is Rietveld 408576698