| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_ | 6 #define IOS_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_ |
| 7 | 7 |
| 8 #include <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 // Returns a UIImage of size |backgroundRect| with a radial gradient image at | 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 | 11 // |centerPoint| and radiates outwards to a radius of |radius|. The gradient |
| 12 // starts from |centerColor| at |centerPoint| to |outsideColor| at the end of | 12 // starts from |centerColor| at |centerPoint| to |outsideColor| at the end of |
| 13 // |radius|. |tileImage| is tiled over the entire image and |logoImage| is | 13 // |radius|. |tileImage| is tiled over the entire image and |logoImage| is |
| 14 // rendered at |centerPoint|. | 14 // rendered at |centerPoint|. |
| 15 // |tileImage| and |logoImage| may be nil. | 15 // |tileImage| and |logoImage| may be nil. |
| 16 UIImage* GetRadialGradient(CGRect backgroundRect, | 16 UIImage* GetRadialGradient(CGRect backgroundRect, |
| 17 CGPoint centerPoint, | 17 CGPoint centerPoint, |
| 18 CGFloat radius, | 18 CGFloat radius, |
| 19 CGFloat centerColor, | 19 CGFloat centerColor, |
| 20 CGFloat outsideColor, | 20 CGFloat outsideColor, |
| 21 UIImage* tileImage, | 21 UIImage* tileImage, |
| 22 UIImage* logoImage); | 22 UIImage* logoImage); |
| 23 | 23 |
| 24 // Installs the stack view/empty tab view background in |view|. | 24 // Installs the stack view/empty tab view background in |view|. |
| 25 void InstallBackgroundInView(UIView* view); | 25 void InstallBackgroundInView(UIView* view); |
| 26 | 26 |
| 27 #endif // IOS_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_ | 27 #endif // IOS_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_ |
| OLD | NEW |