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

Side by Side Diff: ash/wm/workspace/workspace_observer.h

Issue 9113045: Reworks the workspace code. Here's the new heuristics: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated feedback and fixed bugs Created 8 years, 11 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 ASH_WM_WORKSPACE_WORKSPACE_OBSERVER_H_
6 #define ASH_WM_WORKSPACE_WORKSPACE_OBSERVER_H_
7 #pragma once
8
9 #include "ash/ash_export.h"
10
11 namespace aura {
12 class Window;
13 }
14
15 namespace ash {
16 namespace internal {
17 class Workspace;
18 class WorkspaceManager;
19
20 // A class to observe changes in workspace state.
21 class ASH_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 ash
39
40 #endif // ASH_WM_WORKSPACE_WORKSPACE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698