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

Issue 476733003: OOP PDF - Add support for "page" open pdf parameter (Closed)

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

Description

OOP PDF - Add support for "page" open pdf parameter This patch adds support for "page" feature of open PDF parameters in OOP PDF. When page is used as an open PDF parameter, then PDF should initially be loaded at the page specified by user. BUG=64309 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290529

Patch Set 1 #

Total comments: 12

Patch Set 2 : Review feedback (removed new message for openPDFParams) #

Total comments: 6

Patch Set 3 : Review feedback (nit fixes) #

Total comments: 4

Patch Set 4 : Review feedback (hasParams -> paramIndex) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -55 lines) Patch
M chrome/browser/resources/pdf/pdf.js View 1 2 3 2 chunks +30 lines, -0 lines 0 comments Download
M pdf/out_of_process_instance.cc View 1 3 chunks +1 line, -55 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Nikhil
PTAL at the changes to support "page" feature for OOP PDF in pdf.js. [1] This ...
6 years, 4 months ago (2014-08-14 12:22:27 UTC) #1
raymes
https://codereview.chromium.org/476733003/diff/1/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/476733003/diff/1/chrome/browser/resources/pdf/pdf.js#newcode306 chrome/browser/resources/pdf/pdf.js:306: }, I would suggest just inlining this function. viewport_.goToPage ...
6 years, 4 months ago (2014-08-15 01:07:18 UTC) #2
Nikhil
Thanks for reviewing this! I've made changes as per review comments. PTAL. Thanks! https://codereview.chromium.org/476733003/diff/1/chrome/browser/resources/pdf/pdf.js File ...
6 years, 4 months ago (2014-08-16 10:24:01 UTC) #3
Nikhil
https://codereview.chromium.org/476733003/diff/20001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/476733003/diff/20001/chrome/browser/resources/pdf/pdf.js#newcode312 chrome/browser/resources/pdf/pdf.js:312: this.handleOpenPDFParams_(); Maybe I can introduce isPrintPreview() here? Similar to ...
6 years, 4 months ago (2014-08-17 16:53:45 UTC) #4
raymes
lgtm https://codereview.chromium.org/476733003/diff/1/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/476733003/diff/1/chrome/browser/resources/pdf/pdf.js#newcode322 chrome/browser/resources/pdf/pdf.js:322: // FIXME: Send message for GetNamedDestinationPage(); I had ...
6 years, 4 months ago (2014-08-18 00:39:34 UTC) #5
Nikhil
PTAL. Thanks! https://codereview.chromium.org/476733003/diff/1/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/476733003/diff/1/chrome/browser/resources/pdf/pdf.js#newcode322 chrome/browser/resources/pdf/pdf.js:322: // FIXME: Send message for GetNamedDestinationPage(); On ...
6 years, 4 months ago (2014-08-18 04:53:32 UTC) #6
Lei Zhang
https://codereview.chromium.org/476733003/diff/40001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/476733003/diff/40001/chrome/browser/resources/pdf/pdf.js#newcode274 chrome/browser/resources/pdf/pdf.js:274: var hasParams = originalUrl.search('#'); hasParams -> paramIndex? https://codereview.chromium.org/476733003/diff/40001/chrome/browser/resources/pdf/pdf.js#newcode291 chrome/browser/resources/pdf/pdf.js:291: ...
6 years, 4 months ago (2014-08-18 23:53:32 UTC) #7
raymes
On Tue, Aug 19, 2014 at 9:53 AM, <thestig@chromium.org> wrote: > > https://codereview.chromium.org/476733003/diff/40001/chrome/browser/resources/pdf/pdf.js > File ...
6 years, 4 months ago (2014-08-19 03:44:22 UTC) #8
Lei Zhang
On 2014/08/19 03:44:22, raymes wrote: > On Tue, Aug 19, 2014 at 9:53 AM, <mailto:thestig@chromium.org> ...
6 years, 4 months ago (2014-08-19 04:46:07 UTC) #9
raymes
Oh sorry, I see the distinction. I think clipping it makes more sense haha! But ...
6 years, 4 months ago (2014-08-19 04:48:39 UTC) #10
Nikhil
FWIW, here's the behavior that I observed - [*] Firefox loads first page whenever an ...
6 years, 4 months ago (2014-08-19 05:17:27 UTC) #11
Nikhil
PTAL. Thanks! https://codereview.chromium.org/476733003/diff/40001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/476733003/diff/40001/chrome/browser/resources/pdf/pdf.js#newcode274 chrome/browser/resources/pdf/pdf.js:274: var hasParams = originalUrl.search('#'); On 2014/08/18 23:53:32, ...
6 years, 4 months ago (2014-08-19 05:28:08 UTC) #12
raymes
I'm ok either way. If thestig@ has a preference let's go with that or I'll ...
6 years, 4 months ago (2014-08-19 05:32:12 UTC) #13
Lei Zhang
On 2014/08/19 05:17:27, Nikhil wrote: > FWIW, here's the behavior that I observed - > ...
6 years, 4 months ago (2014-08-19 05:52:44 UTC) #14
Nikhil
Awesome! Let's take "page" parameter OOP then :) I'm going to submit this now. Thank ...
6 years, 4 months ago (2014-08-19 06:00:36 UTC) #15
Nikhil
The CQ bit was checked by n.bansal@samsung.com
6 years, 4 months ago (2014-08-19 06:01:39 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/n.bansal@samsung.com/476733003/60001
6 years, 4 months ago (2014-08-19 06:02:46 UTC) #17
commit-bot: I haz the power
6 years, 4 months ago (2014-08-19 09:52:18 UTC) #18
Message was sent while issue was closed.
Committed patchset #4 (60001) as 290529

Powered by Google App Engine
This is Rietveld 408576698