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

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: Review comments 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
« no previous file with comments | « ios/chrome/browser/ui/OWNERS ('k') | ios/chrome/browser/ui/background_generator.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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);
23
24 // Installs the stack view/empty tab view background in |view|.
25 void InstallBackgroundInView(UIView* view);
26
27 #endif // IOS_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/OWNERS ('k') | ios/chrome/browser/ui/background_generator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698