Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / ios / chrome / browser / ui / UIView+SizeClassSupport.h
blobc5ee09ce731d768c8450e0a958bb39e273f33e4f
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) {
12 COMPACT = 0,
13 REGULAR,
14 SIZE_CLASS_COUNT
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;
24 @end
26 #endif // IOS_CHROME_BROWSER_UI_UIVIEW_SIZE_CLASS_SUPPORT_H_