| 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 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 PP_FLASH_CLIPBOARD_TYPE_SELECTION = 1 | 33 PP_FLASH_CLIPBOARD_TYPE_SELECTION = 1 |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 /** | 36 /** |
| 37 * This enumeration contains the supported clipboard data formats. | 37 * This enumeration contains the supported clipboard data formats. |
| 38 */ | 38 */ |
| 39 [assert_size(4)] | 39 [assert_size(4)] |
| 40 enum PP_Flash_Clipboard_Format { | 40 enum PP_Flash_Clipboard_Format { |
| 41 /** Indicates an invalid or unsupported clipboard data format. */ | 41 /** Indicates an invalid or unsupported clipboard data format. */ |
| 42 PP_FLASH_CLIPBOARD_FORMAT_INVALID = 0, | 42 PP_FLASH_CLIPBOARD_FORMAT_INVALID = 0, |
| 43 /** Indicates plain text clipboard data. */ | 43 /** |
| 44 * Indicates plaintext clipboard data. The format expected/returned is a |
| 45 * <code>PP_VARTYPE_STRING</code>. |
| 46 */ |
| 44 PP_FLASH_CLIPBOARD_FORMAT_PLAINTEXT = 1, | 47 PP_FLASH_CLIPBOARD_FORMAT_PLAINTEXT = 1, |
| 45 /** Indicates HTML clipboard data. */ | 48 /** |
| 46 PP_FLASH_CLIPBOARD_FORMAT_HTML = 2 | 49 * Indicates HTML clipboard data. The format expected/returned is a |
| 50 * <code>PP_VARTYPE_STRING</code>. |
| 51 */ |
| 52 PP_FLASH_CLIPBOARD_FORMAT_HTML = 2, |
| 53 /** |
| 54 * Indicates RTF clipboard data. The format expected/returned is a |
| 55 * <code>PP_VARTYPE_ARRAY_BUFFER</code>. |
| 56 */ |
| 57 PP_FLASH_CLIPBOARD_FORMAT_RTF = 3 |
| 47 }; | 58 }; |
| 48 | 59 |
| 49 /** | 60 /** |
| 50 * The <code>PPB_Flash_Clipboard</code> interface contains pointers to functions | 61 * The <code>PPB_Flash_Clipboard</code> interface contains pointers to functions |
| 51 * used by Pepper Flash to access the clipboard. | 62 * used by Pepper Flash to access the clipboard. |
| 52 * | 63 * |
| 53 */ | 64 */ |
| 54 interface PPB_Flash_Clipboard { | 65 interface PPB_Flash_Clipboard { |
| 55 /** | 66 /** |
| 56 * Checks whether a given data format is available from the given clipboard. | 67 * Checks whether a given data format is available from the given clipboard. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 * cannot be converted into the format supplied or <code>PP_FAILED</code> | 114 * cannot be converted into the format supplied or <code>PP_FAILED</code> |
| 104 * if the format is not supported. | 115 * if the format is not supported. |
| 105 */ | 116 */ |
| 106 [version=4.0] | 117 [version=4.0] |
| 107 int32_t WriteData([in] PP_Instance instance_id, | 118 int32_t WriteData([in] PP_Instance instance_id, |
| 108 [in] PP_Flash_Clipboard_Type clipboard_type, | 119 [in] PP_Flash_Clipboard_Type clipboard_type, |
| 109 [in] uint32_t data_item_count, | 120 [in] uint32_t data_item_count, |
| 110 [in, size_is(data_item_count)] PP_Flash_Clipboard_Format[] formats, | 121 [in, size_is(data_item_count)] PP_Flash_Clipboard_Format[] formats, |
| 111 [in, size_is(data_item_count)] PP_Var[] data_items); | 122 [in, size_is(data_item_count)] PP_Var[] data_items); |
| 112 }; | 123 }; |
| OLD | NEW |