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

Issue 555803002: PDF Viewer - Search results don't work after rotating pdf (Closed)

Created:
6 years, 3 months ago by Nikhil
Modified:
6 years, 2 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

PDF Viewer - Search results don't work after rotating pdf Currently search results are cleared when user rotates pdf document. As a result, the forward/backward buttons in find bar do not work if user rotates pdf document after finding some text in the document. This happens because |find_results_| is cleared in the method InvalidateAllPages(), which is called after rotation. This patch introduces a new method to restore find results state after invalidate operation is done. New find operation is done to ensure rects are correctly identified for search results and correct region is highlighted on pressing forward/backward buttons in find bar. BUG=389782 Committed: https://crrev.com/3a8252cdcdf60ad0a6a5ed2ba573801a13117ef0 Cr-Commit-Position: refs/heads/master@{#298083}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Review feedback (use resume_find_index_) #

Patch Set 3 : Don't highlight find index after rotation #

Patch Set 4 : Rebase #

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

Messages

Total messages: 22 (2 generated)
Nikhil
PTAL at my initial proposal to fix the issue where forward/backward buttons of find bar ...
6 years, 3 months ago (2014-09-09 10:40:25 UTC) #2
raymes
Could we just StopFind when rotation happens? This seems like reasonable behavior and it would ...
6 years, 3 months ago (2014-09-11 01:44:29 UTC) #3
Nikhil
On 2014/09/11 01:44:29, raymes wrote: > Could we just StopFind when rotation happens? This seems ...
6 years, 3 months ago (2014-09-12 04:59:46 UTC) #4
raymes
https://codereview.chromium.org/555803002/diff/1/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/555803002/diff/1/pdf/pdfium/pdfium_engine.cc#newcode1848 pdf/pdfium/pdfium_engine.cc:1848: StartFind(find_result_state_.find_text_.c_str(), false); I don't fully understand the find stuff ...
6 years, 3 months ago (2014-09-22 05:16:45 UTC) #5
raymes
6 years, 3 months ago (2014-09-22 05:16:47 UTC) #6
Nikhil
raymes@ - Thanks for checking this! Please see my response to your comment. https://codereview.chromium.org/555803002/diff/1/pdf/pdfium/pdfium_engine.cc File ...
6 years, 3 months ago (2014-09-23 12:18:08 UTC) #7
raymes
https://codereview.chromium.org/555803002/diff/1/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/555803002/diff/1/pdf/pdfium/pdfium_engine.cc#newcode1634 pdf/pdfium/pdfium_engine.cc:1634: if (find_result_state_.find_index_ != -1) { It doesn't look like ...
6 years, 3 months ago (2014-09-24 03:57:50 UTC) #8
Nikhil
raymes@ - Sorry for the delay! I've updated the code as per review comments. PTAL. ...
6 years, 2 months ago (2014-09-29 08:22:11 UTC) #9
Nikhil
raymes@ - I've further updated the patch. Please see the details below for the new ...
6 years, 2 months ago (2014-09-29 10:03:24 UTC) #10
raymes
lgtm thanks!
6 years, 2 months ago (2014-10-01 20:05:02 UTC) #11
Nikhil
On 2014/10/01 20:05:02, raymes wrote: > lgtm thanks! Thanks raymes@ for reviewing this! Should I ...
6 years, 2 months ago (2014-10-02 22:05:05 UTC) #12
Nikhil
raymes@ - Rebase done! I'll land this once I get go-ahead from you :)
6 years, 2 months ago (2014-10-03 08:04:01 UTC) #13
raymes
Feel free to land after you receive lgtm from all the reviewers. No need to ...
6 years, 2 months ago (2014-10-03 14:27:27 UTC) #14
Nikhil
raymes@ - I asked because thestig@ is OOO as of now. So I'm not sure ...
6 years, 2 months ago (2014-10-03 16:00:32 UTC) #15
Nikhil
On 2014/10/03 16:00:32, Nikhil wrote: > raymes@ - I asked because thestig@ is OOO as ...
6 years, 2 months ago (2014-10-03 16:10:46 UTC) #16
raymes
I'm ok with landing this. BTW feel free to think about how we can add ...
6 years, 2 months ago (2014-10-03 16:26:13 UTC) #17
Nikhil
On 2014/10/03 16:26:13, raymes wrote: > I'm ok with landing this. > Great! CQing this ...
6 years, 2 months ago (2014-10-03 19:19:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/555803002/60001
6 years, 2 months ago (2014-10-03 19:20:39 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001) as ddb4b014c13364321bbb68d08b3c19cd4abab506
6 years, 2 months ago (2014-10-03 19:55:21 UTC) #21
commit-bot: I haz the power
6 years, 2 months ago (2014-10-03 19:55:57 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3a8252cdcdf60ad0a6a5ed2ba573801a13117ef0
Cr-Commit-Position: refs/heads/master@{#298083}

Powered by Google App Engine
This is Rietveld 408576698