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..48548da50b355e570594d95b99d5960597cd633d |
--- /dev/null |
+++ b/ios/chrome/browser/ui/background_generator.h |
@@ -0,0 +1,31 @@ |
+// 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> |
+ |
+namespace background_generator { |
sdefresne
2015/04/02 17:20:28
style: why the namespace?
|
+ |
+// 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 |
sdefresne
2015/04/02 17:20:28
nit: I think that "image" would fit on this line.
|
+// 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); |
+ |
+} // namespace background_generator |
+ |
+#endif // IOS_CHROME_BROWSER_UI_BACKGROUND_GENERATOR_H_ |