OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_ |
| 6 #define PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_ |
| 7 |
| 8 #include "ppapi/c/pp_instance.h" |
| 9 #include "ppapi/c/pp_var.h" |
| 10 |
| 11 #define PPB_FLASH_CLIPBOARD_INTERFACE "PPB_Flash_Clipboard;2" |
| 12 |
| 13 typedef enum { |
| 14 PP_FLASH_CLIPBOARD_TYPE_STANDARD = 0, |
| 15 PP_FLASH_CLIPBOARD_TYPE_SELECTION = 1, |
| 16 PP_FLASH_CLIPBOARD_TYPE_DRAG = 2 |
| 17 } PP_Flash_Clipboard_Type; |
| 18 |
| 19 struct PPB_Flash_Clipboard { |
| 20 // Reads plain text data from the clipboard. |
| 21 struct PP_Var (*ReadPlainText)(PP_Instance instance_id, |
| 22 PP_Flash_Clipboard_Type clipboard_type); |
| 23 |
| 24 // Writes plain text data to the clipboard. If |text| is too large, it will |
| 25 // return |PP_ERROR_NOSPACE| (and not write to the clipboard). |
| 26 int32_t (*WritePlainText)(PP_Instance instance_id, |
| 27 PP_Flash_Clipboard_Type clipboard_type, |
| 28 struct PP_Var text); |
| 29 |
| 30 // TODO(vtl): More formats, a |IsFormatAvailable()|, .... |
| 31 }; |
| 32 |
| 33 #endif // PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_ |
OLD | NEW |