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

Issue 2283803003: PDF: Add shortcut to toggle fit-to-{page,width}. (Closed)

Created:
4 years, 3 months ago by Lei Zhang
Modified:
4 years, 3 months ago
Reviewers:
raymes
CC:
chromium-reviews, arv+watch_chromium.org, wjmaclean
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PDF: Add shortcut to toggle fit-to-{page,width}. ctrl + \ BUG=636515 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/b9e8d9e97bd881fff98082b4490483926fa84aed Cr-Commit-Position: refs/heads/master@{#416876}

Patch Set 1 #

Total comments: 3

Patch Set 2 : sync button state #

Total comments: 2

Patch Set 3 : Just fitToggle() #

Patch Set 4 : Remove dead code #

Patch Set 5 : Simplify more; nits #

Patch Set 6 : JS is hard #

Patch Set 7 : Extend testZoomToolbarToggle #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -4 lines) Patch
M chrome/browser/resources/pdf/elements/viewer-zoom-toolbar/viewer-zoom-toolbar.js View 1 2 3 4 5 3 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/resources/pdf/pdf.js View 1 2 3 4 3 chunks +12 lines, -4 lines 0 comments Download
M chrome/test/data/pdf/material_elements_test.js View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (25 generated)
Lei Zhang
4 years, 3 months ago (2016-08-26 20:44:38 UTC) #4
raymes
https://codereview.chromium.org/2283803003/diff/1/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/2283803003/diff/1/chrome/browser/resources/pdf/pdf.js#newcode400 chrome/browser/resources/pdf/pdf.js:400: if (e.ctrlKey) { Do you think it might be ...
4 years, 3 months ago (2016-08-29 03:35:09 UTC) #8
Lei Zhang
https://codereview.chromium.org/2283803003/diff/1/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/2283803003/diff/1/chrome/browser/resources/pdf/pdf.js#newcode400 chrome/browser/resources/pdf/pdf.js:400: if (e.ctrlKey) { On 2016/08/29 03:35:09, raymes wrote: > ...
4 years, 3 months ago (2016-08-29 05:33:54 UTC) #9
Lei Zhang
See patch set 2. https://codereview.chromium.org/2283803003/diff/1/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/2283803003/diff/1/chrome/browser/resources/pdf/pdf.js#newcode400 chrome/browser/resources/pdf/pdf.js:400: if (e.ctrlKey) { On 2016/08/29 ...
4 years, 3 months ago (2016-09-02 02:17:52 UTC) #12
raymes
https://codereview.chromium.org/2283803003/diff/20001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/2283803003/diff/20001/chrome/browser/resources/pdf/pdf.js#newcode406 chrome/browser/resources/pdf/pdf.js:406: this.zoomToolbar_.toggleFitButtonUIState(); Could we just call fitToggle on the zoom ...
4 years, 3 months ago (2016-09-05 03:21:40 UTC) #15
Lei Zhang
Took a few tries... https://codereview.chromium.org/2283803003/diff/20001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/2283803003/diff/20001/chrome/browser/resources/pdf/pdf.js#newcode406 chrome/browser/resources/pdf/pdf.js:406: this.zoomToolbar_.toggleFitButtonUIState(); On 2016/09/05 03:21:40, raymes ...
4 years, 3 months ago (2016-09-07 00:39:09 UTC) #22
raymes
Thanks - we actually do have a test for this element in material_elements_test.js. Perhaps we ...
4 years, 3 months ago (2016-09-07 05:39:10 UTC) #26
Lei Zhang
On 2016/09/07 05:39:10, raymes wrote: > Thanks - we actually do have a test for ...
4 years, 3 months ago (2016-09-07 06:27:17 UTC) #27
raymes
lgtm thanks!
4 years, 3 months ago (2016-09-07 06:28:03 UTC) #30
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/2283803003/140001
4 years, 3 months ago (2016-09-07 07:49:08 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 3 months ago (2016-09-07 07:53:07 UTC) #35
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 07:55:02 UTC) #37
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b9e8d9e97bd881fff98082b4490483926fa84aed
Cr-Commit-Position: refs/heads/master@{#416876}

Powered by Google App Engine
This is Rietveld 408576698