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.
5 #ifndef IOS_CHROME_BROWSER_UI_UIVIEW_SIZE_CLASS_SUPPORT_H_
6 #define IOS_CHROME_BROWSER_UI_UIVIEW_SIZE_CLASS_SUPPORT_H_
8 #import <UIKit/UIKit.h>
10 // An enum type to describe size classes.
11 typedef NS_ENUM(NSInteger
, SizeClassIdiom
) {
17 // UIView category that exposes SizeClassIdiom getters.
18 @interface
UIView (SizeClassSupport
)
20 // Convenience getters for the view's width and height SizeClassIdioms.
21 @
property(nonatomic
, readonly
) SizeClassIdiom cr_widthSizeClass
;
22 @
property(nonatomic
, readonly
) SizeClassIdiom cr_heightSizeClass
;
26 #endif // IOS_CHROME_BROWSER_UI_UIVIEW_SIZE_CLASS_SUPPORT_H_