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

Side by Side Diff: ui/base/profile_selector/avatar_menu_item_model.h

Issue 20656002: Add profile selector menu to app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove junk from list_model.h Created 7 years, 4 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
(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_
tapted 2013/08/05 03:01:39 This include guard needs updating
calamity 2013/08/08 04:52:12 Done.
6 #define UI_BASE_MODELS_AVATAR_MENU_ITEM_MODEL_H_
7
8 #include "base/basictypes.h"
9 #include "base/files/file_path.h"
10 #include "base/strings/string16.h"
11 #include "ui/base/ui_export.h"
12 #include "ui/gfx/image/image.h"
13
14 namespace ui {
15
16 // Represents an item in the AvatarMenuModel.
17 struct UI_EXPORT AvatarMenuItemModel {
18 AvatarMenuItemModel(size_t model_index, const gfx::Image& icon);
19 ~AvatarMenuItemModel();
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 base::string16 name;
29
30 // A string representing the sync state of the profile.
31 base::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 // The path to the profile directory that this item represents.
44 base::FilePath profile_path;
45 };
46
47 } // namespace ui
48
49 #endif // UI_BASE_MODELS_AVATAR_MENU_ITEM_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698