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

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

Issue 6611034: Pepper/Flapper: Add very basic clipboard support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minus string.h Created 9 years, 9 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_menu.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/private/ppb_flash_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698