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

Unified Diff: chrome/browser/android/vr_shell/ui_interface.cc

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
« no previous file with comments | « chrome/browser/android/vr_shell/ui_interface.h ('k') | chrome/browser/android/vr_shell/vr_shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/ui_interface.cc
diff --git a/chrome/browser/android/vr_shell/ui_interface.cc b/chrome/browser/android/vr_shell/ui_interface.cc
index 59e5c459ce5df7b285a333b072590aad36067d1f..6d021b5bf2f876a48614d679880901cc6fa95b7b 100644
--- a/chrome/browser/android/vr_shell/ui_interface.cc
+++ b/chrome/browser/android/vr_shell/ui_interface.cc
@@ -53,6 +53,11 @@ void UiInterface::SetLoading(bool loading) {
FlushUpdates();
}
+void UiInterface::SetLoadProgress(double progress) {
+ updates_.SetDouble("loadProgress", progress);
+ FlushUpdates();
+}
+
void UiInterface::SetURL(const GURL& url) {
std::unique_ptr<base::DictionaryValue> details(new base::DictionaryValue);
details->SetString("host", url.host());
« no previous file with comments | « chrome/browser/android/vr_shell/ui_interface.h ('k') | chrome/browser/android/vr_shell/vr_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698