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

Unified Diff: remoting/webapp/app_remoting/js/cloud_print_dialog/cloud_print_dialog_injected.js

Issue 1816653002: Remove app_remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/app_remoting/js/cloud_print_dialog/cloud_print_dialog_injected.js
diff --git a/remoting/webapp/app_remoting/js/cloud_print_dialog/cloud_print_dialog_injected.js b/remoting/webapp/app_remoting/js/cloud_print_dialog/cloud_print_dialog_injected.js
deleted file mode 100644
index 378456c4be5cbf46a6af83900709c457841f8d1a..0000000000000000000000000000000000000000
--- a/remoting/webapp/app_remoting/js/cloud_print_dialog/cloud_print_dialog_injected.js
+++ /dev/null
@@ -1,58 +0,0 @@
-/* Copyright 2015 The Chromium Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/**
- * @fileoverview
- * The script file to be injected into the clould print dialog
- * (https://www.google.com/cloudprint/dialog.html).
- * Also see cloud_print_dialog_container.js
- */
-
-(function () {
-
-'use strict';
-
-var hostWindow = null;
-
-/**
- * Message handler responsible for setting up the communication channel with
- * the hosting window and redirecting to it the relevant cp-dialog messages.
- */
-function onMessage(event) {
- var data = event.data;
-
- if (typeof data != 'string') {
- console.warn('Unknown message of type:' + typeof data);
- return;
- }
-
- switch (data) {
- case 'app-remoting-handshake':
- if (!hostWindow) {
- hostWindow = event.source;
- console.log('Handshake received in cloud print dialog.');
- } else {
- console.warn('Received duplicate handshake message.');
- }
- break;
-
- case 'cp-dialog-on-init::':
- case 'cp-dialog-on-close::':
- if (hostWindow) {
- var message = {'source': 'cloud-print-dialog', 'command': data};
- hostWindow.postMessage(message, '*');
- } else {
- console.warn('Message received before handshake: ' + data);
- }
- break;
-
- default:
- console.warn('Unknown message: ' + data);
- }
-}
-
-window.addEventListener('message', onMessage, false);
-
-}) ();
« no previous file with comments | « remoting/webapp/app_remoting/js/ar_background.js ('k') | remoting/webapp/app_remoting/js/cloud_print_dialog_container.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698