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

Side by Side Diff: ash/ash_constants.h

Issue 11085053: Improving window auto management between workspaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed as requested. Corner cases will have to be addressed as they show 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_ASH_CONSTANTS_H_ 5 #ifndef ASH_ASH_CONSTANTS_H_
6 #define ASH_ASH_CONSTANTS_H_ 6 #define ASH_ASH_CONSTANTS_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
11 11
12 namespace ash { 12 namespace ash {
13 13
14 // The window is a constrained window and lives therefore entirely within 14 // The window is a constrained window and lives therefore entirely within
15 // another aura window. 15 // another aura window.
16 ASH_EXPORT extern const aura::WindowProperty<bool>* const 16 ASH_EXPORT extern const aura::WindowProperty<bool>* const
17 kConstrainedWindowKey; 17 kConstrainedWindowKey;
18 18
19 // A property key to remember if a windows position or size was changed by a
20 // user.
21 ASH_EXPORT extern const aura::WindowProperty<bool>* const
sky 2012/10/16 17:25:34 Move these constants to ash/wm/window_properties.
Mr4D (OOO till 08-26) 2012/10/16 19:00:28 Done.
22 kUserChangedWindowPositionOrSizeKey;
23
19 // In the window corners, the resize areas don't actually expand bigger, but the 24 // In the window corners, the resize areas don't actually expand bigger, but the
20 // 16 px at the end of each edge triggers diagonal resizing. 25 // 16 px at the end of each edge triggers diagonal resizing.
21 ASH_EXPORT extern const int kResizeAreaCornerSize; 26 ASH_EXPORT extern const int kResizeAreaCornerSize;
22 27
28 // A property key to remember if a windows position can be managed by the
29 // workspace manager or not.
30 ASH_EXPORT extern const aura::WindowProperty<bool>* const
31 kWindowPositionManagedKey;
32
23 // Ash windows do not have a traditional visible window frame. Window content 33 // Ash windows do not have a traditional visible window frame. Window content
24 // extends to the edge of the window. We consider a small region outside the 34 // extends to the edge of the window. We consider a small region outside the
25 // window bounds and an even smaller region overlapping the window to be the 35 // window bounds and an even smaller region overlapping the window to be the
26 // "non-client" area and use it for resizing. 36 // "non-client" area and use it for resizing.
27 ASH_EXPORT extern const int kResizeOutsideBoundsSize; 37 ASH_EXPORT extern const int kResizeOutsideBoundsSize;
28 ASH_EXPORT extern const int kResizeOutsideBoundsScaleForTouch; 38 ASH_EXPORT extern const int kResizeOutsideBoundsScaleForTouch;
29 ASH_EXPORT extern const int kResizeInsideBoundsSize; 39 ASH_EXPORT extern const int kResizeInsideBoundsSize;
30 40
31 } // namespace ash 41 } // namespace ash
32 42
33 #endif // ASH_ASH_CONSTANTS_H_ 43 #endif // ASH_ASH_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698