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

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

Powered by Google App Engine
This is Rietveld 408576698