blob: db61c14c4e9d00927b1f41255ed2a8f9f9b05abc [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,
Zhe Li50291cf2023-10-25 05:03:2118 DEVICE_FORM_FACTOR_FOLDABLE = 5,
[email protected]e659b4be2013-11-07 21:52:0519};
20
21// Returns the form factor of current device. For platforms other than Android
22// and iOS, DEVICE_FORM_FACTOR_DESKTOP is always returned.
Henrique Ferreiro376c7652020-05-22 09:00:0423COMPONENT_EXPORT(UI_BASE) DeviceFormFactor GetDeviceFormFactor();
[email protected]e659b4be2013-11-07 21:52:0524
25} // namespace ui
26
27#endif // UI_BASE_DEVICE_FORM_FACTOR_H_