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

Side by Side Diff: ash/ash_constants.h

Issue 97893002: aura/ash cleanup: Use a single window-key for constrained windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 typedef unsigned int SkColor; 12 typedef unsigned int SkColor;
13 13
14 namespace ash { 14 namespace ash {
15 15
16 // The window is a constrained window and lives therefore entirely within
17 // another aura window.
18 ASH_EXPORT extern const aura::WindowProperty<bool>* const
19 kConstrainedWindowKey;
20
21 // In the window corners, the resize areas don't actually expand bigger, but the 16 // In the window corners, the resize areas don't actually expand bigger, but the
22 // 16 px at the end of each edge triggers diagonal resizing. 17 // 16 px at the end of each edge triggers diagonal resizing.
23 ASH_EXPORT extern const int kResizeAreaCornerSize; 18 ASH_EXPORT extern const int kResizeAreaCornerSize;
24 19
25 // Ash windows do not have a traditional visible window frame. Window content 20 // Ash windows do not have a traditional visible window frame. Window content
26 // extends to the edge of the window. We consider a small region outside the 21 // extends to the edge of the window. We consider a small region outside the
27 // window bounds and an even smaller region overlapping the window to be the 22 // window bounds and an even smaller region overlapping the window to be the
28 // "non-client" area and use it for resizing. 23 // "non-client" area and use it for resizing.
29 ASH_EXPORT extern const int kResizeOutsideBoundsSize; 24 ASH_EXPORT extern const int kResizeOutsideBoundsSize;
30 ASH_EXPORT extern const int kResizeOutsideBoundsScaleForTouch; 25 ASH_EXPORT extern const int kResizeOutsideBoundsScaleForTouch;
31 ASH_EXPORT extern const int kResizeInsideBoundsSize; 26 ASH_EXPORT extern const int kResizeInsideBoundsSize;
32 27
33 #if defined(OS_CHROMEOS) 28 #if defined(OS_CHROMEOS)
34 // Background color used for the Chrome OS boot splash screen. 29 // Background color used for the Chrome OS boot splash screen.
35 extern const SkColor kChromeOsBootColor; 30 extern const SkColor kChromeOsBootColor;
36 #endif 31 #endif
37 32
38 // The border color of keyboard focus for launcher items and system tray. 33 // The border color of keyboard focus for launcher items and system tray.
39 extern const SkColor kFocusBorderColor; 34 extern const SkColor kFocusBorderColor;
40 35
41 } // namespace ash 36 } // namespace ash
42 37
43 #endif // ASH_ASH_CONSTANTS_H_ 38 #endif // ASH_ASH_CONSTANTS_H_
OLDNEW
« no previous file with comments | « no previous file | ash/ash_constants.cc » ('j') | chrome/browser/ui/views/web_contents_modal_dialog_manager_views.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698