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

Unified Diff: ui/base/clipboard/scoped_clipboard_writer.h

Issue 2777723002: Add ScopedClipboardWriter::WriteData
Patch Set: Add ScopedClipboardWriter::WriteData Created 3 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/clipboard/scoped_clipboard_writer.h
diff --git a/ui/base/clipboard/scoped_clipboard_writer.h b/ui/base/clipboard/scoped_clipboard_writer.h
index a7e064561ca905947137011a8a7e6dd2362e6dcd..d5a1b76bc6a780ca3ab4405cf937f758f51c2fca 100644
--- a/ui/base/clipboard/scoped_clipboard_writer.h
+++ b/ui/base/clipboard/scoped_clipboard_writer.h
@@ -61,6 +61,11 @@ class UI_BASE_EXPORT ScopedClipboardWriter {
// Used by WebKit to determine whether WebKit wrote the clipboard last
void WriteWebSmartPaste();
+ // Adds arbitrary data to clipboard.
dcheng 2017/04/05 08:40:39 Nit: Adds -> Write
+ void WriteData(const char* data,
+ int size,
dcheng 2017/04/05 08:40:39 Please use size_t for the external interface.
+ const Clipboard::FormatType& format);
+
// Adds arbitrary pickled data to clipboard.
void WritePickledData(const base::Pickle& pickle,
const Clipboard::FormatType& format);

Powered by Google App Engine
This is Rietveld 408576698