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

Unified Diff: ios/chrome/browser/ui/util/CRUILabel+AttributeUtils.h

Issue 2588733002: Upstream Chrome on iOS source code [9/11]. (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
« no previous file with comments | « ios/chrome/browser/ui/ui_types.h ('k') | ios/chrome/browser/ui/util/CRUILabel+AttributeUtils.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/util/CRUILabel+AttributeUtils.h
diff --git a/ios/chrome/browser/ui/util/CRUILabel+AttributeUtils.h b/ios/chrome/browser/ui/util/CRUILabel+AttributeUtils.h
new file mode 100644
index 0000000000000000000000000000000000000000..8cb8fe0d31c28b1b2c4d1eafe3de54b9b1790bea
--- /dev/null
+++ b/ios/chrome/browser/ui/util/CRUILabel+AttributeUtils.h
@@ -0,0 +1,18 @@
+// 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_BROWSER_UI_UTIL_CRUILABEL_ATTRIBUTEUTILS_H_
+#define IOS_CHROME_BROWSER_UI_UTIL_CRUILABEL_ATTRIBUTEUTILS_H_
+
+#import <UIKit/UIKit.h>
+
+@interface UILabel (CRUILabelAttributeUtils)
+@property(nonatomic, assign, setter=cr_setLineHeight:) CGFloat cr_lineHeight;
+
+// Adjusts the line height of the reciever so that the lines will evenly f
+- (void)cr_adjustLineHeightForMaximimumLines:(NSUInteger)maximumLines;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_UI_UTIL_CRUILABEL_ATTRIBUTEUTILS_H_
« no previous file with comments | « ios/chrome/browser/ui/ui_types.h ('k') | ios/chrome/browser/ui/util/CRUILabel+AttributeUtils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698