cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / ios / chrome / browser / ui / background_generator.h
blob00f433d52d3c91cb05ba5bd60af61292d0500f0a
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,
17 CGPoint centerPoint,
18 CGFloat radius,
19 CGFloat centerColor,
20 CGFloat outsideColor,
21 UIImage* tileImage,
22 UIImage* logoImage);
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_