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

Unified Diff: remoting/webapp/app_remoting/js/loading_window.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/loading_window.js
diff --git a/remoting/webapp/app_remoting/js/loading_window.js b/remoting/webapp/app_remoting/js/loading_window.js
deleted file mode 100644
index fcb2eb681c802652a7c1f21715889feb85a639ad..0000000000000000000000000000000000000000
--- a/remoting/webapp/app_remoting/js/loading_window.js
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright 2014 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
- * Loading dialog for AppRemoting apps.
- */
-
-'use strict';
-
-/** @suppress {duplicate} */
-var remoting = remoting || {};
-
-/**
- * Namespace for loading window functions.
- * @type {Object}
- */
-remoting.LoadingWindow = function() {};
-
-/**
- * When the loading window times out, replace it with a generic
- * "Service Unavailable" message.
- * @private
- */
-remoting.LoadingWindow.onTimeout_ = function() {
- remoting.MessageWindow.showErrorMessage(
- remoting.app.getApplicationName(),
- chrome.i18n.getMessage(remoting.Error.Tag.SERVICE_UNAVAILABLE));
-};
-
-/**
- * Show the loading dialog and start a timer When the timer expires, an error
- * message will be displayed and the application will quit.
- */
-remoting.LoadingWindow.show = function() {
- if (remoting.loadingWindow_) {
- return;
- }
-
- // TODO(garykac): Choose better default timeout.
- // Timeout is currently 15min to handle when we need to spin up a new VM.
- var kConnectionTimeout = 15 * 60 * 1000;
-
- var options = /** @type {remoting.MessageWindowOptions} */ ({
- title: remoting.app.getApplicationName(),
- message: chrome.i18n.getMessage(/*i18n-content*/'FOOTER_CONNECTING'),
- buttonLabel: chrome.i18n.getMessage(/*i18n-content*/'CANCEL'),
- onResult: remoting.MessageWindow.quitApp,
- duration: kConnectionTimeout,
- onTimeout: remoting.LoadingWindow.onTimeout_,
- htmlFile: 'loading_window.html',
- frame: 'none',
- minimumWidth: 200
- });
- var transparencyWarning = '';
- if (remoting.platformIsMac()) {
- options.infoBox =
- chrome.i18n.getMessage(/*i18n-content*/'NO_TRANSPARENCY_WARNING');
- }
- remoting.loadingWindow_ = new remoting.MessageWindow(options);
-};
-
-/**
- * Close the loading window.
- */
-remoting.LoadingWindow.close = function() {
- if (remoting.loadingWindow_) {
- remoting.loadingWindow_.close();
- }
- remoting.loadingWindow_ = null;
-};
-
-/** @type {remoting.MessageWindow} */
-remoting.loadingWindow_ = null;
« no previous file with comments | « remoting/webapp/app_remoting/js/license_manager.js ('k') | remoting/webapp/app_remoting/js/submenu_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698