OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import "ios/chrome/browser/ui/uikit_ui_util.h" | 5 #import "ios/chrome/browser/ui/uikit_ui_util.h" |
6 | 6 |
7 #import <Accelerate/Accelerate.h> | 7 #import <Accelerate/Accelerate.h> |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 #import <QuartzCore/QuartzCore.h> | 9 #import <QuartzCore/QuartzCore.h> |
| 10 #include <stddef.h> |
| 11 #include <stdint.h> |
10 #import <UIKit/UIKit.h> | 12 #import <UIKit/UIKit.h> |
11 #include <cmath> | 13 #include <cmath> |
12 | 14 |
13 #include "base/ios/ios_util.h" | 15 #include "base/ios/ios_util.h" |
14 #include "base/logging.h" | 16 #include "base/logging.h" |
15 #include "base/mac/foundation_util.h" | 17 #include "base/mac/foundation_util.h" |
16 #include "ios/chrome/browser/experimental_flags.h" | 18 #include "ios/chrome/browser/experimental_flags.h" |
17 #include "ios/chrome/browser/ui/ui_util.h" | 19 #include "ios/chrome/browser/ui/ui_util.h" |
18 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
19 #include "ui/base/l10n/l10n_util_mac.h" | 21 #include "ui/base/l10n/l10n_util_mac.h" |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 return IsCompact(keyWindow); | 567 return IsCompact(keyWindow); |
566 } | 568 } |
567 | 569 |
568 bool IsCompactTablet(id<UITraitEnvironment> environment) { | 570 bool IsCompactTablet(id<UITraitEnvironment> environment) { |
569 return IsIPadIdiom() && IsCompact(environment); | 571 return IsIPadIdiom() && IsCompact(environment); |
570 } | 572 } |
571 | 573 |
572 bool IsCompactTablet() { | 574 bool IsCompactTablet() { |
573 return IsIPadIdiom() && IsCompact(); | 575 return IsIPadIdiom() && IsCompact(); |
574 } | 576 } |
OLD | NEW |