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

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: Code review fix 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
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 18 matching lines...) Expand all
29 29
30 // Toggles visiblity of the app list. 30 // Toggles visiblity of the app list.
31 TYPE_APP_LIST, 31 TYPE_APP_LIST,
32 32
33 // The browser shortcut button. 33 // The browser shortcut button.
34 TYPE_BROWSER_SHORTCUT, 34 TYPE_BROWSER_SHORTCUT,
35 }; 35 };
36 36
37 struct ASH_EXPORT LauncherItem { 37 struct ASH_EXPORT LauncherItem {
38 LauncherItem(); 38 LauncherItem();
39 explicit LauncherItem(LauncherItemType type);
40 ~LauncherItem(); 39 ~LauncherItem();
41 40
42 LauncherItemType type; 41 LauncherItemType type;
43 42
44 // Number of tabs. Only used if this is TYPE_TABBED. 43 // Number of tabs. Only used if this is TYPE_TABBED.
45 int num_tabs; 44 int num_tabs;
46 45
46 // Whether it is incognito. Only used if this is TYPE_TABBED.
47 bool is_incognito;
48
47 // Image to display in the launcher. If this item is TYPE_TABBED the image is 49 // Image to display in the launcher. If this item is TYPE_TABBED the image is
48 // a favicon image. 50 // a favicon image.
49 SkBitmap image; 51 SkBitmap image;
50 52
51 // Assigned by the model when the item is added. 53 // Assigned by the model when the item is added.
52 LauncherID id; 54 LauncherID id;
53 }; 55 };
54 56
55 typedef std::vector<LauncherItem> LauncherItems; 57 typedef std::vector<LauncherItem> LauncherItems;
56 58
57 } // namespace ash 59 } // namespace ash
58 60
59 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ 61 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698