| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This implements the JavaScript class entrypoint for the plugin instance. | 5 // This implements the JavaScript class entrypoint for the plugin instance. |
| 6 // The Javascript API is defined as follows. | 6 // The Javascript API is defined as follows. |
| 7 // | 7 // |
| 8 // interface ChromotingScriptableObject { | 8 // interface ChromotingScriptableObject { |
| 9 // | 9 // |
| 10 // // Chromoting session API version (for this plugin). | 10 // // Chromoting session API version (for this plugin). |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // // Latency for rendering in milliseconds. | 78 // // Latency for rendering in milliseconds. |
| 79 // readonly attribute int videoRenderLatency; | 79 // readonly attribute int videoRenderLatency; |
| 80 // // Latency between an event is sent and a corresponding video packet is | 80 // // Latency between an event is sent and a corresponding video packet is |
| 81 // // received. | 81 // // received. |
| 82 // readonly attribute int roundTripLatency; | 82 // readonly attribute int roundTripLatency; |
| 83 // | 83 // |
| 84 // // Methods for establishing a Chromoting connection. | 84 // // Methods for establishing a Chromoting connection. |
| 85 // // | 85 // // |
| 86 // // When using the sandboxed versions, sendIq must be set and responses to | 86 // // When using the sandboxed versions, sendIq must be set and responses to |
| 87 // // calls on sendIq must be piped back into onIq(). | 87 // // calls on sendIq must be piped back into onIq(). |
| 88 // void connect(string host_jid, string client_jid, | 88 // // |
| 89 // // Note that auth_token_with_service should be specified as |
| 90 // // "auth_service:auth_token". For example, "oauth2:5/aBd123". |
| 91 // void connect(string host_jid, string auth_token_with_service, |
| 89 // optional string access_code); | 92 // optional string access_code); |
| 90 // // Non-sandboxed version used for debugging/testing. | 93 // // Non-sandboxed version used for debugging/testing. |
| 91 // // TODO(garykac): Remove this version once we no longer need it. | 94 // // TODO(garykac): Remove this version once we no longer need it. |
| 92 // void connectUnsandboxed(string host_jid, string username, | 95 // void connectUnsandboxed(string host_jid, string username, |
| 93 // string xmpp_token, optional string access_code); | 96 // string xmpp_token, optional string access_code); |
| 94 // | 97 // |
| 95 // // Terminating a Chromoting connection. | 98 // // Terminating a Chromoting connection. |
| 96 // void disconnect(); | 99 // void disconnect(); |
| 97 // | 100 // |
| 98 // // Method for submitting login information. | 101 // // Method for submitting login information. |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 PropertyNameMap property_names_; | 230 PropertyNameMap property_names_; |
| 228 std::vector<PropertyDescriptor> properties_; | 231 std::vector<PropertyDescriptor> properties_; |
| 229 scoped_refptr<PepperXmppProxy> xmpp_proxy_; | 232 scoped_refptr<PepperXmppProxy> xmpp_proxy_; |
| 230 | 233 |
| 231 ChromotingInstance* instance_; | 234 ChromotingInstance* instance_; |
| 232 }; | 235 }; |
| 233 | 236 |
| 234 } // namespace remoting | 237 } // namespace remoting |
| 235 | 238 |
| 236 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_ | 239 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_ |
| OLD | NEW |