| 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). |
| 11 // // This is compared with the javascript API version to verify that they are |
| 12 // // compatible. |
| 13 // readonly attribute unsigned short apiVersion; |
| 14 // |
| 15 // // The oldest API version that we support. |
| 16 // // This will differ from |apiVersion| if we decide to maintain backward |
| 17 // // compatibility with older API versions. |
| 18 // readonly attribute unsigned short apiMinVersion; |
| 19 // |
| 10 // // Dimension of the desktop area. | 20 // // Dimension of the desktop area. |
| 11 // readonly attribute int desktopWidth; | 21 // readonly attribute int desktopWidth; |
| 12 // readonly attribute int desktopHeight; | 22 // readonly attribute int desktopHeight; |
| 13 // | 23 // |
| 14 // // Connection status. | 24 // // Connection status. |
| 15 // readonly attribute unsigned short status; | 25 // readonly attribute unsigned short status; |
| 16 // | 26 // |
| 17 // // Statistics. | 27 // // Statistics. |
| 18 // // Video Bandwidth in bytes per second. | 28 // // Video Bandwidth in bytes per second. |
| 19 // readonly attribute float videoBandwidth; | 29 // readonly attribute float videoBandwidth; |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 PropertyNameMap property_names_; | 220 PropertyNameMap property_names_; |
| 211 std::vector<PropertyDescriptor> properties_; | 221 std::vector<PropertyDescriptor> properties_; |
| 212 scoped_refptr<PepperXmppProxy> xmpp_proxy_; | 222 scoped_refptr<PepperXmppProxy> xmpp_proxy_; |
| 213 | 223 |
| 214 ChromotingInstance* instance_; | 224 ChromotingInstance* instance_; |
| 215 }; | 225 }; |
| 216 | 226 |
| 217 } // namespace remoting | 227 } // namespace remoting |
| 218 | 228 |
| 219 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_ | 229 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_ |
| OLD | NEW |