| 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 }; | 14 }; |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * This enumeration contains the types of clipboards that can be accessed. | 17 * This enumeration contains the types of clipboards that can be accessed. |
| 18 * These types correspond to clipboard types in WebKit. | 18 * These types correspond to clipboard types in WebKit. |
| 19 */ | 19 */ |
| 20 [assert_size(4)] | 20 [assert_size(4)] |
| 21 enum PP_Flash_Clipboard_Type { | 21 enum PP_Flash_Clipboard_Type { |
| 22 /** The standard clipboard. */ | 22 /** The standard clipboard. */ |
| 23 PP_FLASH_CLIPBOARD_TYPE_STANDARD = 0, | 23 PP_FLASH_CLIPBOARD_TYPE_STANDARD = 0, |
| 24 /** The selection clipboard (e.g., on Linux). */ | 24 /** The selection clipboard (e.g., on Linux). */ |
| 25 PP_FLASH_CLIPBOARD_TYPE_SELECTION = 1 | 25 PP_FLASH_CLIPBOARD_TYPE_SELECTION = 1 |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 /** | 28 /** |
| 29 * This enumeration contains the predfined clipboard data formats. | 29 * This enumeration contains the predefined clipboard data formats. |
| 30 */ | 30 */ |
| 31 [assert_size(4)] | 31 [assert_size(4)] |
| 32 enum PP_Flash_Clipboard_Format { | 32 enum PP_Flash_Clipboard_Format { |
| 33 /** Indicates an invalid or unsupported clipboard data format. */ | 33 /** Indicates an invalid or unsupported clipboard data format. */ |
| 34 PP_FLASH_CLIPBOARD_FORMAT_INVALID = 0, | 34 PP_FLASH_CLIPBOARD_FORMAT_INVALID = 0, |
| 35 /** | 35 /** |
| 36 * Indicates plaintext clipboard data. The format expected/returned is a | 36 * Indicates plaintext clipboard data. The format expected/returned is a |
| 37 * <code>PP_VARTYPE_STRING</code>. | 37 * <code>PP_VARTYPE_STRING</code>. |
| 38 */ | 38 */ |
| 39 PP_FLASH_CLIPBOARD_FORMAT_PLAINTEXT = 1, | 39 PP_FLASH_CLIPBOARD_FORMAT_PLAINTEXT = 1, |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 * cannot be converted into the format supplied or <code>PP_FAILED</code> | 136 * cannot be converted into the format supplied or <code>PP_FAILED</code> |
| 137 * if the format is not supported. | 137 * if the format is not supported. |
| 138 */ | 138 */ |
| 139 [version=5.0] | 139 [version=5.0] |
| 140 int32_t WriteData([in] PP_Instance instance_id, | 140 int32_t WriteData([in] PP_Instance instance_id, |
| 141 [in] PP_Flash_Clipboard_Type clipboard_type, | 141 [in] PP_Flash_Clipboard_Type clipboard_type, |
| 142 [in] uint32_t data_item_count, | 142 [in] uint32_t data_item_count, |
| 143 [in, size_is(data_item_count)] uint32_t[] formats, | 143 [in, size_is(data_item_count)] uint32_t[] formats, |
| 144 [in, size_is(data_item_count)] PP_Var[] data_items); | 144 [in, size_is(data_item_count)] PP_Var[] data_items); |
| 145 }; | 145 }; |
| OLD | NEW |