summaryrefslogtreecommitdiffstats
path: root/ash/wm/workspace/workspace_observer.h
blob: 45439e36205399851682cefda267992d8efc7ea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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 ASH_WM_WORKSPACE_WORKSPACE_OBSERVER_H_
#define ASH_WM_WORKSPACE_WORKSPACE_OBSERVER_H_
#pragma once

#include "ash/ash_export.h"

namespace aura {
class Window;
}

namespace aura_shell {
namespace internal {
class Workspace;
class WorkspaceManager;

// A class to observe changes in workspace state.
class ASH_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  // ASH_WM_WORKSPACE_WORKSPACE_OBSERVER_H_