Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: ppapi/c/private/ppb_flash_clipboard.h

Issue 8989006: Update PPAPI IDL generator to define versioned structs, and unversioned typedef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase for line-wrap. Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/private/ppb_flash.h ('k') | ppapi/c/private/ppb_flash_fullscreen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 /* From private/ppb_flash_clipboard.idl modified Wed Nov 23 12:39:42 2011. */ 6 /* From private/ppb_flash_clipboard.idl modified Wed Dec 14 18:08:00 2011. */
7 7
8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_ 8 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_
9 #define PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_ 9 #define PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_
10 10
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h" 13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_stdint.h" 14 #include "ppapi/c/pp_stdint.h"
15 #include "ppapi/c/pp_var.h" 15 #include "ppapi/c/pp_var.h"
16 16
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 /** 65 /**
66 * @addtogroup Interfaces 66 * @addtogroup Interfaces
67 * @{ 67 * @{
68 */ 68 */
69 /** 69 /**
70 * The <code>PPB_Flash_Clipboard</code> interface contains pointers to functions 70 * The <code>PPB_Flash_Clipboard</code> interface contains pointers to functions
71 * used by Pepper Flash to access the clipboard. 71 * used by Pepper Flash to access the clipboard.
72 * 72 *
73 * TODO(viettrungluu): Support more formats (e.g., HTML).... 73 * TODO(viettrungluu): Support more formats (e.g., HTML)....
74 */ 74 */
75 struct PPB_Flash_Clipboard { 75 struct PPB_Flash_Clipboard_3_0 {
76 /** 76 /**
77 * Checks whether a given data format is available from the given clipboard. 77 * Checks whether a given data format is available from the given clipboard.
78 * Returns true if the given format is available from the given clipboard. 78 * Returns true if the given format is available from the given clipboard.
79 */ 79 */
80 PP_Bool (*IsFormatAvailable)(PP_Instance instance_id, 80 PP_Bool (*IsFormatAvailable)(PP_Instance instance_id,
81 PP_Flash_Clipboard_Type clipboard_type, 81 PP_Flash_Clipboard_Type clipboard_type,
82 PP_Flash_Clipboard_Format format); 82 PP_Flash_Clipboard_Format format);
83 /** 83 /**
84 * Reads plain text data from the clipboard. 84 * Reads plain text data from the clipboard.
85 */ 85 */
86 struct PP_Var (*ReadPlainText)(PP_Instance instance_id, 86 struct PP_Var (*ReadPlainText)(PP_Instance instance_id,
87 PP_Flash_Clipboard_Type clipboard_type); 87 PP_Flash_Clipboard_Type clipboard_type);
88 /** 88 /**
89 * Writes plain text data to the clipboard. If <code>text</code> is too large, 89 * Writes plain text data to the clipboard. If <code>text</code> is too large,
90 * it will return <code>PP_ERROR_NOSPACE</code> and not write to the 90 * it will return <code>PP_ERROR_NOSPACE</code> and not write to the
91 * clipboard. 91 * clipboard.
92 */ 92 */
93 int32_t (*WritePlainText)(PP_Instance instance_id, 93 int32_t (*WritePlainText)(PP_Instance instance_id,
94 PP_Flash_Clipboard_Type clipboard_type, 94 PP_Flash_Clipboard_Type clipboard_type,
95 struct PP_Var text); 95 struct PP_Var text);
96 }; 96 };
97
98 typedef struct PPB_Flash_Clipboard_3_0 PPB_Flash_Clipboard;
97 /** 99 /**
98 * @} 100 * @}
99 */ 101 */
100 102
101 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_ */ 103 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_ */
102 104
OLDNEW
« no previous file with comments | « ppapi/c/private/ppb_flash.h ('k') | ppapi/c/private/ppb_flash_fullscreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698