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

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

Issue 803653004: Update Chromoting to use /third_party/closure_compiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: remoting/webapp/crd/js/remoting.js
diff --git a/remoting/webapp/crd/js/remoting.js b/remoting/webapp/crd/js/remoting.js
index d08287e17253006c8fdaf8eb0b081cd7bc437d88..f80d9f064944d4708090450e080084fbdf45b037 100644
--- a/remoting/webapp/crd/js/remoting.js
+++ b/remoting/webapp/crd/js/remoting.js
@@ -39,8 +39,8 @@ remoting.initGlobalObjects = function() {
remoting.formatIq = new remoting.FormatIq();
remoting.clipboard = new remoting.Clipboard();
- var sandbox = /** @type {HTMLIFrameElement} */
- document.getElementById('wcs-sandbox');
+ var sandbox =
+ /** @type {HTMLIFrameElement} */ (document.getElementById('wcs-sandbox'));
remoting.wcsSandbox = new remoting.WcsSandboxContainer(sandbox.contentWindow);
// The plugin's onFocus handler sends a paste command to |window|, because
@@ -126,11 +126,10 @@ remoting.signOut = function() {
/**
* Callback function called when the browser window gets a paste operation.
*
- * @param {Event} eventUncast
+ * @param {Event} event
* @return {void} Nothing.
*/
-function pluginGotPaste_(eventUncast) {
- var event = /** @type {remoting.ClipboardEvent} */ eventUncast;
+function pluginGotPaste_(event) {
if (event && event.clipboardData) {
remoting.clipboard.toHost(event.clipboardData);
}
@@ -139,11 +138,10 @@ function pluginGotPaste_(eventUncast) {
/**
* Callback function called when the browser window gets a copy operation.
*
- * @param {Event} eventUncast
+ * @param {Event} event
* @return {void} Nothing.
*/
-function pluginGotCopy_(eventUncast) {
- var event = /** @type {remoting.ClipboardEvent} */ eventUncast;
+function pluginGotCopy_(event) {
if (event && event.clipboardData) {
if (remoting.clipboard.toOs(event.clipboardData)) {
// The default action may overwrite items that we added to clipboardData.

Powered by Google App Engine
This is Rietveld 408576698