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

Unified Diff: remoting/webapp/crd/js/host_screen.js

Issue 2453193004: CRD Webapp changes to support Confirmation Dialog It2Me state (Closed)
Patch Set: Addressing feedback Created 4 years, 1 month 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: remoting/webapp/crd/js/host_screen.js
diff --git a/remoting/webapp/crd/js/host_screen.js b/remoting/webapp/crd/js/host_screen.js
index c4f2ac193792a1e7a862bb73627e9bf64e0b1d39..3cfaa267e117a453a7dc2d38edc58e9efb310ad5 100644
--- a/remoting/webapp/crd/js/host_screen.js
+++ b/remoting/webapp/crd/js/host_screen.js
@@ -170,6 +170,11 @@ function onHostStateChanged_(state) {
remoting.cancelShare();
}
+ } else if (state == remoting.HostSession.State.CONNECTING) {
+ console.log('Host state: CONNECTING');
+ remoting.setMode(remoting.AppMode.HOST_WAITING_FOR_ACCEPT);
+ disableTimeoutCountdown_();
+
} else if (state == remoting.HostSession.State.CONNECTED) {
console.log('Host state: CONNECTED');
var element = document.getElementById('host-shared-message');

Powered by Google App Engine
This is Rietveld 408576698