| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_WM_WORKSPACE_MANAGED_WORKSPACE_H_ | |
| 6 #define ASH_WM_WORKSPACE_MANAGED_WORKSPACE_H_ | |
| 7 | |
| 8 #include "ash/wm/workspace/workspace.h" | |
| 9 #include "base/compiler_specific.h" | |
| 10 | |
| 11 namespace ash { | |
| 12 namespace internal { | |
| 13 | |
| 14 // ManagedWorkspace allows any non-maximized/fullscreen windows. It imposes | |
| 15 // constraints on where the windows can be placed and how they can be resized. | |
| 16 class ASH_EXPORT ManagedWorkspace : public Workspace { | |
| 17 public: | |
| 18 explicit ManagedWorkspace(WorkspaceManager* manager); | |
| 19 virtual ~ManagedWorkspace(); | |
| 20 | |
| 21 protected: | |
| 22 // Workspace overrides: | |
| 23 virtual bool CanAdd(aura::Window* window) const OVERRIDE; | |
| 24 virtual void OnWindowAddedAfter(aura::Window* window, | |
| 25 aura::Window* after) OVERRIDE; | |
| 26 virtual void OnWindowRemoved(aura::Window* window) OVERRIDE; | |
| 27 | |
| 28 private: | |
| 29 DISALLOW_COPY_AND_ASSIGN(ManagedWorkspace); | |
| 30 }; | |
| 31 | |
| 32 } // namespace internal | |
| 33 } // namespace ash | |
| 34 | |
| 35 #endif // ASH_WM_WORKSPACE_MANAGED_WORKSPACE_H_ | |
| OLD | NEW |