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

Side by Side Diff: remoting/webapp/base/js/application.js

Issue 1078563002: [Webapp Refactor] Clean up remoting.Clipboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
OLDNEW
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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 * @param {remoting.ConnectionInfo} connectionInfo 152 * @param {remoting.ConnectionInfo} connectionInfo
153 * @return {void} Nothing. 153 * @return {void} Nothing.
154 * @protected 154 * @protected
155 */ 155 */
156 remoting.Application.prototype.initSession_ = function(connectionInfo) { 156 remoting.Application.prototype.initSession_ = function(connectionInfo) {
157 this.sessionConnectedHooks_ = new base.Disposables( 157 this.sessionConnectedHooks_ = new base.Disposables(
158 new base.EventHook(connectionInfo.session(), 'stateChanged', 158 new base.EventHook(connectionInfo.session(), 'stateChanged',
159 this.onSessionFinished_.bind(this)), 159 this.onSessionFinished_.bind(this)),
160 new base.RepeatingTimer(this.updateStatistics_.bind(this), 1000) 160 new base.RepeatingTimer(this.updateStatistics_.bind(this), 1000)
161 ); 161 );
162 remoting.clipboard.startSession();
kelvinp 2015/04/09 00:28:26 The clipboard is now created in remoting.Connected
163 }; 162 };
164 163
165 /** 164 /**
166 * Callback function called when the state of the client plugin changes. The 165 * Callback function called when the state of the client plugin changes. The
167 * current and previous states are available via the |state| member variable. 166 * current and previous states are available via the |state| member variable.
168 * 167 *
169 * @param {remoting.ClientSession.StateEvent=} state 168 * @param {remoting.ClientSession.StateEvent=} state
170 * @private 169 * @private
171 */ 170 */
172 remoting.Application.prototype.onSessionFinished_ = function(state) { 171 remoting.Application.prototype.onSessionFinished_ = function(state) {
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 /** 340 /**
342 * Called when an error needs to be displayed to the user. 341 * Called when an error needs to be displayed to the user.
343 * 342 *
344 * @param {!remoting.Error} errorTag The error to be localized and displayed. 343 * @param {!remoting.Error} errorTag The error to be localized and displayed.
345 */ 344 */
346 remoting.ApplicationInterface.prototype.onError_ = function(errorTag) {}; 345 remoting.ApplicationInterface.prototype.onError_ = function(errorTag) {};
347 346
348 347
349 /** @type {remoting.Application} */ 348 /** @type {remoting.Application} */
350 remoting.app = null; 349 remoting.app = null;
OLDNEW
« no previous file with comments | « no previous file | remoting/webapp/crd/js/client_plugin.js » ('j') | remoting/webapp/crd/js/client_plugin_impl.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698