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

Issue 2675983003: views::Separator cleanup. (Closed)

Created:
3 years, 10 months ago by Evan Stade
Modified:
3 years, 10 months ago
Reviewers:
tdanderson, sky
CC:
chromium-reviews, yusukes+watch_chromium.org, tfarina, shuchen+watch_chromium.org, nona+watch_chromium.org, oshima+watch_chromium.org, kalyank
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

views::Separator cleanup. - Make views::Separators always draw an integral number of pixels (round down for fractional scale factors). - Improve clarity of "size", "horizontal", and "vertical" in views::Separator by removing enum and using terms "height" and "width" - Improve clarity of ash tray constants. BUG=688505 Review-Url: https://codereview.chromium.org/2675983003 Cr-Commit-Position: refs/heads/master@{#451088} Committed: https://chromium.googlesource.com/chromium/src/+/4a3ae74ccfbe8470cd8343ad7e93ed27156171de

Patch Set 1 #

Total comments: 1

Patch Set 2 : update docs #

Total comments: 21

Patch Set 3 : set orientation and size at the same time #

Patch Set 4 : setprefheight/width #

Patch Set 5 : fix another callsite #

Total comments: 7

Patch Set 6 : no setpreferred anything #

Patch Set 7 : SetPreferredHeight only #

Total comments: 2

Patch Set 8 : . #

Patch Set 9 : test patch (do not commit) #

Patch Set 10 : revert test change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -115 lines) Patch
M ash/common/system/chromeos/audio/volume_view.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M ash/common/system/chromeos/ime_menu/ime_menu_tray.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/system/chromeos/palette/palette_tray.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M ash/common/system/tray/special_popup_row.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M ash/common/system/tray/system_tray_unittest.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M ash/common/system/tray/tray_background_view.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M ash/common/system/tray/tray_constants.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -7 lines 0 comments Download
M ash/common/system/tray/tray_constants.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -3 lines 0 comments Download
M ash/common/system/tray/tray_details_view.cc View 1 2 3 3 chunks +4 lines, -7 lines 0 comments Download
M ash/common/system/tray/tray_popup_utils.cc View 1 2 3 6 4 chunks +10 lines, -15 lines 0 comments Download
M ash/common/system/user/user_view.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/first_run/try_chrome_dialog_view.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/content_setting_bubble_contents.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_install_dialog_view.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/find_bar_view.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 5 6 7 8 9 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/website_settings/website_settings_popup_view.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/separator.h View 1 2 3 4 5 6 7 1 chunk +8 lines, -19 lines 0 comments Download
M ui/views/controls/separator.cc View 1 2 3 4 5 6 7 9 2 chunks +19 lines, -31 lines 0 comments Download

Messages

Total messages: 84 (46 generated)
Evan Stade
+sky for ui/views +tdanderson for ash/ https://codereview.chromium.org/2675983003/diff/1/ash/common/system/tray/tray_popup_utils.cc File ash/common/system/tray/tray_popup_utils.cc (left): https://codereview.chromium.org/2675983003/diff/1/ash/common/system/tray/tray_popup_utils.cc#oldcode333 ash/common/system/tray/tray_popup_utils.cc:333: new views::Separator(views::Separator::HORIZONTAL); This ...
3 years, 10 months ago (2017-02-03 20:38:19 UTC) #5
sky
https://codereview.chromium.org/2675983003/diff/20001/ui/views/controls/separator.cc File ui/views/controls/separator.cc (right): https://codereview.chromium.org/2675983003/diff/20001/ui/views/controls/separator.cc#newcode56 ui/views/controls/separator.cc:56: // The separator fills its bounds, but avoid filling ...
3 years, 10 months ago (2017-02-03 23:49:45 UTC) #8
Evan Stade
https://codereview.chromium.org/2675983003/diff/20001/ui/views/controls/separator.cc File ui/views/controls/separator.cc (right): https://codereview.chromium.org/2675983003/diff/20001/ui/views/controls/separator.cc#newcode56 ui/views/controls/separator.cc:56: // The separator fills its bounds, but avoid filling ...
3 years, 10 months ago (2017-02-06 16:31:27 UTC) #9
sky
https://codereview.chromium.org/2675983003/diff/20001/ui/views/controls/separator.cc File ui/views/controls/separator.cc (right): https://codereview.chromium.org/2675983003/diff/20001/ui/views/controls/separator.cc#newcode56 ui/views/controls/separator.cc:56: // The separator fills its bounds, but avoid filling ...
3 years, 10 months ago (2017-02-06 17:59:21 UTC) #10
Evan Stade
https://codereview.chromium.org/2675983003/diff/20001/ui/views/controls/separator.cc File ui/views/controls/separator.cc (right): https://codereview.chromium.org/2675983003/diff/20001/ui/views/controls/separator.cc#newcode56 ui/views/controls/separator.cc:56: // The separator fills its bounds, but avoid filling ...
3 years, 10 months ago (2017-02-06 19:03:29 UTC) #11
tdanderson
ash/ LGTM with the comments below addressed. https://codereview.chromium.org/2675983003/diff/20001/ash/common/system/tray/tray_details_view.cc File ash/common/system/tray/tray_details_view.cc (left): https://codereview.chromium.org/2675983003/diff/20001/ash/common/system/tray/tray_details_view.cc#oldcode351 ash/common/system/tray/tray_details_view.cc:351: kTitleRowProgressBarHeight - ...
3 years, 10 months ago (2017-02-06 21:19:06 UTC) #12
Evan Stade
https://codereview.chromium.org/2675983003/diff/20001/ash/common/system/tray/tray_details_view.cc File ash/common/system/tray/tray_details_view.cc (left): https://codereview.chromium.org/2675983003/diff/20001/ash/common/system/tray/tray_details_view.cc#oldcode351 ash/common/system/tray/tray_details_view.cc:351: kTitleRowProgressBarHeight - kSeparatorWidth, 0, 0, 0)); On 2017/02/06 21:19:06, ...
3 years, 10 months ago (2017-02-06 21:39:17 UTC) #13
sky
https://codereview.chromium.org/2675983003/diff/20001/ui/views/controls/separator.cc File ui/views/controls/separator.cc (right): https://codereview.chromium.org/2675983003/diff/20001/ui/views/controls/separator.cc#newcode56 ui/views/controls/separator.cc:56: // The separator fills its bounds, but avoid filling ...
3 years, 10 months ago (2017-02-06 22:42:55 UTC) #14
Evan Stade
https://codereview.chromium.org/2675983003/diff/20001/ui/views/controls/separator.cc File ui/views/controls/separator.cc (right): https://codereview.chromium.org/2675983003/diff/20001/ui/views/controls/separator.cc#newcode56 ui/views/controls/separator.cc:56: // The separator fills its bounds, but avoid filling ...
3 years, 10 months ago (2017-02-07 16:57:54 UTC) #15
sky
https://codereview.chromium.org/2675983003/diff/20001/ui/views/controls/separator.cc File ui/views/controls/separator.cc (right): https://codereview.chromium.org/2675983003/diff/20001/ui/views/controls/separator.cc#newcode39 ui/views/controls/separator.cc:39: gfx::Size size = orientation_ == HORIZONTAL ? gfx::Size(length_, kThickness) ...
3 years, 10 months ago (2017-02-07 19:02:49 UTC) #20
Evan Stade
https://codereview.chromium.org/2675983003/diff/20001/ui/views/controls/separator.cc File ui/views/controls/separator.cc (right): https://codereview.chromium.org/2675983003/diff/20001/ui/views/controls/separator.cc#newcode39 ui/views/controls/separator.cc:39: gfx::Size size = orientation_ == HORIZONTAL ? gfx::Size(length_, kThickness) ...
3 years, 10 months ago (2017-02-07 21:39:50 UTC) #21
sky
On Tue, Feb 7, 2017 at 1:39 PM, <estade@chromium.org> wrote: > > https://codereview.chromium.org/2675983003/diff/20001/ui/views/controls/separator.cc > File ...
3 years, 10 months ago (2017-02-08 00:58:26 UTC) #22
Evan Stade
On 2017/02/08 00:58:26, sky wrote: > On Tue, Feb 7, 2017 at 1:39 PM, <mailto:estade@chromium.org> ...
3 years, 10 months ago (2017-02-08 16:21:30 UTC) #23
sky
Here's the list of concerns I have with the API you've created: . I find ...
3 years, 10 months ago (2017-02-08 17:26:14 UTC) #24
Evan Stade
On 2017/02/08 17:26:14, sky wrote: > Here's the list of concerns I have with the ...
3 years, 10 months ago (2017-02-08 17:35:53 UTC) #25
sky
GAH! Ok, you're right. How about we remove the enum altogether and have SetPreferredHeight/SetPreferredWidth? On ...
3 years, 10 months ago (2017-02-08 18:27:51 UTC) #26
sadrul
On 2017/02/08 18:27:51, sky wrote: > GAH! Ok, you're right. How about we remove the ...
3 years, 10 months ago (2017-02-08 20:15:21 UTC) #27
Evan Stade
On 2017/02/08 20:15:21, sadrul wrote: > On 2017/02/08 18:27:51, sky wrote: > > GAH! Ok, ...
3 years, 10 months ago (2017-02-08 21:19:41 UTC) #28
sky
I favor Scott's suggestion;) (and thanks for the patience here!) -Scott On Wed, Feb 8, ...
3 years, 10 months ago (2017-02-08 23:23:43 UTC) #29
Evan Stade
done, ptal
3 years, 10 months ago (2017-02-09 01:36:07 UTC) #32
sky
https://codereview.chromium.org/2675983003/diff/80001/ui/views/controls/separator.cc File ui/views/controls/separator.cc (right): https://codereview.chromium.org/2675983003/diff/80001/ui/views/controls/separator.cc#newcode29 ui/views/controls/separator.cc:29: if (width == preferred_size_.width()) WDYT of calling a common ...
3 years, 10 months ago (2017-02-09 03:16:09 UTC) #34
Evan Stade
https://codereview.chromium.org/2675983003/diff/80001/ui/views/controls/separator.cc File ui/views/controls/separator.cc (right): https://codereview.chromium.org/2675983003/diff/80001/ui/views/controls/separator.cc#newcode29 ui/views/controls/separator.cc:29: if (width == preferred_size_.width()) On 2017/02/09 03:16:09, sky wrote: ...
3 years, 10 months ago (2017-02-09 15:46:11 UTC) #37
sky
https://codereview.chromium.org/2675983003/diff/80001/ui/views/controls/separator.cc File ui/views/controls/separator.cc (right): https://codereview.chromium.org/2675983003/diff/80001/ui/views/controls/separator.cc#newcode29 ui/views/controls/separator.cc:29: if (width == preferred_size_.width()) On 2017/02/09 15:46:11, Evan Stade ...
3 years, 10 months ago (2017-02-09 20:32:50 UTC) #38
Evan Stade
> I'm ok with only what we need and no note. If someone needs the ...
3 years, 10 months ago (2017-02-10 03:26:13 UTC) #39
sky
LayoutManagerForSeparator is overkill. https://codereview.chromium.org/2675983003/diff/120001/ui/views/controls/separator.h File ui/views/controls/separator.h (right): https://codereview.chromium.org/2675983003/diff/120001/ui/views/controls/separator.h#newcode40 ui/views/controls/separator.h:40: gfx::Size preferred_size_; At this point I ...
3 years, 10 months ago (2017-02-10 18:12:04 UTC) #44
Evan Stade
https://codereview.chromium.org/2675983003/diff/120001/ui/views/controls/separator.h File ui/views/controls/separator.h (right): https://codereview.chromium.org/2675983003/diff/120001/ui/views/controls/separator.h#newcode40 ui/views/controls/separator.h:40: gfx::Size preferred_size_; On 2017/02/10 18:12:04, sky wrote: > At ...
3 years, 10 months ago (2017-02-10 23:23:25 UTC) #45
sky
LGTM - thanks for the simplification and seeing this through.
3 years, 10 months ago (2017-02-13 16:32:34 UTC) #50
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/2675983003/140001
3 years, 10 months ago (2017-02-13 17:14:30 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/320513)
3 years, 10 months ago (2017-02-13 18:05:25 UTC) #55
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/2675983003/140001
3 years, 10 months ago (2017-02-13 19:05:32 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/320641)
3 years, 10 months ago (2017-02-13 20:14:56 UTC) #59
Evan Stade
On 2017/02/13 20:14:56, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 10 months ago (2017-02-14 18:50:36 UTC) #64
sky
That output isn't helpful at all! I'm not sure if something hung, or something crashed ...
3 years, 10 months ago (2017-02-14 22:46:35 UTC) #65
Evan Stade
On 2017/02/14 22:46:35, sky wrote: > That output isn't helpful at all! I'm not sure ...
3 years, 10 months ago (2017-02-15 16:27:58 UTC) #71
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/2675983003/180001
3 years, 10 months ago (2017-02-16 02:46:09 UTC) #77
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/367573)
3 years, 10 months ago (2017-02-16 03:45:20 UTC) #79
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/2675983003/180001
3 years, 10 months ago (2017-02-16 19:30:04 UTC) #81
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 20:35:52 UTC) #84
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/4a3ae74ccfbe8470cd8343ad7e93...

Powered by Google App Engine
This is Rietveld 408576698