| 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 | 5 |
| 6 /** | 6 /** |
| 7 * This file contains interface functions used for unit testing. Do not use in | 7 * This file contains interface functions used for unit testing. Do not use in |
| 8 * production code. They are not guaranteed to be available in normal plugin | 8 * production code. They are not guaranteed to be available in normal plugin |
| 9 * environments so you should not depend on them. | 9 * environments so you should not depend on them. |
| 10 */ | 10 */ |
| 11 | 11 |
| 12 label Chrome { | 12 label Chrome { |
| 13 M14 = 0.7, | 13 M14 = 0.7, |
| 14 M15 = 0.8, | 14 M15 = 0.8, |
| 15 M17 = 0.9 | 15 M17 = 0.9, |
| 16 M18 = 0.91 |
| 16 }; | 17 }; |
| 17 | 18 |
| 18 interface PPB_Testing_Dev { | 19 interface PPB_Testing_Dev { |
| 19 /** | 20 /** |
| 20 * Reads the bitmap data out of the backing store for the given | 21 * Reads the bitmap data out of the backing store for the given |
| 21 * DeviceContext2D and into the given image. If the data was successfully | 22 * DeviceContext2D and into the given image. If the data was successfully |
| 22 * read, it will return PP_TRUE. | 23 * read, it will return PP_TRUE. |
| 23 * | 24 * |
| 24 * This function should not generally be necessary for normal plugin | 25 * This function should not generally be necessary for normal plugin |
| 25 * operation. If you want to update portions of a device, the expectation is | 26 * operation. If you want to update portions of a device, the expectation is |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 /** | 108 /** |
| 108 * Returns the URL for the document. This is a safe way to retrieve | 109 * Returns the URL for the document. This is a safe way to retrieve |
| 109 * window.location.href. | 110 * window.location.href. |
| 110 * If the canonicalized URL is valid, the method will parse the URL | 111 * If the canonicalized URL is valid, the method will parse the URL |
| 111 * and fill in the components structure. This pointer may be NULL | 112 * and fill in the components structure. This pointer may be NULL |
| 112 * to specify that no component information is necessary. | 113 * to specify that no component information is necessary. |
| 113 */ | 114 */ |
| 114 [version=0.9] | 115 [version=0.9] |
| 115 PP_Var GetDocumentURL([in] PP_Instance instance, | 116 PP_Var GetDocumentURL([in] PP_Instance instance, |
| 116 [out] PP_URLComponents_Dev components); | 117 [out] PP_URLComponents_Dev components); |
| 118 |
| 119 /** |
| 120 * Fetches up to |array_size| active PP_Vars in the tracker. Returns the |
| 121 * number of vars in the tracker. The active vars are written to |live_vars| |
| 122 * contiguously starting at index 0. The vars are not in any particular order. |
| 123 * If the number of live vars is greater than |array_size|, then an arbitrary |
| 124 * subset of |array_size| vars is written to |live_vars|. The reference count |
| 125 * of the returned PP_Vars will *not* be affected by this call. |
| 126 */ |
| 127 [version=0.91] |
| 128 uint32_t GetLiveVars([size_as=array_size] PP_Var[] live_vars, |
| 129 [in] uint32_t array_size); |
| 117 }; | 130 }; |
| OLD | NEW |