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

Issue 2666043002: Try to rename LayoutDistanceType enum values for clarity and consistency. (Closed)

Created:
3 years, 10 months ago by Peter Kasting
Modified:
3 years, 10 months ago
Reviewers:
Elly Fong-Jones
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Try to rename LayoutDistanceType enum values for clarity and consistency. BUTTON_[H,V]EDGE_MARGIN_NEW -> DIALOG_BUTTON_MARGIN Combined these two (which are the same in both pre-Harmony and Harmony) into one. Eliminated NEW (was unfortunate even in the original pre-Harmony name and is especially misleading now). Tried to choose a naming structure for parallelism with PANEL_CONTENT_MARGIN (see below): the dialog-scope margin around buttons. CHECKBOX_INDENT -> SUBSECTION_HORIZONTAL_INDENT Added HORIZONTAL to match other names that are specific to horizontal vs vertical. Changed to SUBSECTION based on https://codereview.chromium.org/2654123004/ . PANEL_[HORIZ,VERT]_MARGIN -> PANEL_CONTENT_MARGIN Again, combined two always-the same constants into one. UNRELATED_CONTROL_LARGE_VERTICAL_SPACING -> UNRELATED_CONTROL_VERTICAL_SPACING_LARGE Moved "large" to the end so this would sort alphabetically by the non-LARGE version. I also sorted the declarations/switch statements for these into alphabetical order, and tried to improve some comments. In a future cleanup, I'd like to change existing uses of the old layout constants to these values (which wiill help with Harmonization in general) and then remove the old constants, which will eliminate things like name mismatches between the old and new names. BUG=none TEST=none Review-Url: https://codereview.chromium.org/2666043002 Cr-Commit-Position: refs/heads/master@{#447425} Committed: https://chromium.googlesource.com/chromium/src/+/ab0b37a4184cccbdd9ffaaaf5e95e56b415a0fbf

Patch Set 1 #

Patch Set 2 : Self-review #

Patch Set 3 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -53 lines) Patch
M chrome/browser/ui/views/content_setting_bubble_contents.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/cookie_info_view.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/harmony/harmony_layout_delegate.cc View 2 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/harmony/layout_delegate.h View 1 2 3 chunks +25 lines, -26 lines 0 comments Download
M chrome/browser/ui/views/harmony/layout_delegate.cc View 1 1 chunk +6 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/layout_utils.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/login_view.cc View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (11 generated)
Peter Kasting
3 years, 10 months ago (2017-01-31 07:42:28 UTC) #5
Elly Fong-Jones
lgtm
3 years, 10 months ago (2017-01-31 15:30:11 UTC) #8
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/2666043002/40001
3 years, 10 months ago (2017-01-31 21:44:05 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/356354)
3 years, 10 months ago (2017-01-31 22:01:42 UTC) #12
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/2666043002/40001
3 years, 10 months ago (2017-02-01 01:47:07 UTC) #14
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 02:41:52 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/ab0b37a4184cccbdd9ffaaaf5e95...

Powered by Google App Engine
This is Rietveld 408576698