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

Side by Side Diff: remoting/webapp/event_handlers.js

Issue 12258030: Reload the web-app if an IT2Me connection fails. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 'use strict'; 5 'use strict';
6 6
7 /** @suppress {duplicate} */ 7 /** @suppress {duplicate} */
8 var remoting = remoting || {}; 8 var remoting = remoting || {};
9 9
10 function onLoad() { 10 function onLoad() {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 { event: 'click', id: 'send-ctrl-alt-del', 56 { event: 'click', id: 'send-ctrl-alt-del',
57 fn: remoting.sendCtrlAltDel }, 57 fn: remoting.sendCtrlAltDel },
58 { event: 'click', id: 'send-print-screen', 58 { event: 'click', id: 'send-print-screen',
59 fn: remoting.sendPrintScreen }, 59 fn: remoting.sendPrintScreen },
60 { event: 'click', id: 'auth-button', fn: doAuthRedirect }, 60 { event: 'click', id: 'auth-button', fn: doAuthRedirect },
61 { event: 'click', id: 'share-button', fn: remoting.tryShare }, 61 { event: 'click', id: 'share-button', fn: remoting.tryShare },
62 { event: 'click', id: 'access-mode-button', fn: goEnterAccessCode }, 62 { event: 'click', id: 'access-mode-button', fn: goEnterAccessCode },
63 { event: 'click', id: 'cancel-share-button', fn: remoting.cancelShare }, 63 { event: 'click', id: 'cancel-share-button', fn: remoting.cancelShare },
64 { event: 'click', id: 'stop-sharing-button', fn: remoting.cancelShare }, 64 { event: 'click', id: 'stop-sharing-button', fn: remoting.cancelShare },
65 { event: 'click', id: 'host-finished-button', fn: restartWebapp }, 65 { event: 'click', id: 'host-finished-button', fn: restartWebapp },
66 { event: 'click', id: 'client-finished-it2me-button', 66 { event: 'click', id: 'client-finished-it2me-button', fn: restartWebapp },
67 fn: goFinishedIT2Me },
68 { event: 'click', id: 'client-finished-me2me-button', fn: restartWebapp }, 67 { event: 'click', id: 'client-finished-me2me-button', fn: restartWebapp },
69 { event: 'click', id: 'cancel-pin-entry-button', fn: restartWebapp }, 68 { event: 'click', id: 'cancel-pin-entry-button', fn: restartWebapp },
70 { event: 'click', id: 'client-reconnect-button', fn: reload }, 69 { event: 'click', id: 'client-reconnect-button', fn: reload },
71 { event: 'click', id: 'cancel-access-code-button', fn: cancelAccessCode}, 70 { event: 'click', id: 'cancel-access-code-button', fn: cancelAccessCode},
72 { event: 'click', id: 'cancel-connect-button', fn: restartWebapp }, 71 { event: 'click', id: 'cancel-connect-button', fn: restartWebapp },
73 { event: 'click', id: 'toolbar-stub', 72 { event: 'click', id: 'toolbar-stub',
74 fn: function() { remoting.toolbar.toggle(); } }, 73 fn: function() { remoting.toolbar.toggle(); } },
75 { event: 'click', id: 'start-daemon', 74 { event: 'click', id: 'start-daemon',
76 fn: function() { remoting.hostSetupDialog.showForStart(); } }, 75 fn: function() { remoting.hostSetupDialog.showForStart(); } },
77 { event: 'click', id: 'change-daemon-pin', 76 { event: 'click', id: 'change-daemon-pin',
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 113 }
115 114
116 function onBeforeUnload() { 115 function onBeforeUnload() {
117 return remoting.promptClose(); 116 return remoting.promptClose();
118 } 117 }
119 118
120 window.addEventListener('load', onLoad, false); 119 window.addEventListener('load', onLoad, false);
121 window.addEventListener('beforeunload', onBeforeUnload, false); 120 window.addEventListener('beforeunload', onBeforeUnload, false);
122 window.addEventListener('resize', remoting.onResize, false); 121 window.addEventListener('resize', remoting.onResize, false);
123 window.addEventListener('unload', remoting.disconnect, false); 122 window.addEventListener('unload', remoting.disconnect, false);
OLDNEW
« remoting/webapp/client_screen.js ('K') | « remoting/webapp/client_screen.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698