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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ppapi/c/private/ppb_flash_menu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/private/ppb_flash_clipboard.h
diff --git a/ppapi/c/private/ppb_flash_clipboard.h b/ppapi/c/private/ppb_flash_clipboard.h
new file mode 100644
index 0000000000000000000000000000000000000000..c16ae36f2708c31abb75fccfc2de214b280e3234
--- /dev/null
+++ b/ppapi/c/private/ppb_flash_clipboard.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_
+#define PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_
+
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/pp_var.h"
+
+#define PPB_FLASH_CLIPBOARD_INTERFACE "PPB_Flash_Clipboard;2"
+
+typedef enum {
+ PP_FLASH_CLIPBOARD_TYPE_STANDARD = 0,
+ PP_FLASH_CLIPBOARD_TYPE_SELECTION = 1,
+ PP_FLASH_CLIPBOARD_TYPE_DRAG = 2
+} PP_Flash_Clipboard_Type;
+
+struct PPB_Flash_Clipboard {
+ // Reads plain text data from the clipboard.
+ struct PP_Var (*ReadPlainText)(PP_Instance instance_id,
+ PP_Flash_Clipboard_Type clipboard_type);
+
+ // Writes plain text data to the clipboard. If |text| is too large, it will
+ // return |PP_ERROR_NOSPACE| (and not write to the clipboard).
+ int32_t (*WritePlainText)(PP_Instance instance_id,
+ PP_Flash_Clipboard_Type clipboard_type,
+ struct PP_Var text);
+
+ // TODO(vtl): More formats, a |IsFormatAvailable()|, ....
+};
+
+#endif // PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_
« 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