|
|
Created:
3 years, 9 months ago by Kevin McNee Modified:
3 years, 8 months ago CC:
chromium-reviews Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionPDF Viewer pinch zoom: Update state for zoom in following a zoom out.
If we pinch zoom out, we need to update the state we use to calculate
the translation of the PDF content if we proceed to zoom in during
the same gesture.
BUG=705586
Review-Url: https://codereview.chromium.org/2781613002
Cr-Commit-Position: refs/heads/master@{#460758}
Committed: https://chromium.googlesource.com/chromium/src/+/60f6a1eeebb81e29c0a6b351ed2e3c432787fbc4
Patch Set 1 #
Total comments: 2
Patch Set 2 : Remove redundant code and clarify variable. #
Messages
Total messages: 33 (26 generated)
The CQ bit was checked by mcnee@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...
Description was changed from ========== PDF Viewer pinch zoom: Update state for zoom in following a zoom out. If we pinch zoom out, we need to update the state we use to calculate the translation of the PDF content if we proceed to zoom in during the same gesture. BUG=705586 ========== to ========== PDF Viewer pinch zoom: Update state for zoom in following a zoom out. If we pinch zoom out, we need to update the state we use to calculate the translation of the PDF content if we proceed to zoom in during the same gesture. BUG=705586 ==========
mcnee@chromium.org changed reviewers: + bokan@chromium.org, thestig@chromium.org
Hello, thestig. I have another fix for PDF pinch zooming. Could you take a look? Again, adding bokan for the pinch zooming logic.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm % comment https://codereview.chromium.org/2781613002/diff/1/pdf/out_of_process_instance.cc File pdf/out_of_process_instance.cc (right): https://codereview.chromium.org/2781613002/diff/1/pdf/out_of_process_instance... pdf/out_of_process_instance.cc:504: starting_scroll_offset_ = scroll_offset; These two variables are the offset/zoom since last raster, right? Please update the comment on starting_scroll_offset_ to make that more clear (and add a similar comment on initial_zoom_ratio_) if that's right.
lgtm
https://codereview.chromium.org/2781613002/diff/1/pdf/out_of_process_instance.cc File pdf/out_of_process_instance.cc (right): https://codereview.chromium.org/2781613002/diff/1/pdf/out_of_process_instance... pdf/out_of_process_instance.cc:504: starting_scroll_offset_ = scroll_offset; On 2017/03/28 14:26:26, bokan wrote: > These two variables are the offset/zoom since last raster, right? Please update > the comment on starting_scroll_offset_ to make that more clear (and add a > similar comment on initial_zoom_ratio_) if that's right. So it turns out that |initial_zoom_ratio_| is redundant since |zoom_| gives us all the information we need, so I've gone ahead and removed it entirely. Also, I've renamed |starting_scroll_offset_| to |scroll_offset_at_last_raster_| to better describe its purpose. Still LGTM?
The CQ bit was checked by mcnee@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 unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_comp...)
thanks, lgtm
The CQ bit was checked by mcnee@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 unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by mcnee@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 unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by mcnee@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 unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by mcnee@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from thestig@chromium.org Link to the patchset: https://codereview.chromium.org/2781613002/#ps20001 (title: "Remove redundant code and clarify variable.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 20001, "attempt_start_ts": 1490883895603330, "parent_rev": "6f3586e7de633c64aa318bdcf281f2d9edc4d93f", "commit_rev": "60f6a1eeebb81e29c0a6b351ed2e3c432787fbc4"}
Message was sent while issue was closed.
Description was changed from ========== PDF Viewer pinch zoom: Update state for zoom in following a zoom out. If we pinch zoom out, we need to update the state we use to calculate the translation of the PDF content if we proceed to zoom in during the same gesture. BUG=705586 ========== to ========== PDF Viewer pinch zoom: Update state for zoom in following a zoom out. If we pinch zoom out, we need to update the state we use to calculate the translation of the PDF content if we proceed to zoom in during the same gesture. BUG=705586 Review-Url: https://codereview.chromium.org/2781613002 Cr-Commit-Position: refs/heads/master@{#460758} Committed: https://chromium.googlesource.com/chromium/src/+/60f6a1eeebb81e29c0a6b351ed2e... ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/60f6a1eeebb81e29c0a6b351ed2e... |