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

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

Issue 9649013: Show a different icon in the launcher for incognito windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Re-upload Created 8 years, 9 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
« no previous file with comments | « ash/launcher/launcher_model.cc ('k') | 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 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 // Represents the status of pinned or running app launcher items. 37 // Represents the status of pinned or running app launcher items.
38 enum ASH_EXPORT LauncherItemStatus { 38 enum ASH_EXPORT LauncherItemStatus {
39 STATUS_CLOSED, 39 STATUS_CLOSED,
40 STATUS_RUNNING, 40 STATUS_RUNNING,
41 STATUS_ACTIVE 41 STATUS_ACTIVE
42 }; 42 };
43 43
44 struct ASH_EXPORT LauncherItem { 44 struct ASH_EXPORT LauncherItem {
45 LauncherItem(); 45 LauncherItem();
46 explicit LauncherItem(LauncherItemType type);
47 ~LauncherItem(); 46 ~LauncherItem();
48 47
49 LauncherItemType type; 48 LauncherItemType type;
50 49
51 // Number of tabs. Only used if this is TYPE_TABBED. 50 // Number of tabs. Only used if this is TYPE_TABBED.
52 int num_tabs; 51 int num_tabs;
53 52
53 // Whether it is incognito. Only used if this is TYPE_TABBED.
54 bool is_incognito;
55
54 // Image to display in the launcher. If this item is TYPE_TABBED the image is 56 // Image to display in the launcher. If this item is TYPE_TABBED the image is
55 // a favicon image. 57 // a favicon image.
56 SkBitmap image; 58 SkBitmap image;
57 59
58 // Assigned by the model when the item is added. 60 // Assigned by the model when the item is added.
59 LauncherID id; 61 LauncherID id;
60 62
61 // Running status. 63 // Running status.
62 LauncherItemStatus status; 64 LauncherItemStatus status;
63 }; 65 };
64 66
65 typedef std::vector<LauncherItem> LauncherItems; 67 typedef std::vector<LauncherItem> LauncherItems;
66 68
67 } // namespace ash 69 } // namespace ash
68 70
69 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ 71 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_
OLDNEW
« no previous file with comments | « ash/launcher/launcher_model.cc ('k') | ash/launcher/launcher_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698