window_state_observer.h revision 8bcbed890bc3ce4d7a057a8f32cab53fa534672e
1// Copyright 2013 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_WINDOW_STATE_OBSERVER_H_
6#define ASH_WM_WINDOW_STATE_OBSERVER_H_
7
8#include "ash/ash_export.h"
9#include "ash/wm/wm_types.h"
10
11namespace ash {
12namespace wm {
13class WindowState;
14
15class ASH_EXPORT WindowStateObserver {
16 public:
17  // Called when the tracked_by_workspace has changed.
18  virtual void OnTrackedByWorkspaceChanged(
19      WindowState* window,
20      bool old_value) {}
21
22  // Called when the window's show type has changed. This is different from
23  // kWindowShowStatekey property change as this will be invoked when the window
24  // gets left/right maximized, and auto positioned. |old_type| is the value
25  // before the change.
26  virtual void OnWindowShowTypeChanged(WindowState* window_state,
27                                       WindowShowType old_type) {}
28};
29
30}  // namespace wm
31}  // namespace ash
32
33#endif  // ASH_WM_WINDOW_STATE_OBSERVER_H_
34