| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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_IMAGES_BRANDED_IMAGE_PROVIDER_H_ |
| 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_IMAGES_BRANDED_IMAGE_PROVIDER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "ios/public/provider/chrome/browser/images/whats_new_icon.h" |
| 10 |
| 11 @class UIImage; |
| 12 |
| 13 // BrandedImageProvider vends images that contain embedder-specific branding. |
| 14 class BrandedImageProvider { |
| 15 public: |
| 16 BrandedImageProvider(); |
| 17 virtual ~BrandedImageProvider(); |
| 18 |
| 19 // Returns the 24pt x 24pt image to use for the "activity controls" item on |
| 20 // the accounts list screen. |
| 21 virtual UIImage* GetAccountsListActivityControlsImage(); |
| 22 |
| 23 // Returns the 24pt x 24pt image to use for the "account and activity" item on |
| 24 // the clear browsing data settings screen. |
| 25 virtual UIImage* GetClearBrowsingDataAccountActivityImage(); |
| 26 |
| 27 // Returns the 24pt x 24pt image to use for the "account and activity" item on |
| 28 // the clear browsing data settings screen. |
| 29 virtual UIImage* GetClearBrowsingDataSiteDataImage(); |
| 30 |
| 31 // Returns the 24pt x 24pt image to use in the contextual search header. |
| 32 virtual UIImage* GetContextualSearchHeaderImage(); |
| 33 |
| 34 // Returns the 16pt x 16pt image to use for the "sync settings" item on the |
| 35 // signin confirmation screen. |
| 36 virtual UIImage* GetSigninConfirmationSyncSettingsImage(); |
| 37 |
| 38 // Returns the 16pt x 16pt image to use for the "personalize services" item on |
| 39 // the signin confirmation screen. |
| 40 virtual UIImage* GetSigninConfirmationPersonalizeServicesImage(); |
| 41 |
| 42 // Sets |image_id| to contain the resource id corresponding to the 24pt x 24pt |
| 43 // image for the toolbar voice search button. If this method returns false, |
| 44 // |image_id| is invalid and callers should fall back to a default image. The |
| 45 // returned image should be used for all toolbar styles and all button states. |
| 46 virtual bool GetToolbarVoiceSearchButtonImageId(int* image_id); |
| 47 |
| 48 // Returns the 24pt x 24pt image corresponding to the given icon |type|. |
| 49 virtual UIImage* GetWhatsNewIconImage(WhatsNewIcon type); |
| 50 |
| 51 private: |
| 52 DISALLOW_COPY_AND_ASSIGN(BrandedImageProvider); |
| 53 }; |
| 54 |
| 55 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_IMAGES_BRANDED_IMAGE_PROVIDER_H_ |
| OLD | NEW |