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

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

Issue 9212066: Modified the flash cipboard interface to add html clipboard support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
OLDNEW
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 /* From private/ppb_flash_clipboard.idl modified Wed Dec 14 18:08:00 2011. */ 6 /* From private/ppb_flash_clipboard.idl modified Tue Jan 24 13:30:10 2012. */
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 buffer. If <code>text</code> is too
90 * it will return <code>PP_ERROR_NOSPACE</code> and not write to the 90 * large, it will return <code>PP_ERROR_NOSPACE</code> and not write to the
91 * clipboard. 91 * clipboard buffer.
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 /**
97 * Reads HTML data from the clipboard.
98 */
99 struct PP_Var (*ReadHTML)(PP_Instance instance_id,
100 PP_Flash_Clipboard_Type clipboard_type);
101 /**
102 * Writes HTML data to the clipboard buffer. If <code>html</code> is too
103 * large, it will return <code>PP_ERROR_NOSPACE</code> and not write to the
104 * clipboard buffer.
105 */
106 int32_t (*WriteHTML)(PP_Instance instance_id,
107 PP_Flash_Clipboard_Type clipboard_type,
108 struct PP_Var html);
109 /**
110 * Clear the contents of the clipboard buffer.
111 */
112 void (*Clear)(PP_Instance instance_id,
113 PP_Flash_Clipboard_Type clipboard_type);
114 /**
115 * Commit the contents of the clipboard buffer to the clipboard. Any existing
116 * contents on the clipboard are cleared before the contents of the clipboard
117 * buffer are written.
118 */
119 void (*Commit)(PP_Instance instance_id,
120 PP_Flash_Clipboard_Type clipboard_type);
96 }; 121 };
97 122
98 typedef struct PPB_Flash_Clipboard_3_0 PPB_Flash_Clipboard; 123 typedef struct PPB_Flash_Clipboard_3_0 PPB_Flash_Clipboard;
99 /** 124 /**
100 * @} 125 * @}
101 */ 126 */
102 127
103 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_ */ 128 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_ */
104 129
OLDNEW
« ppapi/api/private/ppb_flash_clipboard.idl ('K') | « ppapi/api/private/ppb_flash_clipboard.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698