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.
5 #ifndef IOS_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_
6 #define IOS_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_
8 #include <UIKit/UIKit.h>
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
,
24 // Installs the stack view/empty tab view background in |view|.
25 void InstallBackgroundInView(UIView
* view
);
27 #endif // IOS_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_