| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // // of type void(string request_xml). | 61 // // of type void(string request_xml). |
| 62 // attribute Function sendIq; | 62 // attribute Function sendIq; |
| 63 // | 63 // |
| 64 // // Dimension of the desktop area. | 64 // // Dimension of the desktop area. |
| 65 // readonly attribute int desktopWidth; | 65 // readonly attribute int desktopWidth; |
| 66 // readonly attribute int desktopHeight; | 66 // readonly attribute int desktopHeight; |
| 67 // | 67 // |
| 68 // // Statistics. | 68 // // Statistics. |
| 69 // // Video Bandwidth in bytes per second. | 69 // // Video Bandwidth in bytes per second. |
| 70 // readonly attribute float videoBandwidth; | 70 // readonly attribute float videoBandwidth; |
| 71 // // Video frames received per second. |
| 72 // readonly attribute float videoFramerate; |
| 71 // // Latency for capturing in milliseconds. | 73 // // Latency for capturing in milliseconds. |
| 72 // readonly attribute int videoCaptureLatency; | 74 // readonly attribute int videoCaptureLatency; |
| 73 // // Latency for video encoding in milliseconds. | 75 // // Latency for video encoding in milliseconds. |
| 74 // readonly attribute int videoEncodeLatency; | 76 // readonly attribute int videoEncodeLatency; |
| 75 // // Latency for video decoding in milliseconds. | 77 // // Latency for video decoding in milliseconds. |
| 76 // readonly attribute int videoDecodeLatency; | 78 // readonly attribute int videoDecodeLatency; |
| 77 // // Latency for rendering in milliseconds. | 79 // // Latency for rendering in milliseconds. |
| 78 // readonly attribute int videoRenderLatency; | 80 // readonly attribute int videoRenderLatency; |
| 79 // // Latency between an event is sent and a corresponding video packet is | 81 // // Latency between an event is sent and a corresponding video packet is |
| 80 // // received. | 82 // // received. |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 251 |
| 250 scoped_refptr<base::MessageLoopProxy> plugin_message_loop_; | 252 scoped_refptr<base::MessageLoopProxy> plugin_message_loop_; |
| 251 ScopedRunnableMethodFactory<ChromotingScriptableObject> task_factory_; | 253 ScopedRunnableMethodFactory<ChromotingScriptableObject> task_factory_; |
| 252 | 254 |
| 253 DISALLOW_COPY_AND_ASSIGN(ChromotingScriptableObject); | 255 DISALLOW_COPY_AND_ASSIGN(ChromotingScriptableObject); |
| 254 }; | 256 }; |
| 255 | 257 |
| 256 } // namespace remoting | 258 } // namespace remoting |
| 257 | 259 |
| 258 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_ | 260 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_ |
| OLD | NEW |