Chromium Code Reviews| Index: ui/base/profile_selector/avatar_menu_item_model.h |
| diff --git a/ui/base/profile_selector/avatar_menu_item_model.h b/ui/base/profile_selector/avatar_menu_item_model.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b3ea8087b2037e2110123cacecbd992474654b65 |
| --- /dev/null |
| +++ b/ui/base/profile_selector/avatar_menu_item_model.h |
| @@ -0,0 +1,49 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#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.
|
| +#define UI_BASE_MODELS_AVATAR_MENU_ITEM_MODEL_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/files/file_path.h" |
| +#include "base/strings/string16.h" |
| +#include "ui/base/ui_export.h" |
| +#include "ui/gfx/image/image.h" |
| + |
| +namespace ui { |
| + |
| +// Represents an item in the AvatarMenuModel. |
| +struct UI_EXPORT AvatarMenuItemModel { |
| + AvatarMenuItemModel(size_t model_index, const gfx::Image& icon); |
| + ~AvatarMenuItemModel(); |
| + |
| + // The icon to be displayed next to the item. |
| + gfx::Image icon; |
| + |
| + // Whether or not the current browser is using this profile. |
| + bool active; |
| + |
| + // The name of this profile. |
| + base::string16 name; |
| + |
| + // A string representing the sync state of the profile. |
| + base::string16 sync_state; |
| + |
| + // Whether or not the current profile is signed in. If true, |sync_state| is |
| + // expected to be the email of the signed in user. |
| + bool signed_in; |
| + |
| + // Whether or not the current profile requires sign-in before use. |
| + bool signin_required; |
| + |
| + // The index in the |profile_cache| that this Item represents. |
| + size_t model_index; |
| + |
| + // The path to the profile directory that this item represents. |
| + base::FilePath profile_path; |
| +}; |
| + |
| +} // namespace ui |
| + |
| +#endif // UI_BASE_MODELS_AVATAR_MENU_ITEM_MODEL_H_ |