| 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..4bffbe51f92577da2d97e544f8d082da7286dd08
|
| --- /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_PROFILE_SELECTOR_AVATAR_MENU_ITEM_MODEL_H_
|
| +#define UI_BASE_PROFILE_SELECTOR_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_PROFILE_SELECTOR_AVATAR_MENU_ITEM_MODEL_H_
|
|
|