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 #include "base/command_line.h"
8 #include "ui_base_switches.h"
12 DeviceFormFactor
GetDeviceFormFactor() {
13 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kTabletUI
))
14 return DEVICE_FORM_FACTOR_TABLET
;
15 return DEVICE_FORM_FACTOR_PHONE
;