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

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

Issue 10699065: chromeos: Fix pixelated icons in app list and launcher (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « ash/launcher/launcher_button.cc ('k') | ash/shell/window_watcher.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 "third_party/skia/include/core/SkBitmap.h" 11 #include "ui/gfx/image/image_skia.h"
12 12
13 namespace aura { 13 namespace aura {
14 class Window; 14 class Window;
15 } 15 }
16 16
17 namespace ash { 17 namespace ash {
18 18
19 typedef int LauncherID; 19 typedef int LauncherID;
20 20
21 // Height of the Launcher. Hard coded to avoid resizing as items are 21 // Height of the Launcher. Hard coded to avoid resizing as items are
(...skipping 20 matching lines...) Expand all
42 // Represents a platform app. 42 // Represents a platform app.
43 TYPE_PLATFORM_APP, 43 TYPE_PLATFORM_APP,
44 }; 44 };
45 45
46 // Represents the status of pinned or running app launcher items. 46 // Represents the status of pinned or running app launcher items.
47 enum LauncherItemStatus { 47 enum LauncherItemStatus {
48 // A closed LauncherItem, i.e. has no live instance. 48 // A closed LauncherItem, i.e. has no live instance.
49 STATUS_CLOSED, 49 STATUS_CLOSED,
50 // A LauncherItem that has live instance. 50 // A LauncherItem that has live instance.
51 STATUS_RUNNING, 51 STATUS_RUNNING,
52 // An active LauncherItem that has focus. 52 // An active LauncherItem that has focus.
53 STATUS_ACTIVE, 53 STATUS_ACTIVE,
54 // A LauncherItem that needs user's attention. 54 // A LauncherItem that needs user's attention.
55 STATUS_ATTENTION, 55 STATUS_ATTENTION,
56 // A LauncherItem that has pending operations. 56 // A LauncherItem that has pending operations.
57 // e.g. A TYEE_APP_SHORTCUT item whose application is 57 // e.g. A TYEE_APP_SHORTCUT item whose application is
58 // being installed/upgraded. 58 // being installed/upgraded.
59 // Note STATUS_PENDING is a macro in WinNT.h on Windows. 59 // Note STATUS_PENDING is a macro in WinNT.h on Windows.
60 STATUS_IS_PENDING, 60 STATUS_IS_PENDING,
61 }; 61 };
62 62
63 struct ASH_EXPORT LauncherItem { 63 struct ASH_EXPORT LauncherItem {
64 LauncherItem(); 64 LauncherItem();
65 ~LauncherItem(); 65 ~LauncherItem();
66 66
67 LauncherItemType type; 67 LauncherItemType type;
68 68
69 // Whether it is drawn as an incognito icon or not. Only used if this is 69 // Whether it is drawn as an incognito icon or not. Only used if this is
70 // TYPE_TABBED. Note: This cannot be used for identifying incognito windows. 70 // TYPE_TABBED. Note: This cannot be used for identifying incognito windows.
71 bool is_incognito; 71 bool is_incognito;
72 72
73 // Image to display in the launcher. If this item is TYPE_TABBED the image is 73 // Image to display in the launcher. If this item is TYPE_TABBED the image is
74 // a favicon image. 74 // a favicon image.
75 SkBitmap image; 75 gfx::ImageSkia image;
76 76
77 // Assigned by the model when the item is added. 77 // Assigned by the model when the item is added.
78 LauncherID id; 78 LauncherID id;
79 79
80 // Running status. 80 // Running status.
81 LauncherItemStatus status; 81 LauncherItemStatus status;
82 }; 82 };
83 83
84 typedef std::vector<LauncherItem> LauncherItems; 84 typedef std::vector<LauncherItem> LauncherItems;
85 85
86 // The direction of the focus cycling. 86 // The direction of the focus cycling.
87 enum CycleDirection { 87 enum CycleDirection {
88 CYCLE_FORWARD, 88 CYCLE_FORWARD,
89 CYCLE_BACKWARD 89 CYCLE_BACKWARD
90 }; 90 };
91 91
92 } // namespace ash 92 } // namespace ash
93 93
94 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ 94 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_
OLDNEW
« no previous file with comments | « ash/launcher/launcher_button.cc ('k') | ash/shell/window_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698