OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_SIGNIN_RESOURCES_PROVIDER_H_ |
| 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_SIGNIN_RESOURCES_PROVIDER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/macros.h" |
| 11 |
| 12 @class NSString; |
| 13 @class UIImage; |
| 14 |
| 15 namespace ios { |
| 16 |
| 17 enum class SigninStringID { |
| 18 BUTTON_CANCEL, |
| 19 REMOVE_ACCOUNT, |
| 20 REMOVE_ACCOUNT_CONFIRMATION, |
| 21 UNNAMED_ACCOUNT, |
| 22 }; |
| 23 |
| 24 class SigninResourcesProvider { |
| 25 public: |
| 26 SigninResourcesProvider(); |
| 27 virtual ~SigninResourcesProvider(); |
| 28 |
| 29 // Returns a default avatar to use when the identity is missing one. |
| 30 virtual UIImage* GetDefaultAvatar(); |
| 31 |
| 32 // Returns a localized string. |
| 33 virtual NSString* GetLocalizedString(SigninStringID string_id); |
| 34 |
| 35 private: |
| 36 DISALLOW_COPY_AND_ASSIGN(SigninResourcesProvider); |
| 37 }; |
| 38 |
| 39 } // namespace ios |
| 40 |
| 41 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SIGNIN_SIGNIN_RESOURCES_PROVIDER_H
_ |
OLD | NEW |