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

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

Issue 779613003: [Chromoting] Create core Application interface for CRD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments. Created 6 years 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
Jamie 2014/12/06 01:57:59 This file is no longer needed.
garykac 2014/12/06 02:15:49 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6 * @fileoverview
7 * Interface abstracting the ApplicationDelegate functionality.
8 *
9 * A class implementing the ApplicationDelegate interface contains the
10 * functionality that is specific to that particular application, whereas
11 * shared code lives in the Application class.
12 */
13
14 'use strict';
15
16 /** @suppress {duplicate} */
17 var remoting = remoting || {};
18
19 /**
20 * @interface
21 */
22 remoting.ApplicationDelegate = function() {};
23
24 /**
25 * Initialize the application and register all event handlers. After this
26 * is called, the app is running and waiting for user events.
27 *
28 * @return {void} Nothing.
29 */
30 remoting.ApplicationDelegate.prototype.init = function() {};
31
32 /**
33 * Called when a new session has been connected.
34 *
35 * @param {remoting.ClientSession} clientSession
36 * @return {void} Nothing.
37 */
38 remoting.ApplicationDelegate.prototype.onConnected = function(clientSession) {};
39
40 /**
41 * Called when the current session has been disconnected.
42 *
43 * @return {void} Nothing.
44 */
45 remoting.ApplicationDelegate.prototype.onDisconnected = function() {};
46
47 /**
48 * Called when the current session has reached the point where the host has
49 * started streaming video frames to the client.
50 *
51 * @return {void} Nothing.
52 */
53 remoting.ApplicationDelegate.prototype.onVideoStreamingStarted = function() {};
54
55 /**
56 * Called when an extension message needs to be handled.
57 *
58 * @param {string} type The type of the extension message.
59 * @param {string} data The payload of the extension message.
60 * @return {boolean} Return true if the extension message was recognized.
61 */
62 remoting.ApplicationDelegate.prototype.onExtensionMessage = function(
63 type, data) {};
64
65 /**
66 * Called when an error needs to be displayed to the user.
67 *
68 * @param {remoting.Error} errorTag The error to be localized and displayed.
69 * @return {void} Nothing.
70 */
71 remoting.ApplicationDelegate.prototype.onError = function(errorTag) {};
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698