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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java

Issue 2851313002: Adds end-to-end tests for VrShell navigation transitions. (Closed)
Patch Set: Rebased on ToT, incorporated review feedback 3 Created 3 years, 8 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/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java
index d5ba53c31bb0f652f54049ffbd53fe1d3d23bd2d..bed41007d1e0dd50c8b25d7dc39c7591f684b84b 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java
@@ -467,6 +467,11 @@ public class VrShellImpl
}
@Override
+ public boolean getWebVrModeEnabled() {
+ return nativeGetWebVrMode(mNativeVrShell);
+ }
+
+ @Override
public FrameLayout getContainer() {
return this;
}
@@ -599,6 +604,7 @@ public class VrShellImpl
private native void nativeContentPhysicalBoundsChanged(long nativeVrShell, int width,
int height, float dpr);
private native void nativeSetWebVrMode(long nativeVrShell, boolean enabled);
+ private native boolean nativeGetWebVrMode(long nativeVrShell);
private native void nativeOnTabListCreated(long nativeVrShell, Tab[] mainTabs,
Tab[] incognitoTabs);
private native void nativeOnTabUpdated(long nativeVrShell, boolean incognito, int id,

Powered by Google App Engine
This is Rietveld 408576698