blob: 70b053271037fca2eca541af51d3fd625f6d1977 [file] [log] [blame]
Avi Drissman3e1a26c2022-09-15 20:26:031// Copyright 2013 The Chromium Authors
[email protected]e659b4be2013-11-07 21:52:052// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef UI_BASE_DEVICE_FORM_FACTOR_H_
6#define UI_BASE_DEVICE_FORM_FACTOR_H_
7
Henrique Ferreiro376c7652020-05-22 09:00:048#include "base/component_export.h"
[email protected]e659b4be2013-11-07 21:52:059
10namespace ui {
11
12enum DeviceFormFactor {
13 DEVICE_FORM_FACTOR_DESKTOP = 0,
14 DEVICE_FORM_FACTOR_PHONE = 1,
Roger McFarlane413f9a782023-07-12 18:42:3515 DEVICE_FORM_FACTOR_TABLET = 2,
16 DEVICE_FORM_FACTOR_TV = 3,
17 DEVICE_FORM_FACTOR_AUTOMOTIVE = 4,
[email protected]e659b4be2013-11-07 21:52:0518};
19
20// Returns the form factor of current device. For platforms other than Android
21// and iOS, DEVICE_FORM_FACTOR_DESKTOP is always returned.
Henrique Ferreiro376c7652020-05-22 09:00:0422COMPONENT_EXPORT(UI_BASE) DeviceFormFactor GetDeviceFormFactor();
[email protected]e659b4be2013-11-07 21:52:0523
24} // namespace ui
25
26#endif // UI_BASE_DEVICE_FORM_FACTOR_H_