OLD | NEW |
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_LAUNCHER_LAUNCHER_TYPES_H_ | 5 #ifndef ASH_LAUNCHER_LAUNCHER_TYPES_H_ |
6 #define ASH_LAUNCHER_LAUNCHER_TYPES_H_ | 6 #define ASH_LAUNCHER_LAUNCHER_TYPES_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "ui/gfx/image/image_skia.h" | 12 #include "ui/gfx/image/image_skia.h" |
13 | 13 |
14 namespace ash { | 14 namespace ash { |
15 | 15 |
16 typedef int LauncherID; | 16 typedef int LauncherID; |
17 | 17 |
18 // Height of the Launcher. Hard coded to avoid resizing as items are | |
19 // added/removed. | |
20 ASH_EXPORT extern const int kLauncherPreferredSize; | |
21 | |
22 // Max alpha of the launcher background. | |
23 ASH_EXPORT extern const int kLauncherBackgroundAlpha; | |
24 | |
25 // Invalid image resource id used for LauncherItemDetails. | |
26 extern const int kInvalidImageResourceID; | |
27 | |
28 extern const int kInvalidLauncherID; | |
29 | |
30 // Animation duration for switching black shelf and dock background on and off. | |
31 ASH_EXPORT extern const int kTimeToSwitchBackgroundMs; | |
32 | |
33 // Type the LauncherItem represents. | 18 // Type the LauncherItem represents. |
34 enum LauncherItemType { | 19 enum LauncherItemType { |
35 // Represents a running app panel. | 20 // Represents a running app panel. |
36 TYPE_APP_PANEL, | 21 TYPE_APP_PANEL, |
37 | 22 |
38 // Represents a pinned shortcut to an app. | 23 // Represents a pinned shortcut to an app. |
39 TYPE_APP_SHORTCUT, | 24 TYPE_APP_SHORTCUT, |
40 | 25 |
41 // Toggles visiblity of the app list. | 26 // Toggles visiblity of the app list. |
42 TYPE_APP_LIST, | 27 TYPE_APP_LIST, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // Resource id of the image to display on the shelf. | 87 // Resource id of the image to display on the shelf. |
103 int image_resource_id; | 88 int image_resource_id; |
104 | 89 |
105 // Title of the item. | 90 // Title of the item. |
106 base::string16 title; | 91 base::string16 title; |
107 }; | 92 }; |
108 | 93 |
109 } // namespace ash | 94 } // namespace ash |
110 | 95 |
111 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ | 96 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ |
OLD | NEW |