| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * This class implements the functionality that is specific to application | 7 * This class implements the functionality that is specific to application |
| 8 * remoting ("AppRemoting" or AR). | 8 * remoting ("AppRemoting" or AR). |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 /** | 32 /** |
| 33 * @return {string} Application product name to be used in UI. | 33 * @return {string} Application product name to be used in UI. |
| 34 * @override {remoting.ApplicationInterface} | 34 * @override {remoting.ApplicationInterface} |
| 35 */ | 35 */ |
| 36 remoting.AppRemoting.prototype.getApplicationName = function() { | 36 remoting.AppRemoting.prototype.getApplicationName = function() { |
| 37 var manifest = chrome.runtime.getManifest(); | 37 var manifest = chrome.runtime.getManifest(); |
| 38 return manifest.name; | 38 return manifest.name; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 remoting.AppRemoting.prototype.getActivity = function() { |
| 42 return this.activity_; |
| 43 }; |
| 44 |
| 41 /** | 45 /** |
| 42 * @param {!remoting.Error} error The failure reason. | 46 * @param {!remoting.Error} error The failure reason. |
| 43 * @override {remoting.ApplicationInterface} | 47 * @override {remoting.ApplicationInterface} |
| 44 */ | 48 */ |
| 45 remoting.AppRemoting.prototype.signInFailed_ = function(error) { | 49 remoting.AppRemoting.prototype.signInFailed_ = function(error) { |
| 46 remoting.MessageWindow.showErrorMessage( | 50 remoting.MessageWindow.showErrorMessage( |
| 47 chrome.i18n.getMessage(/*i18n-content*/'CONNECTION_FAILED'), | 51 chrome.i18n.getMessage(/*i18n-content*/'CONNECTION_FAILED'), |
| 48 chrome.i18n.getMessage(error.getTag())); | 52 chrome.i18n.getMessage(error.getTag())); |
| 49 }; | 53 }; |
| 50 | 54 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 65 this.activity_.start(); | 69 this.activity_.start(); |
| 66 }; | 70 }; |
| 67 | 71 |
| 68 /** | 72 /** |
| 69 * @override {remoting.ApplicationInterface} | 73 * @override {remoting.ApplicationInterface} |
| 70 */ | 74 */ |
| 71 remoting.AppRemoting.prototype.exitApplication_ = function() { | 75 remoting.AppRemoting.prototype.exitApplication_ = function() { |
| 72 this.activity_.dispose(); | 76 this.activity_.dispose(); |
| 73 this.closeMainWindow_(); | 77 this.closeMainWindow_(); |
| 74 }; | 78 }; |
| OLD | NEW |