OLD | NEW |
---|---|
(Empty) | |
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 | |
10 namespace ui { | |
11 | |
12 DeviceFormFactor GetDeviceFormFactor() { | |
13 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kTabletUI)) { | |
Alexei Svitkine (slow)
2013/11/04 16:08:51
Nit: Remove {}'s, since this is a 1-liner.
yao
2013/11/04 19:38:29
Done.
| |
14 return DEVICE_FORM_FACTOR_TABLET; | |
15 } | |
16 return DEVICE_FORM_FACTOR_PHONE; | |
17 } | |
18 | |
19 } // namespace ui | |
OLD | NEW |