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
3 // found in the LICENSE file.
5 #ifndef ASH_LAUNCHER_LAUNCHER_TYPES_H_
6 #define ASH_LAUNCHER_LAUNCHER_TYPES_H_
10 #include "ash/ash_export.h"
11 #include "ui/gfx/image/image_skia.h"
15 typedef int LauncherID
;
17 // Height of the Launcher. Hard coded to avoid resizing as items are
19 ASH_EXPORT
extern const int kLauncherPreferredSize
;
21 // Max alpha of the launcher background.
22 ASH_EXPORT
extern const int kLauncherBackgroundAlpha
;
24 // Type the LauncherItem represents.
25 enum LauncherItemType
{
26 // Represents a tabbed browser.
29 // Represents a running app panel.
32 // Represents a pinned shortcut to an app.
35 // Toggles visiblity of the app list.
38 // The browser shortcut button.
39 TYPE_BROWSER_SHORTCUT
,
41 // Represents a platform app.
45 // Represents the status of pinned or running app launcher items.
46 enum LauncherItemStatus
{
47 // A closed LauncherItem, i.e. has no live instance.
49 // A LauncherItem that has live instance.
51 // An active LauncherItem that has focus.
53 // A LauncherItem that needs user's attention.
57 struct ASH_EXPORT LauncherItem
{
61 LauncherItemType type
;
63 // Whether it is drawn as an incognito icon or not. Only used if this is
64 // TYPE_TABBED. Note: This cannot be used for identifying incognito windows.
67 // Image to display in the launcher. If this item is TYPE_TABBED the image is
71 // Assigned by the model when the item is added.
75 LauncherItemStatus status
;
78 typedef std::vector
<LauncherItem
> LauncherItems
;
80 // The direction of the focus cycling.
88 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_