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

Issue 573523002: PDF Viewer - PageUp/Down don't move pdf by page size in FitToPage mode (Closed)

Created:
6 years, 3 months ago by Nikhil
Modified:
6 years, 2 months ago
Reviewers:
Lei Zhang, wjmaclean, raymes
CC:
chromium-reviews, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

PDF Viewer - PageUp/Down don't move pdf by page size in FitToPage mode Currently when pdf is scaled to fit to page mode, both page down and page up keys do not move pdf by page size. This is because both the keys are not handled in HandleInputEvent(). This patch updates HandleInputEvent() to factor in key codes for page up and page down to move pdf by page size in fit to page mode. Similar to left and right arrow keys. BUG=390599 Committed: https://crrev.com/9dad99260f7d8f991ef4ab502472381a55a12f96 Cr-Commit-Position: refs/heads/master@{#300435}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Review feedback (new fix) #

Total comments: 3

Patch Set 3 : Review feedback (update comment) #

Total comments: 3

Patch Set 4 : Review feedback (add the check in |Zoom()| instead of |SetZoom()|) #

Total comments: 1

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M pdf/instance.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (9 generated)
Nikhil
PTAL at my solution to fix the issue where page up and page down do ...
6 years, 3 months ago (2014-09-13 12:26:47 UTC) #2
Nikhil
Also adding alekseys@ as reviewer since bug is currently assigned to him. Please take a ...
6 years, 3 months ago (2014-09-13 12:32:58 UTC) #4
raymes
https://codereview.chromium.org/573523002/diff/1/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/573523002/diff/1/chrome/browser/resources/pdf/pdf.js#newcode172 chrome/browser/resources/pdf/pdf.js:172: var viewport = this.viewport_; nit: remove this line and ...
6 years, 3 months ago (2014-09-15 00:12:14 UTC) #5
Lei Zhang
With pdf_instance.cc, the problem is that sometimes |zoom_mode_| is ZOOM_SCALE even though it should be ...
6 years, 3 months ago (2014-09-15 16:54:51 UTC) #6
Nikhil
Thanks raymes@, thestig@ for taking a look at this! The OOP version is fixed and ...
6 years, 3 months ago (2014-09-16 10:23:29 UTC) #7
Lei Zhang
I commented on the bug: https://code.google.com/p/chromium/issues/detail?id=390599#c12 Let's see what wjmaclean@ says about this.
6 years, 3 months ago (2014-09-18 22:41:36 UTC) #8
Nikhil
On 2014/09/18 22:41:36, Lei Zhang wrote: > I commented on the bug: > https://code.google.com/p/chromium/issues/detail?id=390599#c12 > ...
6 years, 3 months ago (2014-09-19 14:53:07 UTC) #9
wjmaclean
LGTM (with minor suggestion) for the instance.cc change. I don't understand the impact of the ...
6 years, 2 months ago (2014-10-08 14:14:33 UTC) #11
raymes
On 2014/10/08 14:14:33, wjmaclean wrote: > LGTM (with minor suggestion) for the instance.cc change. I ...
6 years, 2 months ago (2014-10-08 17:23:48 UTC) #12
raymes
https://codereview.chromium.org/573523002/diff/20001/pdf/instance.cc File pdf/instance.cc (right): https://codereview.chromium.org/573523002/diff/20001/pdf/instance.cc#newcode2429 pdf/instance.cc:2429: // If same zoom level, don't do anything. // ...
6 years, 2 months ago (2014-10-08 17:23:55 UTC) #13
Lei Zhang
lgtm++ Thanks for investigating everyone.
6 years, 2 months ago (2014-10-08 18:48:09 UTC) #15
Nikhil
raymes@, thestig@, wjmaclean@ - Thanks for reviewing! I've updated the comment based on your suggestion. ...
6 years, 2 months ago (2014-10-09 06:36:20 UTC) #16
raymes
I just had a look at the code again and I think your change might ...
6 years, 2 months ago (2014-10-09 17:15:53 UTC) #17
wjmaclean
https://codereview.chromium.org/573523002/diff/40001/pdf/instance.cc File pdf/instance.cc (right): https://codereview.chromium.org/573523002/diff/40001/pdf/instance.cc#newcode782 pdf/instance.cc:782: SetZoom(ZOOM_SCALE, scale); On 2014/10/09 17:15:53, raymes wrote: > Could ...
6 years, 2 months ago (2014-10-09 17:19:01 UTC) #18
Nikhil
raymes@, wjmaclean@ - Sorry for the delay! I've moved the check to Zoom() method instead ...
6 years, 2 months ago (2014-10-20 09:25:29 UTC) #19
wjmaclean
https://codereview.chromium.org/573523002/diff/90001/pdf/instance.cc File pdf/instance.cc (right): https://codereview.chromium.org/573523002/diff/90001/pdf/instance.cc#newcode790 pdf/instance.cc:790: SetZoom(ZOOM_SCALE, scale); This looks better ... lgtm.
6 years, 2 months ago (2014-10-20 13:25:13 UTC) #20
raymes
lgtm
6 years, 2 months ago (2014-10-20 23:07:40 UTC) #21
Nikhil
raymes@, wjmaclean@, thestig@ - Thanks for reviewing! CQing this CL now :)
6 years, 2 months ago (2014-10-21 00:23:05 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/573523002/90001
6 years, 2 months ago (2014-10-21 00:24:53 UTC) #24
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 2 months ago (2014-10-21 02:28:15 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/573523002/90001
6 years, 2 months ago (2014-10-21 03:15:28 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/65849)
6 years, 2 months ago (2014-10-21 04:19:27 UTC) #30
Nikhil
Rebase!
6 years, 2 months ago (2014-10-21 05:46:05 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/573523002/110001
6 years, 2 months ago (2014-10-21 05:47:12 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:110001)
6 years, 2 months ago (2014-10-21 08:10:23 UTC) #34
commit-bot: I haz the power
6 years, 2 months ago (2014-10-21 08:11:13 UTC) #35
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9dad99260f7d8f991ef4ab502472381a55a12f96
Cr-Commit-Position: refs/heads/master@{#300435}

Powered by Google App Engine
This is Rietveld 408576698