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