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

Unified Diff: ios/chrome/today_extension/transparent_button.h

Issue 2586713002: Upstream code and resources for Chrome on iOS extensions. (Closed)
Patch Set: Created 4 years 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
Index: ios/chrome/today_extension/transparent_button.h
diff --git a/ios/chrome/today_extension/transparent_button.h b/ios/chrome/today_extension/transparent_button.h
new file mode 100644
index 0000000000000000000000000000000000000000..758aa68bf26eca4f1f2b409f25a0f7d99b08e143
--- /dev/null
+++ b/ios/chrome/today_extension/transparent_button.h
@@ -0,0 +1,33 @@
+// Copyright 2015 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_TODAY_EXTENSION_TRANSPARENT_BUTTON_H_
+#define IOS_CHROME_TODAY_EXTENSION_TRANSPARENT_BUTTON_H_
+
+#import <UIKit/UIKit.h>
+
+// A button that has a transparent background with Vibrancy effect and an ink
+// ripple effect.
+@interface TransparentButton : UIButton
+
+- (instancetype)initWithFrame:(CGRect)frame;
+
+// A container view to add subviews to the button.
+@property(nonatomic, readonly) UIView* contentView;
+
+// The color of the border of the button.
+@property(nonatomic, retain) UIColor* borderColor;
+
+// The width of the border of the button.
+@property(nonatomic) CGFloat borderWidth;
+
+// The ink color.
+@property(nonatomic, retain) UIColor* inkColor;
+
+// The corner radius of the button.
+@property(nonatomic, assign) CGFloat cornerRadius;
+
+@end
+
+#endif // IOS_CHROME_TODAY_EXTENSION_TRANSPARENT_BUTTON_H_
« no previous file with comments | « ios/chrome/today_extension/today_view_controller.mm ('k') | ios/chrome/today_extension/transparent_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698