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

Issue 2630583002: Add setting to isolate zoom changes by default. (Closed)

Created:
3 years, 11 months ago by Kevin McNee
Modified:
3 years, 5 months ago
Reviewers:
wjmaclean, Dan Beam
CC:
chromium-reviews, dbeam+watch-options_chromium.org, wjmaclean, michaelpg+watch-options_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add setting to isolate zoom changes by default. WIP DO NOT COMMIT Design doc: https://docs.google.com/document/d/1ZOrfAApAevLzTmzlQgWuAIZ7FOMH2ojxMffqMHM4I0U/edit?usp=sharing BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Patch Set 1 #

Patch Set 2 : Fix failures. #

Patch Set 3 : Rebase and Disable zoom scope checkbox on guest options. #

Patch Set 4 : Add more tests. #

Total comments: 19

Patch Set 5 : Refactor zoom prefs. #

Patch Set 6 : Remove knowledge of tabs from content. #

Patch Set 7 : Rebase and resolve conflicts. #

Patch Set 8 : Change ZoomPrefsDelegate usage in ZoomController. #

Patch Set 9 : Clarify names. #

Patch Set 10 : Use code review comments for questions instead of TODOs. #

Total comments: 22

Patch Set 11 : Rebase and reformat. #

Patch Set 12 : Emit usage of the zoom scope setting to UMA. #

Patch Set 13 : Misc changes. #

Patch Set 14 : Switch to new settings page. #

Patch Set 15 : Rebase and resolve conflicts. #

Patch Set 16 : Missing import. #

Patch Set 17 : ... and tell closure_compiler. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1223 lines, -106 lines) Patch
M chrome/app/settings_strings.grdp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/settings/site_settings/compiled_resources2.gyp 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 chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/site_settings/zoom_levels.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +25 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/site_settings/zoom_levels.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +53 lines, -2 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/tabs/tab_strip_model.cc View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/tabs/tab_strip_model_unittest.cc View 1 2 3 4 5 3 chunks +38 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/settings/site_settings_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/settings/site_settings_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +55 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +33 lines, -0 lines 0 comments Download
M chrome/browser/ui/zoom/chrome_zoom_level_otr_delegate.h View 1 2 3 4 5 6 7 8 2 chunks +21 lines, -4 lines 0 comments Download
M chrome/browser/ui/zoom/chrome_zoom_level_otr_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +43 lines, -1 line 0 comments Download
M chrome/browser/ui/zoom/chrome_zoom_level_prefs.h View 1 2 3 4 5 6 7 8 3 chunks +22 lines, -15 lines 0 comments Download
M chrome/browser/ui/zoom/chrome_zoom_level_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +46 lines, -52 lines 0 comments Download
A chrome/browser/ui/zoom/chrome_zoom_prefs_helper.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/ui/zoom/chrome_zoom_prefs_helper.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +90 lines, -0 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +186 lines, -0 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +194 lines, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +25 lines, -1 line 0 comments Download
M chrome/test/data/webui/settings/zoom_levels_tests.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +40 lines, -1 line 0 comments Download
M components/zoom/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/zoom/zoom_controller.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +30 lines, -0 lines 0 comments Download
M components/zoom/zoom_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +149 lines, -16 lines 0 comments Download
A components/zoom/zoom_prefs_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +28 lines, -0 lines 0 comments Download
M content/browser/host_zoom_map_impl.h View 1 2 3 4 5 2 chunks +2 lines, -8 lines 0 comments Download
M content/public/browser/host_zoom_map.h View 1 2 3 4 5 1 chunk +11 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 96 (79 generated)
Kevin McNee
3 years, 11 months ago (2017-01-12 20:57:46 UTC) #8
wjmaclean
Some initial thoughts ... https://codereview.chromium.org/2630583002/diff/60001/chrome/browser/ui/tabs/tab_strip_model.cc File chrome/browser/ui/tabs/tab_strip_model.cc (right): https://codereview.chromium.org/2630583002/diff/60001/chrome/browser/ui/tabs/tab_strip_model.cc#newcode345 chrome/browser/ui/tabs/tab_strip_model.cc:345: old_contents->OnReplaced(new_contents); Can we perhaps re-name ...
3 years, 11 months ago (2017-01-19 21:09:06 UTC) #21
Kevin McNee
https://codereview.chromium.org/2630583002/diff/60001/chrome/browser/ui/zoom/chrome_zoom_level_otr_delegate.cc File chrome/browser/ui/zoom/chrome_zoom_level_otr_delegate.cc (right): https://codereview.chromium.org/2630583002/diff/60001/chrome/browser/ui/zoom/chrome_zoom_level_otr_delegate.cc#newcode21 chrome/browser/ui/zoom/chrome_zoom_level_otr_delegate.cc:21: if (!parent_zoom_level_prefs_) On 2017/01/19 21:09:05, wjmaclean wrote: > Is ...
3 years, 11 months ago (2017-01-25 16:41:53 UTC) #24
Kevin McNee
content no longer knows about tabs. Unfortunately, HostZoomMap's current public interface is not enough to ...
3 years, 11 months ago (2017-01-25 23:42:56 UTC) #27
Kevin McNee
https://codereview.chromium.org/2630583002/diff/60001/components/zoom/zoom_controller.cc File components/zoom/zoom_controller.cc (right): https://codereview.chromium.org/2630583002/diff/60001/components/zoom/zoom_controller.cc#newcode55 components/zoom/zoom_controller.cc:55: base::Unretained(this))); On 2017/01/19 21:09:05, wjmaclean wrote: > Is this ...
3 years, 10 months ago (2017-02-01 20:29:40 UTC) #36
Kevin McNee
https://codereview.chromium.org/2630583002/diff/60001/components/zoom/zoom_controller.cc File components/zoom/zoom_controller.cc (right): https://codereview.chromium.org/2630583002/diff/60001/components/zoom/zoom_controller.cc#newcode46 components/zoom/zoom_controller.cc:46: // TODO Should we use GetStoragePartition with the SiteInstance? ...
3 years, 10 months ago (2017-02-03 20:11:54 UTC) #37
Kevin McNee
https://codereview.chromium.org/2630583002/diff/60001/chrome/browser/ui/zoom/chrome_zoom_level_prefs.cc File chrome/browser/ui/zoom/chrome_zoom_level_prefs.cc (right): https://codereview.chromium.org/2630583002/diff/60001/chrome/browser/ui/zoom/chrome_zoom_level_prefs.cc#newcode104 chrome/browser/ui/zoom/chrome_zoom_level_prefs.cc:104: bool default_per_origin = true; On 2017/01/19 21:09:05, wjmaclean wrote: ...
3 years, 10 months ago (2017-02-03 22:51:34 UTC) #48
Kevin McNee
Switching to using code review comments for questions instead of using TODOs. https://codereview.chromium.org/2630583002/diff/60001/components/zoom/zoom_controller.h File components/zoom/zoom_controller.h ...
3 years, 10 months ago (2017-02-03 23:17:20 UTC) #49
wjmaclean
See my answers to your questions. We should add a reviewer for the UI change. ...
3 years, 10 months ago (2017-02-06 16:09:07 UTC) #54
Kevin McNee
https://codereview.chromium.org/2630583002/diff/180001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2630583002/diff/180001/chrome/app/generated_resources.grd#newcode11310 chrome/app/generated_resources.grd:11310: + When you change a page's zoom, remember the ...
3 years, 10 months ago (2017-02-06 18:26:12 UTC) #55
wjmaclean
https://codereview.chromium.org/2630583002/diff/180001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2630583002/diff/180001/chrome/app/generated_resources.grd#newcode11310 chrome/app/generated_resources.grd:11310: + When you change a page's zoom, remember the ...
3 years, 10 months ago (2017-02-06 18:48:38 UTC) #56
Kevin McNee
Hello, dbeam@. We are looking to provide a setting to allow users to enable per-tab ...
3 years, 10 months ago (2017-02-09 16:59:09 UTC) #59
Dan Beam
On 2017/02/09 16:59:09, Kevin McNee wrote: > Hello, dbeam@. > > We are looking to ...
3 years, 10 months ago (2017-02-10 04:02:11 UTC) #60
Kevin McNee
On 2017/02/10 04:02:11, Dan Beam wrote: > On 2017/02/09 16:59:09, Kevin McNee wrote: > > ...
3 years, 10 months ago (2017-02-14 16:18:54 UTC) #61
Dan Beam
On 2017/02/14 16:18:54, Kevin McNee wrote: > On 2017/02/10 04:02:11, Dan Beam wrote: > > ...
3 years, 10 months ago (2017-02-17 02:35:38 UTC) #70
Kevin McNee
On 2017/02/17 02:35:38, Dan Beam wrote: > On 2017/02/14 16:18:54, Kevin McNee wrote: > > ...
3 years, 10 months ago (2017-02-23 21:43:26 UTC) #95
Dan Beam
3 years, 9 months ago (2017-03-10 23:16:28 UTC) #96
fyi: I'm not actively reviewing this code until it's decided by somebody in
product that this feature is desired in Chrome

Powered by Google App Engine
This is Rietveld 408576698