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

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: 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); 39 explicit LauncherItem(LauncherItemType type, bool is_private);
40 ~LauncherItem(); 40 ~LauncherItem();
41 41
42 LauncherItemType type; 42 LauncherItemType type;
43 43
44 // Number of tabs. Only used if this is TYPE_TABBED. 44 // Number of tabs. Only used if this is TYPE_TABBED.
45 int num_tabs; 45 int num_tabs;
46 46
47 // Is it off the record. Only used if this is TYPE_TABBED.
48 bool private_tab;
oshima 2012/03/09 17:54:02 we use incognito or otr to refer to "off the recor
Zachary Kuznia 2012/03/09 22:17:35 Done.
49
47 // Image to display in the launcher. If this item is TYPE_TABBED the image is 50 // Image to display in the launcher. If this item is TYPE_TABBED the image is
48 // a favicon image. 51 // a favicon image.
49 SkBitmap image; 52 SkBitmap image;
50 53
51 // Assigned by the model when the item is added. 54 // Assigned by the model when the item is added.
52 LauncherID id; 55 LauncherID id;
53 }; 56 };
54 57
55 typedef std::vector<LauncherItem> LauncherItems; 58 typedef std::vector<LauncherItem> LauncherItems;
56 59
57 } // namespace ash 60 } // namespace ash
58 61
59 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ 62 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698