| OLD | NEW | 
|   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  | 
|  11 namespace ash { |  11 namespace ash { | 
|  12  |  12  | 
|  13 enum ShelfConstant { |  13 enum ShelfConstant { | 
|  14   // The alpha value for the shelf background when a window is overlapping. |  14   // The alpha value for the shelf background when a window is overlapping. | 
|  15   SHELF_BACKGROUND_ALPHA |  15   SHELF_BACKGROUND_ALPHA, | 
 |  16  | 
 |  17   // Size of the shelf when visible (height when the shelf is horizontal and | 
 |  18   // width when the shelf is vertical). | 
 |  19   SHELF_SIZE, | 
 |  20  | 
 |  21   // Size of the space between buttons on the shelf. | 
 |  22   SHELF_BUTTON_SPACING, | 
 |  23  | 
 |  24   // Size allocated for each button on the shelf. | 
 |  25   SHELF_BUTTON_SIZE | 
|  16 }; |  26 }; | 
|  17  |  27  | 
|  18 // Invalid image resource id used for ShelfItemDetails. |  28 // Invalid image resource id used for ShelfItemDetails. | 
|  19 extern const int kInvalidImageResourceID; |  29 extern const int kInvalidImageResourceID; | 
|  20  |  30  | 
 |  31 // We reserve a small area on the edge of the workspace area to ensure that | 
 |  32 // the resize handle at the edge of the window can be hit. | 
 |  33 extern const int kWorkspaceAreaVisibleInset; | 
 |  34  | 
 |  35 // When autohidden we extend the touch hit target onto the screen so that the | 
 |  36 // user can drag the shelf out. | 
 |  37 extern const int kWorkspaceAreaAutoHideInset; | 
 |  38  | 
 |  39 // Size of the shelf when auto-hidden. | 
 |  40 ASH_EXPORT extern const int kShelfAutoHideSize; | 
 |  41  | 
 |  42 // Inset between the inner edge of the shelf (towards centre of screen), and | 
 |  43 // the shelf items, notifications, status area etc. | 
 |  44 extern const int kShelfItemInset; | 
 |  45  | 
|  21 const int kInvalidShelfID = 0; |  46 const int kInvalidShelfID = 0; | 
|  22  |  47  | 
|  23 // Size of the shelf when visible (height when the shelf is horizontal). |  | 
|  24 ASH_EXPORT extern const int kShelfSize; |  | 
|  25  |  | 
|  26 // Size of the space between buttons on the shelf. |  | 
|  27 ASH_EXPORT extern const int kShelfButtonSpacing; |  | 
|  28  |  | 
|  29 // Size allocated for each button on the shelf. |  | 
|  30 ASH_EXPORT extern const int kShelfButtonSize; |  | 
|  31  |  | 
|  32 // Animation duration for switching black shelf and dock background on and off. |  48 // Animation duration for switching black shelf and dock background on and off. | 
|  33 ASH_EXPORT extern const int kTimeToSwitchBackgroundMs; |  49 ASH_EXPORT extern const int kTimeToSwitchBackgroundMs; | 
|  34  |  50  | 
|  35 // The base color of the shelf to which different alpha values are applied |  51 // The base color of the shelf to which different alpha values are applied | 
|  36 // based on the desired shelf opacity level. |  52 // based on the desired shelf opacity level. | 
|  37 ASH_EXPORT extern const SkColor kShelfBaseColor; |  53 ASH_EXPORT extern const SkColor kShelfBaseColor; | 
|  38  |  54  | 
|  39 // The foreground color of the icons used in the shelf (launcher, |  55 // The foreground color of the icons used in the shelf (launcher, | 
|  40 // notifications, etc). |  56 // notifications, etc). | 
|  41 ASH_EXPORT extern const SkColor kShelfIconColor; |  57 ASH_EXPORT extern const SkColor kShelfIconColor; | 
|  42  |  58  | 
|  43 // The direction of the focus cycling. |  59 // The direction of the focus cycling. | 
|  44 enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD }; |  60 enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD }; | 
|  45  |  61  | 
|  46 ASH_EXPORT int GetShelfConstant(ShelfConstant shelf_constant); |  62 ASH_EXPORT int GetShelfConstant(ShelfConstant shelf_constant); | 
|  47  |  63  | 
|  48 }  // namespace ash |  64 }  // namespace ash | 
|  49  |  65  | 
|  50 #endif  // ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ |  66 #endif  // ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ | 
| OLD | NEW |