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 }; | 16 }; |
16 | 17 |
17 interface PPB_Testing_Dev { | 18 interface PPB_Testing_Dev { |
18 /** | 19 /** |
19 * Reads the bitmap data out of the backing store for the given | 20 * Reads the bitmap data out of the backing store for the given |
20 * DeviceContext2D and into the given image. If the data was successfully | 21 * DeviceContext2D and into the given image. If the data was successfully |
21 * read, it will return PP_TRUE. | 22 * read, it will return PP_TRUE. |
22 * | 23 * |
23 * This function should not generally be necessary for normal plugin | 24 * This function should not generally be necessary for normal plugin |
24 * operation. If you want to update portions of a device, the expectation is | 25 * operation. If you want to update portions of a device, the expectation is |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 * maintain certain invariants, such as always having a "mouse enter" event | 96 * maintain certain invariants, such as always having a "mouse enter" event |
96 * before any other mouse event. Furthermore, the event the plugin receives | 97 * before any other mouse event. Furthermore, the event the plugin receives |
97 * after sending a simulated event will be slightly different from the | 98 * after sending a simulated event will be slightly different from the |
98 * original event. The browser may change the timestamp, add modifiers, and | 99 * original event. The browser may change the timestamp, add modifiers, and |
99 * slightly alter the mouse position, due to coordinate transforms it | 100 * slightly alter the mouse position, due to coordinate transforms it |
100 * performs. | 101 * performs. |
101 */ | 102 */ |
102 [version=0.8] | 103 [version=0.8] |
103 void SimulateInputEvent([in] PP_Instance instance, | 104 void SimulateInputEvent([in] PP_Instance instance, |
104 [in] PP_Resource input_event); | 105 [in] PP_Resource input_event); |
| 106 |
| 107 /** |
| 108 * Returns the URL for the document. This is a safe way to retrieve |
| 109 * window.location.href. |
| 110 * 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 * to specify that no component information is necessary. |
| 113 */ |
| 114 [version=0.9] |
| 115 PP_Var GetDocumentURL([in] PP_Instance instance, |
| 116 [out] PP_URLComponents_Dev components); |
105 }; | 117 }; |
OLD | NEW |