Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 defines the private <code>PPB_Flash_Clipboard</code> API used by | 7 * This file defines the private <code>PPB_Flash_Clipboard</code> API used by |
| 8 * Pepper Flash for reading and writing to the clipboard. | 8 * Pepper Flash for reading and writing to the clipboard. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 label Chrome { | 11 label Chrome { |
| 12 M19 = 4.0, | 12 M19 = 4.0, |
| 13 M24 = 5.0 | 13 M24 = 5.0, |
| 14 M34 = 5.1 | |
| 14 }; | 15 }; |
| 15 | 16 |
| 16 /** | 17 /** |
| 17 * This enumeration contains the types of clipboards that can be accessed. | 18 * This enumeration contains the types of clipboards that can be accessed. |
| 18 * These types correspond to clipboard types in WebKit. | 19 * These types correspond to clipboard types in WebKit. |
| 19 */ | 20 */ |
| 20 [assert_size(4)] | 21 [assert_size(4)] |
| 21 enum PP_Flash_Clipboard_Type { | 22 enum PP_Flash_Clipboard_Type { |
| 22 /** The standard clipboard. */ | 23 /** The standard clipboard. */ |
| 23 PP_FLASH_CLIPBOARD_TYPE_STANDARD = 0, | 24 PP_FLASH_CLIPBOARD_TYPE_STANDARD = 0, |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 135 * too large to be written, <code>PP_ERROR_BADARGUMENT</code> if a PP_Var | 136 * too large to be written, <code>PP_ERROR_BADARGUMENT</code> if a PP_Var |
| 136 * cannot be converted into the format supplied or <code>PP_FAILED</code> | 137 * cannot be converted into the format supplied or <code>PP_FAILED</code> |
| 137 * if the format is not supported. | 138 * if the format is not supported. |
| 138 */ | 139 */ |
| 139 [version=5.0] | 140 [version=5.0] |
| 140 int32_t WriteData([in] PP_Instance instance_id, | 141 int32_t WriteData([in] PP_Instance instance_id, |
| 141 [in] PP_Flash_Clipboard_Type clipboard_type, | 142 [in] PP_Flash_Clipboard_Type clipboard_type, |
| 142 [in] uint32_t data_item_count, | 143 [in] uint32_t data_item_count, |
| 143 [in, size_is(data_item_count)] uint32_t[] formats, | 144 [in, size_is(data_item_count)] uint32_t[] formats, |
| 144 [in, size_is(data_item_count)] PP_Var[] data_items); | 145 [in, size_is(data_item_count)] PP_Var[] data_items); |
| 146 | |
| 147 /** | |
| 148 * Returns a sequence number which uniquely identifies clipboard state. This | |
|
teravest
2014/01/21 14:31:55
Nit: This doesn't actually return the sequence num
raymes
2014/01/22 23:23:18
Done.
| |
| 149 * can be used to version the data on the clipboard and determine whether | |
| 150 * it has changed. The sequence number will be placed in |sequence_number| and | |
| 151 * PP_TRUE returned if the sequence number was retrieved successfully. | |
| 152 */ | |
| 153 [version=5.1] | |
| 154 PP_Bool GetSequenceNumber([in] PP_Instance instance_id, | |
| 155 [in] PP_Flash_Clipboard_Type clipboard_type, | |
| 156 [out] uint64_t sequence_number); | |
| 145 }; | 157 }; |
| OLD | NEW |