blob: 3b1353811eedbc1990439a86014e9d109212fdd3 [file] [log] [blame]
// 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 CHROME_BROWSER_ANDROID_VR_SHELL_GL_BROWSER_INTERFACE_H_
#define CHROME_BROWSER_ANDROID_VR_SHELL_GL_BROWSER_INTERFACE_H_
#include <memory>
#include "base/android/jni_weak_ref.h"
#include "chrome/browser/vr/assets_load_status.h"
#include "device/vr/android/gvr/gvr_gamepad_data_provider.h"
#include "device/vr/vr_service.mojom.h"
#include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/gvr_types.h"
#include "ui/gfx/transform.h"
namespace vr_shell {
// VrShellGl talks to VrShell through this interface. This could be split up if
// VrShellGl is refactored into components.
class GlBrowserInterface {
public:
virtual ~GlBrowserInterface() = default;
virtual void ContentSurfaceChanged(jobject surface) = 0;
virtual void GvrDelegateReady(
gvr::ViewerType viewer_type,
device::mojom::VRDisplayFrameTransportOptionsPtr) = 0;
virtual void UpdateGamepadData(device::GvrGamepadData) = 0;
virtual void ForceExitVr() = 0;
virtual void OnContentPaused(bool enabled) = 0;
virtual void ToggleCardboardGamepad(bool enabled) = 0;
};
} // namespace vr_shell
#endif // CHROME_BROWSER_ANDROID_VR_SHELL_GL_BROWSER_INTERFACE_H_