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

Side by Side Diff: ash/launcher/launcher_types.h

Issue 98373006: Animating docked background in sync with shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Animating docked background in sync with shelf (rebase) 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
« no previous file with comments | « no previous file | ash/launcher/launcher_types.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 (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 18 // Height of the Launcher. Hard coded to avoid resizing as items are
19 // added/removed. 19 // added/removed.
20 ASH_EXPORT extern const int kLauncherPreferredSize; 20 ASH_EXPORT extern const int kLauncherPreferredSize;
21 21
22 // Max alpha of the launcher background. 22 // Max alpha of the launcher background.
23 ASH_EXPORT extern const int kLauncherBackgroundAlpha; 23 ASH_EXPORT extern const int kLauncherBackgroundAlpha;
24 24
25 // Invalid image resource id used for LauncherItemDetails. 25 // Invalid image resource id used for LauncherItemDetails.
26 extern const int kInvalidImageResourceID; 26 extern const int kInvalidImageResourceID;
27 27
28 extern const int kInvalidLauncherID; 28 extern const int kInvalidLauncherID;
29 29
30 // Animation duration for switching black shelf and dock background on and off.
31 ASH_EXPORT extern const int kTimeToSwitchBackgroundMs;
32
30 // Type the LauncherItem represents. 33 // Type the LauncherItem represents.
31 enum LauncherItemType { 34 enum LauncherItemType {
32 // Represents a running app panel. 35 // Represents a running app panel.
33 TYPE_APP_PANEL, 36 TYPE_APP_PANEL,
34 37
35 // Represents a pinned shortcut to an app. 38 // Represents a pinned shortcut to an app.
36 TYPE_APP_SHORTCUT, 39 TYPE_APP_SHORTCUT,
37 40
38 // Toggles visiblity of the app list. 41 // Toggles visiblity of the app list.
39 TYPE_APP_LIST, 42 TYPE_APP_LIST,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // Resource id of the image to display on the shelf. 102 // Resource id of the image to display on the shelf.
100 int image_resource_id; 103 int image_resource_id;
101 104
102 // Title of the item. 105 // Title of the item.
103 base::string16 title; 106 base::string16 title;
104 }; 107 };
105 108
106 } // namespace ash 109 } // namespace ash
107 110
108 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ 111 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_
OLDNEW
« no previous file with comments | « no previous file | ash/launcher/launcher_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698