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

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

Issue 2620383007: Tie VR omnibox to page load progress through TabObserver. (Closed)
Patch Set: Rebase to ToT. Created 3 years, 11 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/VrShellDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
index 374e6c7804555b8e54f64e3df92f01eb1ae75cc5..7a36bd41bc71ee8959c4815b44dff57685307aaf 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
@@ -135,6 +135,12 @@ public class VrShellDelegate {
// TODO(mthiesse): Update the native WebContents pointer and compositor.
shutdownVR(false, mVrSupportLevel == VR_DAYDREAM /* showTransition */);
}
+
+ @Override
+ public void onLoadProgressChanged(Tab tab, int progress) {
+ if (!mInVr) return;
+ mVrShell.onLoadProgressChanged((double) progress / 100.0);
+ }
};
}

Powered by Google App Engine
This is Rietveld 408576698