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

Issue 420063002: OOP PDF - Add support for "zoom" open pdf parameter (Closed)

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

Description

OOP PDF - Add support for "zoom" open pdf parameter This patch adds support for zoom open pdf parameter. If user opens pdf with zoom parameter in url then pdf should be opened at zoom level mentioned by user. BUG=64309, 319910 Committed: https://crrev.com/27548ef89c672922f9c3888183c59d48ef2e7ae0 Cr-Commit-Position: refs/heads/master@{#293545}

Patch Set 1 #

Total comments: 7

Patch Set 2 : OOP PDF Changes #

Total comments: 12

Patch Set 3 : Review feedback (nit fixes, zoom fix) #

Total comments: 4

Patch Set 4 : Rework based on OpenPDFParamsParser class #

Total comments: 6

Patch Set 5 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -8 lines) Patch
M chrome/browser/resources/pdf/open_pdf_params_parser.js View 1 2 3 2 chunks +33 lines, -0 lines 0 comments Download
M chrome/browser/resources/pdf/pdf.js View 1 2 3 4 3 chunks +27 lines, -8 lines 0 comments Download

Messages

Total messages: 35 (1 generated)
Nikhil
PTAL at my proposed solution to support zoom parameter mentioned in specification for "Open PDF ...
6 years, 5 months ago (2014-07-26 14:22:36 UTC) #1
raymes
On 2014/07/26 14:22:36, Nikhil wrote: > PTAL at my proposed solution to support zoom parameter ...
6 years, 4 months ago (2014-07-28 23:56:46 UTC) #2
Nikhil
On 2014/07/28 23:56:46, raymes wrote: > On 2014/07/26 14:22:36, Nikhil wrote: > > PTAL at ...
6 years, 4 months ago (2014-07-29 05:58:21 UTC) #3
raymes
The code looks like it should work to me but my gut feeling is to ...
6 years, 4 months ago (2014-07-30 01:10:15 UTC) #4
Lei Zhang
https://codereview.chromium.org/420063002/diff/1/pdf/instance.cc File pdf/instance.cc (right): https://codereview.chromium.org/420063002/diff/1/pdf/instance.cc#newcode1511 pdf/instance.cc:1511: HandleOpenParameters(url_); Please note there is another call to GetInitialPage() ...
6 years, 4 months ago (2014-07-30 02:43:21 UTC) #5
Nikhil
Thanks for taking a look at this! Yes, there is code duplication with GetInitialPage(). But ...
6 years, 4 months ago (2014-07-30 03:11:31 UTC) #6
jam
On 2014/07/30 01:10:15, raymes wrote: > The code looks like it should work to me ...
6 years, 4 months ago (2014-07-30 20:40:23 UTC) #7
raymes
Ok - in that case I'd rather hold off on this, but if thestig@ wants ...
6 years, 4 months ago (2014-07-31 04:34:00 UTC) #8
Lei Zhang
On 2014/07/31 04:34:00, raymes wrote: > Ok - in that case I'd rather hold off ...
6 years, 4 months ago (2014-07-31 19:14:35 UTC) #9
Nikhil
thestig@ raymes@ - Shall I go ahead and re-work based on review comments?
6 years, 4 months ago (2014-08-04 09:34:32 UTC) #10
Lei Zhang
On 2014/08/04 09:34:32, Nikhil wrote: > thestig@ raymes@ - Shall I go ahead and re-work ...
6 years, 4 months ago (2014-08-04 18:06:44 UTC) #11
Nikhil
On 2014/08/04 18:06:44, Lei Zhang wrote: > On 2014/08/04 09:34:32, Nikhil wrote: > > thestig@ ...
6 years, 4 months ago (2014-08-08 09:46:21 UTC) #12
Nikhil
Small update - I've been tweaking around pdf.js, and I'm inclining towards going OOP way ...
6 years, 4 months ago (2014-08-13 13:41:29 UTC) #13
Nikhil
On 2014/08/13 13:41:29, Nikhil wrote: > Small update - > > I've been tweaking around ...
6 years, 4 months ago (2014-08-19 06:07:14 UTC) #14
Nikhil
raymes@ - Could you please take a look at this? Thanks! https://codereview.chromium.org/420063002/diff/20001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): ...
6 years, 4 months ago (2014-08-19 15:09:42 UTC) #15
raymes
https://codereview.chromium.org/420063002/diff/20001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/420063002/diff/20001/chrome/browser/resources/pdf/pdf.js#newcode282 chrome/browser/resources/pdf/pdf.js:282: this.viewport_.setZoom(zoomFactor); On 2014/08/19 15:09:42, Nikhil wrote: > setZoom() isn't ...
6 years, 4 months ago (2014-08-20 00:14:21 UTC) #16
Lei Zhang
https://codereview.chromium.org/420063002/diff/20001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/420063002/diff/20001/chrome/browser/resources/pdf/pdf.js#newcode287 chrome/browser/resources/pdf/pdf.js:287: var position = {x: parseFloat(paramValueSplit[1]), The Adobe open parameters ...
6 years, 4 months ago (2014-08-20 00:37:07 UTC) #17
Nikhil
https://codereview.chromium.org/420063002/diff/20001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/420063002/diff/20001/chrome/browser/resources/pdf/pdf.js#newcode282 chrome/browser/resources/pdf/pdf.js:282: this.viewport_.setZoom(zoomFactor); On 2014/08/20 00:14:21, raymes wrote: > On 2014/08/19 ...
6 years, 4 months ago (2014-08-20 04:46:55 UTC) #18
Nikhil
This is working as expected now. The combination of page and zoom parameters is also ...
6 years, 4 months ago (2014-08-21 11:36:50 UTC) #19
raymes
https://codereview.chromium.org/420063002/diff/40001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/420063002/diff/40001/chrome/browser/resources/pdf/pdf.js#newcode149 chrome/browser/resources/pdf/pdf.js:149: if ((zoomDelta > MIN_ZOOM_DELTA) && !this.setZoomInProgress_) Hmm I'm not ...
6 years, 4 months ago (2014-08-22 03:52:21 UTC) #20
Nikhil
On 2014/08/22 03:52:21, raymes wrote: > > Does this make sense? Thanks raymes@ for taking ...
6 years, 4 months ago (2014-08-22 16:18:54 UTC) #21
raymes
On 2014/08/22 16:18:54, Nikhil wrote: > On 2014/08/22 03:52:21, raymes wrote: > > > > ...
6 years, 4 months ago (2014-08-25 02:36:21 UTC) #22
Nikhil
PTAL at changes to support zoom open pdf parameter. I've updated the patch to use ...
6 years, 3 months ago (2014-08-29 10:31:47 UTC) #23
raymes
https://codereview.chromium.org/420063002/diff/60001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/420063002/diff/60001/chrome/browser/resources/pdf/pdf.js#newcode153 chrome/browser/resources/pdf/pdf.js:153: if ((zoomDelta > MIN_ZOOM_DELTA) && !this.setZoomInProgress_) It's fine to ...
6 years, 3 months ago (2014-09-01 01:04:58 UTC) #24
Nikhil
raymes@ - PTAL at my response to your review comment. Thanks! https://codereview.chromium.org/420063002/diff/60001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): ...
6 years, 3 months ago (2014-09-01 09:11:44 UTC) #25
raymes
https://codereview.chromium.org/420063002/diff/60001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/420063002/diff/60001/chrome/browser/resources/pdf/pdf.js#newcode288 chrome/browser/resources/pdf/pdf.js:288: destinationPosition['y'] = currentPosition.y + this.urlParams_.position.y; The way you have ...
6 years, 3 months ago (2014-09-02 03:27:37 UTC) #26
Nikhil
On 2014/09/02 03:27:37, raymes wrote: > https://codereview.chromium.org/420063002/diff/60001/chrome/browser/resources/pdf/pdf.js > File chrome/browser/resources/pdf/pdf.js (right): > > https://codereview.chromium.org/420063002/diff/60001/chrome/browser/resources/pdf/pdf.js#newcode288 > ...
6 years, 3 months ago (2014-09-02 04:13:49 UTC) #27
raymes
lgtm
6 years, 3 months ago (2014-09-02 04:37:38 UTC) #28
Nikhil
thestig@ - OWNERS review please.
6 years, 3 months ago (2014-09-02 05:42:51 UTC) #29
Nikhil
thestig@ - <ping!> Could you please take a look at this for OWNERS review? Thanks.
6 years, 3 months ago (2014-09-03 18:29:23 UTC) #30
Lei Zhang
lgtm
6 years, 3 months ago (2014-09-05 16:08:01 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/n.bansal@samsung.com/420063002/80001
6 years, 3 months ago (2014-09-05 16:09:06 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:80001) as 36a94623ab4e9e049d17fa7666e885b0d8db3ef1
6 years, 3 months ago (2014-09-05 17:26:37 UTC) #34
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:40:21 UTC) #35
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/27548ef89c672922f9c3888183c59d48ef2e7ae0
Cr-Commit-Position: refs/heads/master@{#293545}

Powered by Google App Engine
This is Rietveld 408576698