summaryrefslogtreecommitdiff
path: root/chromium/device/base/features.h
blob: 1d9143d496164b1dac4e6c2a7e155504cc7eaab8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef DEVICE_BASE_FEATURES_H_
#define DEVICE_BASE_FEATURES_H_

#include "base/feature_list.h"
#include "build/build_config.h"
#include "device/base/device_base_export.h"
#include "device/vr/buildflags/buildflags.h"

namespace device {

#if defined(OS_WIN) || defined(OS_MAC)
DEVICE_BASE_EXPORT extern const base::Feature kNewUsbBackend;
#endif  // defined(OS_WIN) || defined(OS_MAC)

#if defined(OS_WIN)
DEVICE_BASE_EXPORT extern const base::Feature kNewBLEWinImplementation;
DEVICE_BASE_EXPORT extern const base::Feature kNewBLEGattSessionHandling;
#endif  // defined(OS_WIN)

#if BUILDFLAG(ENABLE_VR)
DEVICE_BASE_EXPORT extern const base::Feature kWebXrOrientationSensorDevice;
#endif  // BUILDFLAG(ENABLE_VR)

// New features should be added to the device::features namespace.

namespace features {
#if BUILDFLAG(ENABLE_OPENXR)
DEVICE_BASE_EXPORT extern const base::Feature kOpenXR;
#endif  // ENABLE_OPENXR
#if BUILDFLAG(ENABLE_WINDOWS_MR)
DEVICE_BASE_EXPORT extern const base::Feature kWindowsMixedReality;
#endif  // ENABLE_WINDOWS_MR
}  // namespace features
}  // namespace device

#endif  // DEVICE_BASE_FEATURES_H_