Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Side by Side Diff: ash/wm/workspace/workspace_layout_manager2.h

Issue 11087037: Dont allow the user to 'resize a window out of the workarea' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed problem with ExtendedDesktop unit test Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_WORKSPACE_LAYOUT_MANAGER2_H_ 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER2_H_
6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER2_H_ 6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER2_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "ash/shell_observer.h" 10 #include "ash/shell_observer.h"
11 #include "ash/wm/base_layout_manager.h" 11 #include "ash/wm/base_layout_manager.h"
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "ui/aura/layout_manager.h" 14 #include "ui/aura/layout_manager.h"
15 #include "ui/aura/root_window_observer.h" 15 #include "ui/aura/root_window_observer.h"
16 #include "ui/base/ui_base_types.h" 16 #include "ui/base/ui_base_types.h"
17 #include "ui/aura/window_observer.h" 17 #include "ui/aura/window_observer.h"
18 #include "ui/gfx/rect.h" 18 #include "ui/gfx/rect.h"
19 19
20 namespace aura { 20 namespace aura {
21 class RootWindow; 21 class RootWindow;
22 class Window; 22 class Window;
23 } 23 }
24 24
25 namespace ui { 25 namespace ui {
26 class Layer; 26 class Layer;
27 } 27 }
28 28
29 namespace ash { 29 namespace ash {
30
31 // Upon user resizing, at least this many pixels should remain visible on the
sky 2012/10/16 22:57:46 resizing, moving or display area changing, right?
Mr4D (OOO till 08-26) 2012/10/17 00:05:17 Done.
32 // screen to avoid 'loosing' the window.
33 const int kMinimumOnScreenArea = 10;
34
30 namespace internal { 35 namespace internal {
31 36
32 class Workspace2; 37 class Workspace2;
33 class WorkspaceManager2; 38 class WorkspaceManager2;
34 39
35 // LayoutManager used on the window created for a Workspace. 40 // LayoutManager used on the window created for a Workspace.
36 // TODO(sky): this code shares a fair amount of similarities with 41 // TODO(sky): this code shares a fair amount of similarities with
37 // BaseLayoutManager, yet its different enough that subclassing is painful. 42 // BaseLayoutManager, yet its different enough that subclassing is painful.
38 // See if I can refactor the code to make it easier to share common bits. 43 // See if I can refactor the code to make it easier to share common bits.
39 class ASH_EXPORT WorkspaceLayoutManager2 44 class ASH_EXPORT WorkspaceLayoutManager2
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // workspace switch. 123 // workspace switch.
119 gfx::Rect work_area_; 124 gfx::Rect work_area_;
120 125
121 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager2); 126 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager2);
122 }; 127 };
123 128
124 } // namespace internal 129 } // namespace internal
125 } // namespace ash 130 } // namespace ash
126 131
127 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER2_H_ 132 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698