History log of /external/chromium_org/ui/base/clipboard/clipboard_android.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
44cd51e26a2cc49e22fd78344c7260c67f72cc55 12-Nov-2013 Kristian Monsen <kristianm@google.com> Fix for pasting html clipboard content into a webview

Upstream code review (not yet landed):
https://codereview.chromium.org/59023007/

BUG=11561995

Change-Id: I6ba8821d036b1e0b48f483f51228334b629961fc
/external/chromium_org/ui/base/clipboard/clipboard_android.cc
ad8795de7da44277582b3b0fc9910193ca1e511e 28-Oct-2013 peter@chromium.org <peter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Cherry-pick "Android should be able to copy HTML snippets to the system clipboard."

Bug 10863973

Taken from upstream CL 9e7f61b8c (http://crrev.com/231337)

Original description:

Currently the only clipboard data we actually push to the Android system
clipboard is plain-text data, so any formatting and links will be removed
when someone pastes content from Chromium to, for example, Gmail.

In order to push HTML data on the Android clipboard, we do need to know
the plain-text representation so that non-HTML consumers can still use
what's on there (there only is one primary clip). For that reason, we only
push HTML to the Android system clipboard if there also is a plain-text
representation available in the ClipboardMap.

There are a few situations in which we end up calling Clipboard::WriteHTML.
Android doesn't care about Pepper and drag and drop data right now. The
WebClipboardImpl::writeImage() method will write a HTML snippet, but we'll
ignore that because no plain-text data will be pasted. The fourth case is
WebClipboardImpl::writeHTML(), used for DOM fragments and rich content,
which will work fine after this patch.

BUG=214200

Review URL: https://codereview.chromium.org/25668005

Change-Id: I340c9befd8580e6f3de8d308053759054b9a8858
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231337 0039d316-1c4b-4281-b951-d872f2087c98
/external/chromium_org/ui/base/clipboard/clipboard_android.cc
4d551d56ad0f44a3bcc2b10614207fdae059b960 17-Sep-2013 Torne (Richard Coles) <torne@google.com> Merge from Chromium at DEPS revision 30.0.1599.46

This commit was generated by merge_to_master.py.

Change-Id: I01911ef63f1e267b7742804ba6fecda1780cda22
/external/chromium_org/ui/base/clipboard/clipboard_android.cc
868fa2fe829687343ffae624259930155e16dbd8 11-Jun-2013 Torne (Richard Coles) <torne@google.com> Merge from Chromium at DEPS revision r205460

This commit was generated by merge_to_master.py.

Change-Id: I4a744a5e426bd3bb378d887cfa56fe054742a540
/external/chromium_org/ui/base/clipboard/clipboard_android.cc
c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d 09-May-2013 Torne (Richard Coles) <torne@google.com> Merge from Chromium at DEPS revision r198571

This commit was generated by merge_to_master.py.

Change-Id: I951118a03836157090561764dd2627f0add8118f
/external/chromium_org/ui/base/clipboard/clipboard_android.cc
2a99a7e74a7f215066514fe81d2bfa6639d9eddd 28-Mar-2013 Torne (Richard Coles) <torne@google.com> Merge from Chromium at DEPS revision r190564

This commit was generated by merge_to_master.py.

Change-Id: Icadecbce29854b8fa25fd335b2c1949b5ca5d170
/external/chromium_org/ui/base/clipboard/clipboard_android.cc
5821806d5e7f356e8fa4b058a389a808ea183019 14-Nov-2012 Torne (Richard Coles) <torne@google.com> Merge from Chromium at DEPS revision r167172

This commit was generated by merge_to_master.py.

Change-Id: Ib8d56fd5ae39a2d7e8c91dcd76cc6d13f25f2aab
/external/chromium_org/ui/base/clipboard/clipboard_android.cc