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.
4
5#include "ui/base/device_form_factor.h"
6
7#include "base/command_line.h"
8#include "ui_base_switches.h"
9
10namespace ui {
11
12DeviceFormFactor GetDeviceFormFactor() {
13  if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kTabletUI))
14    return DEVICE_FORM_FACTOR_TABLET;
15  return DEVICE_FORM_FACTOR_PHONE;
16}
17
18}  // namespace ui
19