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

Issue 2963403002: Fix another discrepancy in text selection between PDF and HTML forms. (Closed)

Created:
3 years, 5 months ago by drgage
Modified:
3 years, 5 months ago
Reviewers:
Lei Zhang, dsinclair
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, kalyank, danakj+watch_chromium.org, James Su
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix another discrepancy in text selection between PDF and HTML forms. Added fix for issue in which two notification messages of selected text were being sent to the selection clipboard. Now, if a user selects text in a PDF form text area and then selects text in a regular PDF text area, only the regular selected text is sent. The same is true in the reverse scenario - only one text selection is sent (the most recent one). BUG=59266 Review-Url: https://codereview.chromium.org/2963403002 Cr-Commit-Position: refs/heads/master@{#485799} Committed: https://chromium.googlesource.com/chromium/src/+/cb54de2bccfe08ba07d74435496c592d6289d480

Patch Set 1 : Clear plugin text selection when left mouse button pressed #

Patch Set 2 : Rebase #

Patch Set 3 : Change how text selection and form text selection is cleared #

Total comments: 7

Patch Set 4 : Change comments and style #

Patch Set 5 : Make comments more informative #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -2 lines) Patch
M pdf/pdfium/pdfium_engine.cc View 1 2 3 4 5 chunks +21 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
drgage
Hi Lei and Dan, This CL fixes the selection bug where the clipboard received two ...
3 years, 5 months ago (2017-07-01 00:58:34 UTC) #5
Lei Zhang
Here's a scenario that doesn't work: 1) Highlight some regular text on a PDF. e.g. ...
3 years, 5 months ago (2017-07-07 01:10:42 UTC) #6
drgage
On 2017/07/07 01:10:42, Lei Zhang wrote: > Here's a scenario that doesn't work: > > ...
3 years, 5 months ago (2017-07-10 22:02:35 UTC) #9
Lei Zhang
https://codereview.chromium.org/2963403002/diff/120001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/2963403002/diff/120001/pdf/pdfium/pdfium_engine.cc#newcode1730 pdf/pdfium/pdfium_engine.cc:1730: std::unique_ptr<chrome_pdf::PDFiumEngine::SelectionChangeInvalidator> Since the return value from base::MakeUnique() (which will ...
3 years, 5 months ago (2017-07-10 23:08:21 UTC) #10
drgage
Hi Lei and Dan, In this patchset, I added a comment to explain why the ...
3 years, 5 months ago (2017-07-11 17:25:37 UTC) #12
Lei Zhang
lgtm https://codereview.chromium.org/2963403002/diff/120001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/2963403002/diff/120001/pdf/pdfium/pdfium_engine.cc#newcode3630 pdf/pdfium/pdfium_engine.cc:3630: // If focus previously in form text area, ...
3 years, 5 months ago (2017-07-11 20:37:39 UTC) #13
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/2963403002/180001
3 years, 5 months ago (2017-07-11 22:33:41 UTC) #16
commit-bot: I haz the power
3 years, 5 months ago (2017-07-12 02:20:55 UTC) #19
Message was sent while issue was closed.
Committed patchset #5 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/cb54de2bccfe08ba07d74435496c...

Powered by Google App Engine
This is Rietveld 408576698