Index: extensions/common/api/clipboard.idl |
diff --git a/extensions/common/api/clipboard.idl b/extensions/common/api/clipboard.idl |
index 0b841b09b4a6191b7dba7ec1ede10969b74042f8..7c5f3d738b5cab12ea421a9bc24ed536dc1e129e 100644 |
--- a/extensions/common/api/clipboard.idl |
+++ b/extensions/common/api/clipboard.idl |
@@ -14,4 +14,16 @@ namespace clipboard { |
// document.execCommand('paste'). |
static void onClipboardDataChanged(); |
}; |
+ |
+ callback SetImageDataCallback = void(boolean success); |
+ |
+ interface Functions { |
+ // Sets image data to clipboard. |
+ // |
+ // |image_data|: The encoded image data. |
+ // |type|: The image type, the supported types are: "png", "jpeg". |
+ static void setImageData(ArrayBuffer image_data, |
+ DOMString type, |
dcheng
2016/10/04 05:13:27
I'm not an extension IDL expert, but if we can som
jennyz
2016/10/04 23:53:54
Done.
|
+ SetImageDataCallback callback); |
+ }; |
}; |