diff options
author | Eugene But <eugenebut@google.com> | 2015-12-22 15:28:44 -0800 |
---|---|---|
committer | Eugene But <eugenebut@google.com> | 2015-12-22 23:30:18 +0000 |
commit | 6bf61610cd2d2ee867bb631d9dca85dbec70ef45 (patch) | |
tree | df959913c7c7ff2e0095ef470e53be4141096450 | |
parent | a9a1fa1ead64372605fae1d976b20a71f02e1615 (diff) | |
download | chromium_src-6bf61610cd2d2ee867bb631d9dca85dbec70ef45.zip chromium_src-6bf61610cd2d2ee867bb631d9dca85dbec70ef45.tar.gz chromium_src-6bf61610cd2d2ee867bb631d9dca85dbec70ef45.tar.bz2 |
Removes use of deprecated -applicationFrame
-applicationFrame has been deprecated in iOS9. -bounds is used instead.
BUG=570138
Review URL: https://codereview.chromium.org/1534113002
Cr-Commit-Position: refs/heads/master@{#366093}
(cherry picked from commit bae92ef44a58aeab196e73c304633886afc423ef)
Review URL: https://codereview.chromium.org/1546653003 .
Cr-Commit-Position: refs/branch-heads/2564@{#428}
Cr-Branched-From: 1283eca15bd9f772387f75241576cde7bdec7f54-refs/heads/master@{#359700}
-rw-r--r-- | ui/base/ios/cru_context_menu_controller.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/base/ios/cru_context_menu_controller.mm b/ui/base/ios/cru_context_menu_controller.mm index 27ce9ee..f615c01 100644 --- a/ui/base/ios/cru_context_menu_controller.mm +++ b/ui/base/ios/cru_context_menu_controller.mm @@ -24,11 +24,11 @@ CGFloat GetScreenHeight() { switch ([[UIApplication sharedApplication] statusBarOrientation]) { case UIInterfaceOrientationLandscapeLeft: case UIInterfaceOrientationLandscapeRight: - return CGRectGetWidth([[UIScreen mainScreen] applicationFrame]); + return CGRectGetWidth([[UIScreen mainScreen] bounds]); case UIInterfaceOrientationPortraitUpsideDown: case UIInterfaceOrientationPortrait: case UIInterfaceOrientationUnknown: - return CGRectGetHeight([[UIScreen mainScreen] applicationFrame]); + return CGRectGetHeight([[UIScreen mainScreen] bounds]); } } |