| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_WM_SHOW_STATE_CONTROLLER_H_ | 5 #ifndef ASH_WM_SHOW_STATE_CONTROLLER_H_ |
| 6 #define ASH_WM_SHOW_STATE_CONTROLLER_H_ | 6 #define ASH_WM_SHOW_STATE_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "ui/aura/window_observer.h" | 11 #include "ui/aura/window_observer.h" |
| 12 | 12 |
| 13 namespace aura { | 13 namespace aura { |
| 14 class Window; | 14 class Window; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace aura_shell { | 17 namespace ash { |
| 18 namespace internal { | 18 namespace internal { |
| 19 | 19 |
| 20 class WorkspaceManager; | 20 class WorkspaceManager; |
| 21 | 21 |
| 22 // ShowStateController controls the window's bounds when | 22 // ShowStateController controls the window's bounds when |
| 23 // the window's show state property has changed. | 23 // the window's show state property has changed. |
| 24 class ShowStateController : public aura::WindowObserver { | 24 class ShowStateController : public aura::WindowObserver { |
| 25 public: | 25 public: |
| 26 explicit ShowStateController(WorkspaceManager* layout_manager); | 26 explicit ShowStateController(WorkspaceManager* layout_manager); |
| 27 virtual ~ShowStateController(); | 27 virtual ~ShowStateController(); |
| 28 | 28 |
| 29 // aura::WindowObserver overrides: | 29 // aura::WindowObserver overrides: |
| 30 virtual void OnWindowPropertyChanged(aura::Window* window, | 30 virtual void OnWindowPropertyChanged(aura::Window* window, |
| 31 const char* name, | 31 const char* name, |
| 32 void* old) OVERRIDE; | 32 void* old) OVERRIDE; |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 // |workspace_maanger_| is owned by |WorkspaceController|. | 35 // |workspace_maanger_| is owned by |WorkspaceController|. |
| 36 WorkspaceManager* workspace_manager_; | 36 WorkspaceManager* workspace_manager_; |
| 37 | 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(ShowStateController); | 38 DISALLOW_COPY_AND_ASSIGN(ShowStateController); |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namepsace aura_shell | |
| 42 } // namepsace internal | 41 } // namepsace internal |
| 42 } // namepsace ash |
| 43 | 43 |
| 44 #endif // ASH_WM_SHOW_STATE_CONTROLLER_H_ | 44 #endif // ASH_WM_SHOW_STATE_CONTROLLER_H_ |
| OLD | NEW |