| Index: ios/public/provider/chrome/browser/signin/signin_resources_provider.h
|
| diff --git a/ios/public/provider/chrome/browser/signin/signin_resources_provider.h b/ios/public/provider/chrome/browser/signin/signin_resources_provider.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..958127b3910da1e7918af58485a0e1dcbf750ce5
|
| --- /dev/null
|
| +++ b/ios/public/provider/chrome/browser/signin/signin_resources_provider.h
|
| @@ -0,0 +1,41 @@
|
| +// Copyright 2015 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 IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_SIGNIN_RESOURCES_PROVIDER_H_
|
| +#define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_SIGNIN_RESOURCES_PROVIDER_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "base/macros.h"
|
| +
|
| +@class NSString;
|
| +@class UIImage;
|
| +
|
| +namespace ios {
|
| +
|
| +enum class SigninStringID {
|
| + BUTTON_CANCEL,
|
| + REMOVE_ACCOUNT,
|
| + REMOVE_ACCOUNT_CONFIRMATION,
|
| + UNNAMED_ACCOUNT,
|
| +};
|
| +
|
| +class SigninResourcesProvider {
|
| + public:
|
| + SigninResourcesProvider();
|
| + virtual ~SigninResourcesProvider();
|
| +
|
| + // Returns a default avatar to use when the identity is missing one.
|
| + virtual UIImage* GetDefaultAvatar();
|
| +
|
| + // Returns a localized string.
|
| + virtual NSString* GetLocalizedString(SigninStringID string_id);
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(SigninResourcesProvider);
|
| +};
|
| +
|
| +} // namespace ios
|
| +
|
| +#endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_SIGNIN_RESOURCES_PROVIDER_H_
|
|
|