Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: chrome/browser/android/vr_shell/vr_shell_delegate.h

Issue 2727873002: Implement lazy initialization for VrShellDelegate (Closed)
Patch Set: Fix support for DON flow from headset insertion. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/vr_shell/vr_shell_delegate.h
diff --git a/chrome/browser/android/vr_shell/vr_shell_delegate.h b/chrome/browser/android/vr_shell/vr_shell_delegate.h
index a1e00ae3ee58c2332c1aaa8c225f4f5f5f66b732..72efcd0efb6fd60f52f5db4b153b28d41262856b 100644
--- a/chrome/browser/android/vr_shell/vr_shell_delegate.h
+++ b/chrome/browser/android/vr_shell/vr_shell_delegate.h
@@ -27,6 +27,8 @@ class VrShellDelegate : public device::GvrDelegateProvider {
VrShellDelegate(JNIEnv* env, jobject obj);
~VrShellDelegate() override;
+ static device::GvrDelegateProvider* CreateVrShellDelegate();
+
static VrShellDelegate* GetNativeVrShellDelegate(JNIEnv* env,
jobject jdelegate);
@@ -44,6 +46,7 @@ class VrShellDelegate : public device::GvrDelegateProvider {
jdouble interval_seconds);
void OnPause(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
void OnResume(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
+ void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
void ShowTab(int id);
device::GvrDeviceProvider* device_provider() { return device_provider_; }

Powered by Google App Engine
This is Rietveld 408576698