OLD | NEW |
(Empty) | |
| 1 // Copyright 2012 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_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_ |
| 7 |
| 8 #include <UIKit/UIKit.h> |
| 9 |
| 10 // Returns a UIImage of size |backgroundRect| with a radial gradient image at |
| 11 // |centerPoint| and radiates outwards to a radius of |radius|. The gradient |
| 12 // starts from |centerColor| at |centerPoint| to |outsideColor| at the end of |
| 13 // |radius|. |tileImage| is tiled over the entire image and |logoImage| is |
| 14 // rendered at |centerPoint|. |
| 15 // |tileImage| and |logoImage| may be nil. |
| 16 UIImage* GetRadialGradient(CGRect backgroundRect, |
| 17 CGPoint centerPoint, |
| 18 CGFloat radius, |
| 19 CGFloat centerColor, |
| 20 CGFloat outsideColor, |
| 21 UIImage* tileImage, |
| 22 UIImage* logoImage); |
| 23 |
| 24 // Installs the stack view/empty tab view background in |view|. |
| 25 void InstallBackgroundInView(UIView* view); |
| 26 |
| 27 #endif // IOS_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_ |
OLD | NEW |