blob: a0f331c9add3ca72f0e4a6c27b954511091f737a [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 base {
class Version;
} // namespace base
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) = 0;
virtual void UpdateGamepadData(device::GvrGamepadData) = 0;
virtual void ForceExitVr() = 0;
virtual void OnContentPaused(bool enabled) = 0;
virtual void ToggleCardboardGamepad(bool enabled) = 0;
virtual void OnAssetsLoaded(vr::AssetsLoadStatus status,
const base::Version& component_version) = 0;
};
} // namespace vr_shell
#endif // CHROME_BROWSER_ANDROID_VR_SHELL_GL_BROWSER_INTERFACE_H_