| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WORKSPACE_MAXIMIZED_WORKSPACE_H_ | 5 #ifndef ASH_WM_WORKSPACE_MAXIMIZED_WORKSPACE_H_ |
| 6 #define ASH_WM_WORKSPACE_MAXIMIZED_WORKSPACE_H_ | 6 #define ASH_WM_WORKSPACE_MAXIMIZED_WORKSPACE_H_ |
| 7 | 7 |
| 8 #include "ash/wm/workspace/workspace.h" | 8 #include "ash/wm/workspace/workspace.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 | 10 |
| 11 namespace ash { | 11 namespace ash { |
| 12 namespace internal { | 12 namespace internal { |
| 13 | 13 |
| 14 // Workspace implementation that contains a single maximized or fullscreen | 14 // Workspace implementation that contains a single maximized or fullscreen |
| 15 // window. | 15 // window. |
| 16 class ASH_EXPORT MaximizedWorkspace : public Workspace { | 16 class ASH_EXPORT MaximizedWorkspace : public Workspace { |
| 17 public: | 17 public: |
| 18 explicit MaximizedWorkspace(WorkspaceManager* manager); | 18 explicit MaximizedWorkspace(WorkspaceManager* manager); |
| 19 virtual ~MaximizedWorkspace(); | 19 virtual ~MaximizedWorkspace(); |
| 20 | 20 |
| 21 protected: | 21 protected: |
| 22 // Workspace overrides: | 22 // Workspace overrides: |
| 23 virtual bool CanAdd(aura::Window* window) const OVERRIDE; | 23 virtual bool CanAdd(aura::Window* window) const OVERRIDE; |
| 24 virtual void OnWindowAddedAfter(aura::Window* window, | 24 virtual void OnWindowAddedAfter(aura::Window* window, |
| 25 aura::Window* after) OVERRIDE; | 25 aura::Window* after) OVERRIDE; |
| 26 virtual void OnWindowRemoved(aura::Window* window) OVERRIDE; | 26 virtual void OnWindowRemoved(aura::Window* window) OVERRIDE; |
| 27 virtual void OnWorkspaceSizeChanged(const gfx::Rect& old_bounds) OVERRIDE; | |
| 28 | 27 |
| 29 private: | 28 private: |
| 30 void ResetWindowBounds(aura::Window* window); | 29 void ResetWindowBounds(aura::Window* window); |
| 31 | 30 |
| 32 DISALLOW_COPY_AND_ASSIGN(MaximizedWorkspace); | 31 DISALLOW_COPY_AND_ASSIGN(MaximizedWorkspace); |
| 33 }; | 32 }; |
| 34 | 33 |
| 35 } // namespace internal | 34 } // namespace internal |
| 36 } // namespace ash | 35 } // namespace ash |
| 37 | 36 |
| 38 #endif // ASH_WM_WORKSPACE_MAXIMIZED_WORKSPACE_H_ | 37 #endif // ASH_WM_WORKSPACE_MAXIMIZED_WORKSPACE_H_ |
| OLD | NEW |