Moved --top-chrome-md command line switch from chrome_switches to ui_base_switches.
[chromium-blink-merge.git] / ui / base / device_form_factor_ios.mm
blob7974483a97da36c02dab260d7216b3295e8a0bbd
1 // Copyright 2013 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 #include "ui/base/device_form_factor.h"
7 #import <UIKit/UIKit.h>
9 namespace ui {
11 DeviceFormFactor GetDeviceFormFactor() {
12   UIUserInterfaceIdiom idiom = [[UIDevice currentDevice] userInterfaceIdiom];
13   if (idiom == UIUserInterfaceIdiomPad)
14     return DEVICE_FORM_FACTOR_TABLET;
15   return DEVICE_FORM_FACTOR_PHONE;
18 }  // namespace ui