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

Side by Side Diff: ppapi/api/private/ppb_flash_clipboard.idl

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
« no previous file with comments | « no previous file | ppapi/c/private/ppb_flash_clipboard.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) 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 * Returns true if the given format is available from the given clipboard. 58 * Returns true if the given format is available from the given clipboard.
59 */ 59 */
60 PP_Bool IsFormatAvailable( 60 PP_Bool IsFormatAvailable(
61 [in] PP_Instance instance_id, 61 [in] PP_Instance instance_id,
62 [in] PP_Flash_Clipboard_Type clipboard_type, 62 [in] PP_Flash_Clipboard_Type clipboard_type,
63 [in] PP_Flash_Clipboard_Format format); 63 [in] PP_Flash_Clipboard_Format format);
64 64
65 /** 65 /**
66 * Reads plain text data from the clipboard. 66 * Reads plain text data from the clipboard.
67 */ 67 */
68 PP_Var ReadPlainText( 68 PP_Var ReadPlainText(
viettrungluu 2012/01/25 00:01:55 Maybe we should have: PP_Var ReadData([in] PP_Ins
raymes1 2012/01/25 01:33:12 Sounds good, I was debating whether or not to do t
69 [in] PP_Instance instance_id, 69 [in] PP_Instance instance_id,
70 [in] PP_Flash_Clipboard_Type clipboard_type); 70 [in] PP_Flash_Clipboard_Type clipboard_type);
71 71
72 /** 72 /**
73 * Writes plain text data to the clipboard. If <code>text</code> is too large, 73 * Writes plain text data to the clipboard buffer. If <code>text</code> is too
74 * it will return <code>PP_ERROR_NOSPACE</code> and not write to the 74 * large, it will return <code>PP_ERROR_NOSPACE</code> and not write to the
75 * clipboard. 75 * clipboard buffer.
76 */ 76 */
77 int32_t WritePlainText( 77 int32_t WritePlainText(
viettrungluu 2012/01/25 00:01:55 Since "write" no longer parallels "read" directly
raymes1 2012/01/25 01:33:12 Done.
78 [in] PP_Instance instance_id, 78 [in] PP_Instance instance_id,
79 [in] PP_Flash_Clipboard_Type clipboard_type, 79 [in] PP_Flash_Clipboard_Type clipboard_type,
80 [in] PP_Var text); 80 [in] PP_Var text);
81
82 /**
83 * Reads HTML data from the clipboard.
84 */
85 PP_Var ReadHTML(
86 [in] PP_Instance instance_id,
87 [in] PP_Flash_Clipboard_Type clipboard_type);
88
89 /**
90 * Writes HTML data to the clipboard buffer. If <code>html</code> is too
91 * large, it will return <code>PP_ERROR_NOSPACE</code> and not write to the
92 * clipboard buffer.
93 */
94 int32_t WriteHTML(
95 [in] PP_Instance instance_id,
96 [in] PP_Flash_Clipboard_Type clipboard_type,
97 [in] PP_Var html);
98
99 /**
100 * Clear the contents of the clipboard buffer.
101 */
102 void Clear(
viettrungluu 2012/01/25 00:01:55 Is this instantaneous? Or does it also require com
raymes1 2012/01/25 01:33:12 This requires a commit. I updated the docs to make
103 [in] PP_Instance instance_id,
104 [in] PP_Flash_Clipboard_Type clipboard_type);
105
106 /**
107 * Commit the contents of the clipboard buffer to the clipboard. Any existing
108 * contents on the clipboard are cleared before the contents of the clipboard
109 * buffer are written.
110 */
111 void Commit(
112 [in] PP_Instance instance_id,
113 [in] PP_Flash_Clipboard_Type clipboard_type);
114
81 }; 115 };
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/private/ppb_flash_clipboard.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698