Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: ios/chrome/browser/ui/background_generator.h

Issue 1058933002: [iOS] Upstream //ios/chrome/browser/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@upstreamMemory
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698