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

Issue 1225183002: Font size in DomDistiller prefs syncs with local scaling (Closed)

Created:
5 years, 5 months ago by wychen
Modified:
5 years, 2 months ago
Reviewers:
mdjones, nyquist
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Font size in DomDistiller prefs syncs with local scaling The font size in DomDistiller preference was linked with accessibility scaling. Now it links with local scaling, which can also be adjusted by pinch-to-zoom gesture. The local scaling syncs across tabs. This local scaling doesn't sync across devices by design. BUG=445632, 464822 TEST=browser_tests --gtest_filter="DomDistiller*" Committed: https://crrev.com/30b0ae4316cd7a5eeabc9201342c7b9903978baf Cr-Commit-Position: refs/heads/master@{#350976}

Patch Set 1 #

Patch Set 2 : keep focus when useFontScaling() is called, add tests #

Total comments: 4

Patch Set 3 : double <-> string #

Patch Set 4 : rebase #

Patch Set 5 : fix for rebasing #

Total comments: 8

Patch Set 6 : address tommy's comments #

Patch Set 7 : merge master #

Patch Set 8 : fix out-of-order execution of JS #

Patch Set 9 : fix unittest #

Patch Set 10 : fix tests #

Patch Set 11 : fix test init #

Patch Set 12 : rebase #

Patch Set 13 : add pref persistence test #

Patch Set 14 : fix crash and font scaling parsing #

Patch Set 15 : merge master again #

Total comments: 2

Patch Set 16 : match android slider min/max #

Patch Set 17 : merge master again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+448 lines, -47 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/DistilledPagePrefsView.java View 9 chunks +12 lines, -22 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/dom_distiller/DistilledPagePrefsTest.java View 1 2 3 4 5 6 7 8 9 5 chunks +77 lines, -0 lines 0 comments Download
M chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +95 lines, -5 lines 0 comments Download
M components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DistilledPagePrefs.java View 1 2 3 4 chunks +18 lines, -0 lines 0 comments Download
M components/dom_distiller/content/browser/dom_distiller_viewer_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +13 lines, -4 lines 0 comments Download
M components/dom_distiller/core/distilled_page_prefs.h View 3 chunks +9 lines, -0 lines 0 comments Download
M components/dom_distiller/core/distilled_page_prefs.cc View 4 chunks +30 lines, -0 lines 0 comments Download
M components/dom_distiller/core/distilled_page_prefs_android.h View 2 chunks +3 lines, -0 lines 0 comments Download
M components/dom_distiller/core/distilled_page_prefs_android.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +17 lines, -0 lines 0 comments Download
M components/dom_distiller/core/distilled_page_prefs_unittests.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +59 lines, -1 line 0 comments Download
M components/dom_distiller/core/dom_distiller_request_view_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -1 line 0 comments Download
M components/dom_distiller/core/dom_distiller_request_view_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +12 lines, -2 lines 0 comments Download
M components/dom_distiller/core/javascript/dom_distiller_viewer.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +42 lines, -11 lines 0 comments Download
M components/dom_distiller/core/url_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M components/dom_distiller/core/url_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M components/dom_distiller/core/viewer.h View 1 chunk +4 lines, -1 line 0 comments Download
M components/dom_distiller/core/viewer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -0 lines 0 comments Download
M components/test/data/dom_distiller/pinch_tester.js View 1 2 3 4 5 2 chunks +45 lines, -0 lines 0 comments Download

Messages

Total messages: 55 (24 generated)
wychen
PTAL
5 years, 5 months ago (2015-07-09 01:41:27 UTC) #2
cjhopman
https://codereview.chromium.org/1225183002/diff/20001/components/dom_distiller/content/dom_distiller_viewer_source.cc File components/dom_distiller/content/dom_distiller_viewer_source.cc (right): https://codereview.chromium.org/1225183002/diff/20001/components/dom_distiller/content/dom_distiller_viewer_source.cc#newcode234 components/dom_distiller/content/dom_distiller_viewer_source.cc:234: ss << path.substr(strlen(kViewerSaveFontScalingPath)); This should probably use base::StringToDouble. https://codereview.chromium.org/1225183002/diff/20001/components/dom_distiller/core/viewer.cc ...
5 years, 5 months ago (2015-07-17 20:28:04 UTC) #3
wychen
https://codereview.chromium.org/1225183002/diff/20001/components/dom_distiller/content/dom_distiller_viewer_source.cc File components/dom_distiller/content/dom_distiller_viewer_source.cc (right): https://codereview.chromium.org/1225183002/diff/20001/components/dom_distiller/content/dom_distiller_viewer_source.cc#newcode234 components/dom_distiller/content/dom_distiller_viewer_source.cc:234: ss << path.substr(strlen(kViewerSaveFontScalingPath)); On 2015/07/17 20:28:04, cjhopman wrote: > ...
5 years, 4 months ago (2015-07-31 21:03:37 UTC) #4
nyquist
https://codereview.chromium.org/1225183002/diff/80001/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc File components/dom_distiller/content/browser/dom_distiller_viewer_source.cc (right): https://codereview.chromium.org/1225183002/diff/80001/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc#newcode234 components/dom_distiller/content/browser/dom_distiller_viewer_source.cc:234: base::StringToDouble( Should we do something if base::StringToDouble returns false? ...
5 years, 4 months ago (2015-08-11 06:27:57 UTC) #5
wychen
https://codereview.chromium.org/1225183002/diff/80001/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc File components/dom_distiller/content/browser/dom_distiller_viewer_source.cc (right): https://codereview.chromium.org/1225183002/diff/80001/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc#newcode234 components/dom_distiller/content/browser/dom_distiller_viewer_source.cc:234: base::StringToDouble( On 2015/08/11 06:27:56, nyquist wrote: > Should we ...
5 years, 3 months ago (2015-08-31 21:47:39 UTC) #6
nyquist
lgtm
5 years, 3 months ago (2015-08-31 21:48:32 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1225183002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1225183002/140001
5 years, 3 months ago (2015-08-31 21:59:29 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/105750)
5 years, 3 months ago (2015-08-31 22:10:35 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1225183002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1225183002/160001
5 years, 3 months ago (2015-08-31 22:41:28 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_compile_dbg/builds/54655)
5 years, 3 months ago (2015-08-31 22:57:56 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1225183002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1225183002/180001
5 years, 3 months ago (2015-09-01 00:14:23 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/97543)
5 years, 3 months ago (2015-09-01 00:44:45 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1225183002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1225183002/200001
5 years, 3 months ago (2015-09-01 00:58:45 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-01 04:52:40 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1225183002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1225183002/200001
5 years, 2 months ago (2015-09-23 23:58:52 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/101132) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-09-24 00:03:28 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1225183002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1225183002/240001
5 years, 2 months ago (2015-09-24 10:47:53 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/57055)
5 years, 2 months ago (2015-09-24 11:42:04 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1225183002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1225183002/260001
5 years, 2 months ago (2015-09-24 23:08:59 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/73566) ios_rel_device_ninja on ...
5 years, 2 months ago (2015-09-24 23:12:19 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1225183002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1225183002/280001
5 years, 2 months ago (2015-09-24 23:40:38 UTC) #38
wychen
+mdjones Tommy, can you have another look? The last patch set you reviewed might be ...
5 years, 2 months ago (2015-09-25 00:14:09 UTC) #40
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-09-25 01:23:00 UTC) #42
mdjones
Looks good! Only one issue I think needs addressing. https://codereview.chromium.org/1225183002/diff/280001/components/dom_distiller/core/javascript/dom_distiller_viewer.js File components/dom_distiller/core/javascript/dom_distiller_viewer.js (right): https://codereview.chromium.org/1225183002/diff/280001/components/dom_distiller/core/javascript/dom_distiller_viewer.js#newcode250 components/dom_distiller/core/javascript/dom_distiller_viewer.js:250: ...
5 years, 2 months ago (2015-09-25 22:26:28 UTC) #43
wychen
https://codereview.chromium.org/1225183002/diff/280001/components/dom_distiller/core/javascript/dom_distiller_viewer.js File components/dom_distiller/core/javascript/dom_distiller_viewer.js (right): https://codereview.chromium.org/1225183002/diff/280001/components/dom_distiller/core/javascript/dom_distiller_viewer.js#newcode250 components/dom_distiller/core/javascript/dom_distiller_viewer.js:250: clampedScale = Math.max(0.4, Math.min(2.5, fontSizeAnchor * slowedScale)); On 2015/09/25 ...
5 years, 2 months ago (2015-09-25 23:31:43 UTC) #44
mdjones
lgtm
5 years, 2 months ago (2015-09-25 23:49:29 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1225183002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1225183002/300001
5 years, 2 months ago (2015-09-26 01:01:01 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/102809) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-09-26 01:02:35 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1225183002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1225183002/320001
5 years, 2 months ago (2015-09-26 01:11:41 UTC) #53
commit-bot: I haz the power
Committed patchset #17 (id:320001)
5 years, 2 months ago (2015-09-26 02:54:02 UTC) #54
commit-bot: I haz the power
5 years, 2 months ago (2015-09-26 02:54:54 UTC) #55
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/30b0ae4316cd7a5eeabc9201342c7b9903978baf
Cr-Commit-Position: refs/heads/master@{#350976}

Powered by Google App Engine
This is Rietveld 408576698