| Index: ios/public/provider/chrome/browser/images/branded_image_provider.h
|
| diff --git a/ios/public/provider/chrome/browser/images/branded_image_provider.h b/ios/public/provider/chrome/browser/images/branded_image_provider.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..dd5ed0289ac57d08ad3cb1505dd5fc8fa162e8a6
|
| --- /dev/null
|
| +++ b/ios/public/provider/chrome/browser/images/branded_image_provider.h
|
| @@ -0,0 +1,55 @@
|
| +// Copyright 2016 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_IMAGES_BRANDED_IMAGE_PROVIDER_H_
|
| +#define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_IMAGES_BRANDED_IMAGE_PROVIDER_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "ios/public/provider/chrome/browser/images/whats_new_icon.h"
|
| +
|
| +@class UIImage;
|
| +
|
| +// BrandedImageProvider vends images that contain embedder-specific branding.
|
| +class BrandedImageProvider {
|
| + public:
|
| + BrandedImageProvider();
|
| + virtual ~BrandedImageProvider();
|
| +
|
| + // Returns the 24pt x 24pt image to use for the "activity controls" item on
|
| + // the accounts list screen.
|
| + virtual UIImage* GetAccountsListActivityControlsImage();
|
| +
|
| + // Returns the 24pt x 24pt image to use for the "account and activity" item on
|
| + // the clear browsing data settings screen.
|
| + virtual UIImage* GetClearBrowsingDataAccountActivityImage();
|
| +
|
| + // Returns the 24pt x 24pt image to use for the "account and activity" item on
|
| + // the clear browsing data settings screen.
|
| + virtual UIImage* GetClearBrowsingDataSiteDataImage();
|
| +
|
| + // Returns the 24pt x 24pt image to use in the contextual search header.
|
| + virtual UIImage* GetContextualSearchHeaderImage();
|
| +
|
| + // Returns the 16pt x 16pt image to use for the "sync settings" item on the
|
| + // signin confirmation screen.
|
| + virtual UIImage* GetSigninConfirmationSyncSettingsImage();
|
| +
|
| + // Returns the 16pt x 16pt image to use for the "personalize services" item on
|
| + // the signin confirmation screen.
|
| + virtual UIImage* GetSigninConfirmationPersonalizeServicesImage();
|
| +
|
| + // Sets |image_id| to contain the resource id corresponding to the 24pt x 24pt
|
| + // image for the toolbar voice search button. If this method returns false,
|
| + // |image_id| is invalid and callers should fall back to a default image. The
|
| + // returned image should be used for all toolbar styles and all button states.
|
| + virtual bool GetToolbarVoiceSearchButtonImageId(int* image_id);
|
| +
|
| + // Returns the 24pt x 24pt image corresponding to the given icon |type|.
|
| + virtual UIImage* GetWhatsNewIconImage(WhatsNewIcon type);
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(BrandedImageProvider);
|
| +};
|
| +
|
| +#endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_IMAGES_BRANDED_IMAGE_PROVIDER_H_
|
|
|