1 // Copyright 2015 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 #ifndef DEVICE_VR_VR_DEVICE_H 6 #define DEVICE_VR_VR_DEVICE_H 7 8 #include "base/callback.h" 9 #include "base/macros.h" 10 #include "device/vr/public/mojom/isolated_xr_service.mojom.h" 11 #include "device/vr/public/mojom/vr_service.mojom.h" 12 #include "device/vr/vr_export.h" 13 14 namespace device { 15 16 // These values are persisted to logs. Entries should not be renumbered and 17 // numeric values should never be reused. 18 enum class VrViewerType { 19 GVR_UNKNOWN = 0, 20 GVR_CARDBOARD = 1, 21 GVR_DAYDREAM = 2, 22 ORIENTATION_SENSOR_DEVICE = 10, 23 FAKE_DEVICE = 11, 24 OPENVR_UNKNOWN = 20, 25 OPENVR_VIVE = 21, 26 OPENVR_RIFT_CV1 = 22, 27 OCULUS_UNKNOWN = 40, // Going through Oculus APIs 28 WINDOWS_MIXED_REALITY_UNKNOWN = 60, // Going through WMR APIs 29 OPENXR_UNKNOWN = 70, // Going through OpenXR APIs 30 }; 31 32 void LogViewerType(VrViewerType); // Implemented in vr_device_base.cc 33 34 } // namespace device 35 36 #endif // DEVICE_VR_VR_DEVICE_H 37