OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
tapted
2013/07/29 01:59:10
nit: Year can be 2013 (and no "(c)" )
calamity
2013/07/30 08:42:34
Done.
| |
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_AVATAR_MENU_ITEM_MODEL_H_ | |
6 #define UI_BASE_AVATAR_MENU_ITEM_MODEL_H_ | |
koz (OOO until 15th September)
2013/07/29 00:34:34
should be UI_BASE_MODELS_AVATAR_MENU_ITEM_MODEL_H_
calamity
2013/07/30 08:42:34
Done.
| |
7 | |
8 #include "base/basictypes.h" | |
9 #include "ui/gfx/image/image.h" | |
10 | |
11 // Represents an item in the AvatarMenuModel. | |
12 struct AvatarMenuItemModel { | |
tapted
2013/07/29 01:59:10
This guy should go in namespace ui - that seems to
calamity
2013/07/30 08:42:34
Done.
| |
13 AvatarMenuItemModel(size_t model_index, const gfx::Image& icon) | |
koz (OOO until 15th September)
2013/07/29 00:34:34
This all needs to be indented two spaces.
calamity
2013/07/30 08:42:34
Done.
| |
14 : icon(icon), | |
15 active(false), | |
16 signed_in(false), | |
17 signin_required(false), | |
18 model_index(model_index) {} | |
19 ~AvatarMenuItemModel() {} | |
tapted
2013/07/29 01:59:10
I think clang will warn at you for having a non-tr
calamity
2013/07/30 08:42:34
Done.
| |
20 | |
21 // The icon to be displayed next to the item. | |
22 gfx::Image icon; | |
23 | |
24 // Whether or not the current browser is using this profile. | |
25 bool active; | |
26 | |
27 // The name of this profile. | |
28 string16 name; | |
tapted
2013/07/29 01:59:10
nit: #include "base/strings/string16.h" for string
calamity
2013/07/30 08:42:34
Done.
| |
29 | |
30 // A string representing the sync state of the profile. | |
31 string16 sync_state; | |
32 | |
33 // Whether or not the current profile is signed in. If true, |sync_state| is | |
34 // expected to be the email of the signed in user. | |
35 bool signed_in; | |
36 | |
37 // Whether or not the current profile requires sign-in before use. | |
38 bool signin_required; | |
39 | |
40 // The index in the |profile_cache| that this Item represents. | |
41 size_t model_index; | |
42 }; | |
43 | |
44 #endif // UI_BASE_AVATAR_MENU_ITEM_MODEL_H_ | |
OLD | NEW |