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 // // Dimension of the desktop area. | 10 // // Dimension of the desktop area. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
69 // // | 69 // // |
70 // // This function will be called multiple times until login was successful | 70 // // This function will be called multiple times until login was successful |
71 // // or the maximum number of login attempts has been reached. In the | 71 // // or the maximum number of login attempts has been reached. In the |
72 // // later case |connection_status| is changed to STATUS_FAILED. | 72 // // later case |connection_status| is changed to STATUS_FAILED. |
73 // attribute Function loginChallenge; | 73 // attribute Function loginChallenge; |
74 // | 74 // |
75 // // Methods for establishing a Chromoting connection. | 75 // // Methods for establishing a Chromoting connection. |
76 // // | 76 // // |
77 // // When using the sandboxed versions, sendIq must be set and responses to | 77 // // When using the sandboxed versions, sendIq must be set and responses to |
78 // // calls on sendIq must be piped back into onIq(). | 78 // // calls on sendIq must be piped back into onIq(). |
79 // void connect(string host_jid, string client_jid, | 79 // // |
80 // // Note that auth_token_with_service should be specified as | |
81 // // "serivce:token". For example, "oauth2:5/aBd123". | |
Wez
2011/05/25 03:57:46
Typo: serivce.
awong
2011/05/25 16:56:56
Done.
| |
82 // void connect(string host_jid, string auth_token_with_service, | |
80 // optional string access_code); | 83 // optional string access_code); |
81 // // Non-sandboxed version used for debugging/testing. | 84 // // Non-sandboxed version used for debugging/testing. |
82 // // TODO(garykac): Remove this version once we no longer need it. | 85 // // TODO(garykac): Remove this version once we no longer need it. |
83 // void connectUnsandboxed(string host_jid, string username, | 86 // void connectUnsandboxed(string host_jid, string username, |
84 // string xmpp_token, optional string access_code); | 87 // string xmpp_token, optional string access_code); |
85 // | 88 // |
86 // // Terminating a Chromoting connection. | 89 // // Terminating a Chromoting connection. |
87 // void disconnect(); | 90 // void disconnect(); |
88 // | 91 // |
89 // // Method for submitting login information. | 92 // // Method for submitting login information. |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
214 PropertyNameMap property_names_; | 217 PropertyNameMap property_names_; |
215 std::vector<PropertyDescriptor> properties_; | 218 std::vector<PropertyDescriptor> properties_; |
216 scoped_refptr<PepperXmppProxy> xmpp_proxy_; | 219 scoped_refptr<PepperXmppProxy> xmpp_proxy_; |
217 | 220 |
218 ChromotingInstance* instance_; | 221 ChromotingInstance* instance_; |
219 }; | 222 }; |
220 | 223 |
221 } // namespace remoting | 224 } // namespace remoting |
222 | 225 |
223 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_ | 226 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_ |
OLD | NEW |