OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_BASE_MODELS_AVATAR_MENU_ITEM_MODEL_H_ | |
6 #define UI_BASE_MODELS_AVATAR_MENU_ITEM_MODEL_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "base/strings/string16.h" | |
10 #include "ui/base/ui_export.h" | |
11 #include "ui/gfx/image/image.h" | |
12 | |
13 namespace ui { | |
14 | |
15 // Represents an item in the AvatarMenuModel. | |
16 struct UI_EXPORT AvatarMenuItemModel { | |
tapted
2013/07/31 05:43:53
Feeling around a bit more..... there's not really
calamity
2013/08/01 08:35:45
Hmm. I don't think this even belongs in this folde
| |
17 AvatarMenuItemModel(size_t model_index, const gfx::Image& icon); | |
tapted
2013/07/31 05:43:53
Looks like you got carried away with the indent he
calamity
2013/08/01 08:35:45
Done.
| |
18 ~AvatarMenuItemModel(); | |
19 | |
20 // The icon to be displayed next to the item. | |
21 gfx::Image icon; | |
22 | |
23 // Whether or not the current browser is using this profile. | |
24 bool active; | |
25 | |
26 // The name of this profile. | |
27 string16 name; | |
tapted
2013/07/31 05:43:53
base::string16 for these I think
calamity
2013/08/01 08:35:45
Done.
| |
28 | |
29 // A string representing the sync state of the profile. | |
30 string16 sync_state; | |
31 | |
32 // Whether or not the current profile is signed in. If true, |sync_state| is | |
33 // expected to be the email of the signed in user. | |
34 bool signed_in; | |
35 | |
36 // Whether or not the current profile requires sign-in before use. | |
37 bool signin_required; | |
38 | |
39 // The index in the |profile_cache| that this Item represents. | |
40 size_t model_index; | |
41 }; | |
42 | |
43 } // namespace ui | |
44 | |
45 #endif // UI_BASE_MODELS_AVATAR_MENU_ITEM_MODEL_H_ | |
OLD | NEW |