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 namespace background_generator { | |
sdefresne
2015/04/02 17:20:28
style: why the namespace?
| |
11 | |
12 // Returns a UIImage of size |backgroundRect| with a radial gradient image | |
13 // at |centerPoint| and radiates outwards to a radius of |radius|. The | |
14 // gradient starts from |centerColor| at |centerPoint| to |outsideColor| | |
15 // at the end of |radius|. |tileImage| is tiled over the entire | |
sdefresne
2015/04/02 17:20:28
nit: I think that "image" would fit on this line.
| |
16 // image and |logoImage| is rendered at |centerPoint|. | |
17 // |tileImage| and |logoImage| may be nil. | |
18 UIImage* GetRadialGradient(CGRect backgroundRect, | |
19 CGPoint centerPoint, | |
20 CGFloat radius, | |
21 CGFloat centerColor, | |
22 CGFloat outsideColor, | |
23 UIImage* tileImage, | |
24 UIImage* logoImage); | |
25 | |
26 // Installs the stack view/empty tab view background in |view|. | |
27 void InstallBackgroundInView(UIView* view); | |
28 | |
29 } // namespace background_generator | |
30 | |
31 #endif // IOS_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_ | |
OLD | NEW |