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

Issue 2777723002: Add ScopedClipboardWriter::WriteData

Created:
3 years, 9 months ago by poiru
Modified:
3 years, 8 months ago
Reviewers:
dcheng
CC:
chromium-reviews, dcheng
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ScopedClipboardWriter::WriteData The WriteData function is needed for Chromium embedders (Electron, in this case) who want to write arbitrary, non-Pickle data to the clipboard. BUG=

Patch Set 1 #

Patch Set 2 : Add ScopedClipboardWriter::WriteData #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -37 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 1 comment Download
M ui/base/clipboard/clipboard_test_template.h View 1 3 chunks +36 lines, -31 lines 1 comment Download
M ui/base/clipboard/scoped_clipboard_writer.h View 1 chunk +5 lines, -0 lines 2 comments Download
M ui/base/clipboard/scoped_clipboard_writer.cc View 1 2 chunks +12 lines, -6 lines 0 comments Download

Messages

Total messages: 7 (4 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2777723002/1
3 years, 9 months ago (2017-03-25 21:14:05 UTC) #2
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 9 months ago (2017-03-25 21:14:06 UTC) #4
dcheng
3 years, 8 months ago (2017-04-05 08:40:39 UTC) #7
Btw, in the future, please explicitly send an email after adding a reviewer
(otherwise it's easy for the reviewer to miss)

https://codereview.chromium.org/2777723002/diff/20001/AUTHORS
File AUTHORS (right):

https://codereview.chromium.org/2777723002/diff/20001/AUTHORS#newcode102
AUTHORS:102: Birunthan Mohanathas <birunthan@mohanathas.com>
Did you sign the CLA? I can't seem to find it.

https://cla.developers.google.com/

https://codereview.chromium.org/2777723002/diff/20001/ui/base/clipboard/clipb...
File ui/base/clipboard/clipboard_test_template.h (right):

https://codereview.chromium.org/2777723002/diff/20001/ui/base/clipboard/clipb...
ui/base/clipboard/clipboard_test_template.h:441:
clipboard_writer.WriteData(payload.data(), static_cast<int>(payload.size()),
I think it'd be easier to read if we just renamed these tests to denote that
they're exercising WritePickledData, and add a new test for WriteData().

https://codereview.chromium.org/2777723002/diff/20001/ui/base/clipboard/scope...
File ui/base/clipboard/scoped_clipboard_writer.h (right):

https://codereview.chromium.org/2777723002/diff/20001/ui/base/clipboard/scope...
ui/base/clipboard/scoped_clipboard_writer.h:64: // Adds arbitrary data to
clipboard.
Nit: Adds -> Write

https://codereview.chromium.org/2777723002/diff/20001/ui/base/clipboard/scope...
ui/base/clipboard/scoped_clipboard_writer.h:66: int size,
Please use size_t for the external interface.

Powered by Google App Engine
This is Rietveld 408576698