| 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 * Interface abstracting the Application functionality. | 7 * Interface abstracting the Application functionality. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 /** | 129 /** |
| 130 * @return {remoting.SessionConnector} A session connector, creating a new one | 130 * @return {remoting.SessionConnector} A session connector, creating a new one |
| 131 * if necessary. | 131 * if necessary. |
| 132 */ | 132 */ |
| 133 remoting.Application.prototype.getSessionConnector = function() { | 133 remoting.Application.prototype.getSessionConnector = function() { |
| 134 // TODO(garykac): Check if this can be initialized in the ctor. | 134 // TODO(garykac): Check if this can be initialized in the ctor. |
| 135 if (!this.session_connector_) { | 135 if (!this.session_connector_) { |
| 136 this.session_connector_ = remoting.SessionConnector.factory.createConnector( | 136 this.session_connector_ = remoting.SessionConnector.factory.createConnector( |
| 137 document.getElementById('video-container'), | 137 document.getElementById('client-container'), |
| 138 this.onConnected.bind(this), | 138 this.onConnected.bind(this), |
| 139 this.onError.bind(this), | 139 this.onError.bind(this), |
| 140 this.onExtensionMessage.bind(this), | 140 this.onExtensionMessage.bind(this), |
| 141 this.onConnectionFailed.bind(this), | 141 this.onConnectionFailed.bind(this), |
| 142 this.delegate_.getRequiredCapabilities(), | 142 this.delegate_.getRequiredCapabilities(), |
| 143 this.delegate_.getDefaultRemapKeys()); | 143 this.delegate_.getDefaultRemapKeys()); |
| 144 } | 144 } |
| 145 return this.session_connector_; | 145 return this.session_connector_; |
| 146 }; | 146 }; |
| 147 | 147 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 * Called when an error needs to be displayed to the user. | 219 * Called when an error needs to be displayed to the user. |
| 220 * | 220 * |
| 221 * @param {remoting.Error} errorTag The error to be localized and displayed. | 221 * @param {remoting.Error} errorTag The error to be localized and displayed. |
| 222 * @return {void} Nothing. | 222 * @return {void} Nothing. |
| 223 */ | 223 */ |
| 224 remoting.Application.Delegate.prototype.handleError = function(errorTag) {}; | 224 remoting.Application.Delegate.prototype.handleError = function(errorTag) {}; |
| 225 | 225 |
| 226 | 226 |
| 227 /** @type {remoting.Application} */ | 227 /** @type {remoting.Application} */ |
| 228 remoting.app = null; | 228 remoting.app = null; |
| OLD | NEW |