cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / ios / chrome / browser / ui / orientation_limiting_navigation_controller.mm
blob4a5e28c281c4a6aa40d03f800a28c1d4e43a2379
1 // Copyright (c) 2012 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 #import "ios/chrome/browser/ui/orientation_limiting_navigation_controller.h"
7 #include "base/logging.h"
8 #include "ios/chrome/browser/ui/ui_util.h"
10 @implementation OrientationLimitingNavigationController
12 - (NSUInteger)supportedInterfaceOrientations {
13   return IsIPadIdiom() ? [super supportedInterfaceOrientations]
14                        : UIInterfaceOrientationMaskPortrait;
17 - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
18   return IsIPadIdiom() ? [super preferredInterfaceOrientationForPresentation]
19                        : UIInterfaceOrientationPortrait;
22 - (BOOL)shouldAutorotate {
23   return IsIPadIdiom() ? [super shouldAutorotate] : NO;
26 @end