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

Unified 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, 9 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/background_generator.h
diff --git a/ios/chrome/browser/ui/background_generator.h b/ios/chrome/browser/ui/background_generator.h
new file mode 100644
index 0000000000000000000000000000000000000000..00f433d52d3c91cb05ba5bd60af61292d0500f0a
--- /dev/null
+++ b/ios/chrome/browser/ui/background_generator.h
@@ -0,0 +1,27 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_
+#define IOS_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_
+
+#include <UIKit/UIKit.h>
+
+// Returns a UIImage of size |backgroundRect| with a radial gradient image at
+// |centerPoint| and radiates outwards to a radius of |radius|. The gradient
+// starts from |centerColor| at |centerPoint| to |outsideColor| at the end of
+// |radius|. |tileImage| is tiled over the entire image and |logoImage| is
+// rendered at |centerPoint|.
+// |tileImage| and |logoImage| may be nil.
+UIImage* GetRadialGradient(CGRect backgroundRect,
+ CGPoint centerPoint,
+ CGFloat radius,
+ CGFloat centerColor,
+ CGFloat outsideColor,
+ UIImage* tileImage,
+ UIImage* logoImage);
+
+// Installs the stack view/empty tab view background in |view|.
+void InstallBackgroundInView(UIView* view);
+
+#endif // IOS_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_
« 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