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

Side by Side Diff: ash/common/shelf/shelf_constants.h

Issue 2332393003: mash: Remove shelf util functions; use WmWindow properties. (Closed)
Patch Set: Address comments. Created 4 years, 3 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
« no previous file with comments | « ash/aura/wm_window_aura.cc ('k') | ash/common/shelf/shelf_constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_COMMON_SHELF_SHELF_CONSTANTS_H_ 5 #ifndef ASH_COMMON_SHELF_SHELF_CONSTANTS_H_
6 #define ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ 6 #define ASH_COMMON_SHELF_SHELF_CONSTANTS_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 10
(...skipping 11 matching lines...) Expand all
22 SHELF_BUTTON_SPACING, 22 SHELF_BUTTON_SPACING,
23 23
24 // Size allocated for each app button on the shelf. 24 // Size allocated for each app button on the shelf.
25 SHELF_BUTTON_SIZE, 25 SHELF_BUTTON_SIZE,
26 26
27 // Insets allocated for shelf when it is auto hidden. 27 // Insets allocated for shelf when it is auto hidden.
28 SHELF_INSETS_FOR_AUTO_HIDE 28 SHELF_INSETS_FOR_AUTO_HIDE
29 }; 29 };
30 30
31 // Invalid image resource id used for ShelfItemDetails. 31 // Invalid image resource id used for ShelfItemDetails.
32 extern const int kInvalidImageResourceID; 32 const int kInvalidImageResourceID = -1;
33 33
34 // We reserve a small area on the edge of the workspace area to ensure that 34 // We reserve a small area on the edge of the workspace area to ensure that
35 // the resize handle at the edge of the window can be hit. 35 // the resize handle at the edge of the window can be hit.
36 extern const int kWorkspaceAreaVisibleInset; 36 extern const int kWorkspaceAreaVisibleInset;
37 37
38 // When autohidden we extend the touch hit target onto the screen so that the 38 // When autohidden we extend the touch hit target onto the screen so that the
39 // user can drag the shelf out. 39 // user can drag the shelf out.
40 extern const int kWorkspaceAreaAutoHideInset; 40 extern const int kWorkspaceAreaAutoHideInset;
41 41
42 // Size of the shelf when auto-hidden. 42 // Size of the shelf when auto-hidden.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 extern const int kAppListButtonRadius; 82 extern const int kAppListButtonRadius;
83 83
84 // The direction of the focus cycling. 84 // The direction of the focus cycling.
85 enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD }; 85 enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD };
86 86
87 ASH_EXPORT int GetShelfConstant(ShelfConstant shelf_constant); 87 ASH_EXPORT int GetShelfConstant(ShelfConstant shelf_constant);
88 88
89 } // namespace ash 89 } // namespace ash
90 90
91 #endif // ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ 91 #endif // ASH_COMMON_SHELF_SHELF_CONSTANTS_H_
OLDNEW
« no previous file with comments | « ash/aura/wm_window_aura.cc ('k') | ash/common/shelf/shelf_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698