blob: 27616caa4f440c3e88b82b49aa62a2789172e77b [file] [log] [blame]
// Copyright 2015 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_VR_VR_DEVICE_PROVIDER_H
#define DEVICE_VR_VR_DEVICE_PROVIDER_H
#include <vector>
#include "base/callback.h"
#include "device/vr/public/mojom/isolated_xr_service.mojom.h"
namespace device {
class VRDeviceProvider {
public:
VRDeviceProvider() {}
virtual ~VRDeviceProvider() {}
// If the VR API requires initialization that should happen here.
virtual void Initialize(
base::RepeatingCallback<void(mojom::XRDeviceId id,
mojom::VRDisplayInfoPtr,
mojom::XRRuntimePtr)> add_device_callback,
base::RepeatingCallback<void(mojom::XRDeviceId id)>
remove_device_callback,
base::OnceClosure initialization_complete) = 0;
// Returns true if initialization is complete.
virtual bool Initialized() = 0;
};
} // namespace device
#endif // DEVICE_VR_VR_DEVICE_PROVIDER_H