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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 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_TODAY_EXTENSION_TRANSPARENT_BUTTON_H_
6 #define IOS_CHROME_TODAY_EXTENSION_TRANSPARENT_BUTTON_H_
7
8 #import <UIKit/UIKit.h>
9
10 // A button that has a transparent background with Vibrancy effect and an ink
11 // ripple effect.
12 @interface TransparentButton : UIButton
13
14 - (instancetype)initWithFrame:(CGRect)frame;
15
16 // A container view to add subviews to the button.
17 @property(nonatomic, readonly) UIView* contentView;
18
19 // The color of the border of the button.
20 @property(nonatomic, retain) UIColor* borderColor;
21
22 // The width of the border of the button.
23 @property(nonatomic) CGFloat borderWidth;
24
25 // The ink color.
26 @property(nonatomic, retain) UIColor* inkColor;
27
28 // The corner radius of the button.
29 @property(nonatomic, assign) CGFloat cornerRadius;
30
31 @end
32
33 #endif // IOS_CHROME_TODAY_EXTENSION_TRANSPARENT_BUTTON_H_
OLDNEW
« 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