|
|
DescriptionPDF: 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 #
Messages
Total messages: 37 (25 generated)
Description was changed from ========== PDF: Add shortcut to toggle fit-to-{page,width}. ctrl + \ BUG=636515 ========== to ========== PDF: Add shortcut to toggle fit-to-{page,width}. ctrl + \ BUG=636515 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
The CQ bit was checked by thestig@chromium.org to run a CQ dry run
thestig@chromium.org changed reviewers: + raymes@chromium.org
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2283803003/diff/1/chrome/browser/resources/pd... File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/2283803003/diff/1/chrome/browser/resources/pd... chrome/browser/resources/pdf/pdf.js:400: if (e.ctrlKey) { Do you think it might be confusing that this might result in something that is different to what would happen by clicking the ftw/ftp button? The result of the button actually depends on the last state of the button as opposed to the current state of the zoom (I'd be ok if that changed though).
https://codereview.chromium.org/2283803003/diff/1/chrome/browser/resources/pd... File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/2283803003/diff/1/chrome/browser/resources/pd... chrome/browser/resources/pdf/pdf.js:400: if (e.ctrlKey) { On 2016/08/29 03:35:09, raymes wrote: > Do you think it might be confusing that this might result in something that is > different to what would happen by clicking the ftw/ftp button? The result of the > button actually depends on the last state of the button as opposed to the > current state of the zoom (I'd be ok if that changed though). Probably. I'll take a closer look tomorrow.
The CQ bit was checked by thestig@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
See patch set 2. https://codereview.chromium.org/2283803003/diff/1/chrome/browser/resources/pd... File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/2283803003/diff/1/chrome/browser/resources/pd... chrome/browser/resources/pdf/pdf.js:400: if (e.ctrlKey) { On 2016/08/29 05:33:54, Lei Zhang wrote: > On 2016/08/29 03:35:09, raymes wrote: > > Do you think it might be confusing that this might result in something that is > > different to what would happen by clicking the ftw/ftp button? The result of > the > > button actually depends on the last state of the button as opposed to the > > current state of the zoom (I'd be ok if that changed though). > > Probably. I'll take a closer look tomorrow. Today is tomorrow somewhere in the world.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: closure_compilation on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/closure_compila...)
https://codereview.chromium.org/2283803003/diff/20001/chrome/browser/resource... File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/2283803003/diff/20001/chrome/browser/resource... chrome/browser/resources/pdf/pdf.js:406: this.zoomToolbar_.toggleFitButtonUIState(); Could we just call fitToggle on the zoom toolbar? I know it will be calling back out to here, but maybe it makes the state tracking more simple? WDYT?
Patchset #3 (id:40001) has been deleted
The CQ bit was checked by thestig@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by thestig@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by thestig@chromium.org to run a CQ dry run
Took a few tries... https://codereview.chromium.org/2283803003/diff/20001/chrome/browser/resource... File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/2283803003/diff/20001/chrome/browser/resource... chrome/browser/resources/pdf/pdf.js:406: this.zoomToolbar_.toggleFitButtonUIState(); On 2016/09/05 03:21:40, raymes wrote: > Could we just call fitToggle on the zoom toolbar? I know it will be calling back > out to here, but maybe it makes the state tracking more simple? WDYT? Done.
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: closure_compilation on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/closure_compila...)
Thanks - we actually do have a test for this element in material_elements_test.js. Perhaps we can test this function from there? (Sorry I didn't mention this before, the thought only just came to me that we might have a test for this).
On 2016/09/07 05:39:10, raymes wrote: > Thanks - we actually do have a test for this element in > material_elements_test.js. Perhaps we can test this function from there? (Sorry > I didn't mention this before, the thought only just came to me that we might > have a test for this). Done.
The CQ bit was checked by thestig@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lgtm thanks!
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by thestig@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #7 (id:140001)
Message was sent while issue was closed.
Description was changed from ========== PDF: Add shortcut to toggle fit-to-{page,width}. ctrl + \ BUG=636515 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== 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} ==========
Message was sent while issue was closed.
Patchset 7 (id:??) landed as https://crrev.com/b9e8d9e97bd881fff98082b4490483926fa84aed Cr-Commit-Position: refs/heads/master@{#416876} |