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

Unified Diff: ios/chrome/browser/ui/uikit_ui_util.h

Issue 1329713002: Add convenience methods for checking horizontal size class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Synced Created 5 years, 3 months 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 | « no previous file | ios/chrome/browser/ui/uikit_ui_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/uikit_ui_util.h
diff --git a/ios/chrome/browser/ui/uikit_ui_util.h b/ios/chrome/browser/ui/uikit_ui_util.h
index db6af6c7c2fbb80141aafce47d80b519a3672651..220a8bd4076d71be24385104c197f4657658bb40 100644
--- a/ios/chrome/browser/ui/uikit_ui_util.h
+++ b/ios/chrome/browser/ui/uikit_ui_util.h
@@ -176,10 +176,16 @@ void AddSameCenterYConstraint(UIView* parentView,
UIView* subview1,
UIView* subview2);
+// Whether the |environment| has a compact horizontal size class.
+bool IsCompact(id<UITraitEnvironment> environment);
+
// Whether the main application window's rootViewController has a compact
// horizontal size class.
bool IsCompact();
+// Whether the |environment| has a compact iPad horizontal size class.
+bool IsCompactTablet(id<UITraitEnvironment> environment);
+
// Whether the main application window's rootViewController has a compact
// iPad horizontal size class.
bool IsCompactTablet();
« no previous file with comments | « no previous file | ios/chrome/browser/ui/uikit_ui_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698