blob: a2b3244cb094941079f6d987d9e567c523aefccb (
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
41
42
43
44
|
// 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_SHOW_STATE_CONTROLLER_H_
#define ASH_WM_SHOW_STATE_CONTROLLER_H_
#pragma once
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "ui/aura/window_observer.h"
namespace aura {
class Window;
}
namespace aura_shell {
namespace internal {
class WorkspaceManager;
// ShowStateController controls the window's bounds when
// the window's show state property has changed.
class ShowStateController : public aura::WindowObserver {
public:
explicit ShowStateController(WorkspaceManager* layout_manager);
virtual ~ShowStateController();
// aura::WindowObserver overrides:
virtual void OnWindowPropertyChanged(aura::Window* window,
const char* name,
void* old) OVERRIDE;
private:
// |workspace_maanger_| is owned by |WorkspaceController|.
WorkspaceManager* workspace_manager_;
DISALLOW_COPY_AND_ASSIGN(ShowStateController);
};
} // namepsace aura_shell
} // namepsace internal
#endif // ASH_WM_SHOW_STATE_CONTROLLER_H_
|