|
|
Chromium Code Reviews
DescriptionViews/Harmony: Use LayoutDelegate::GetMetric() for views::kPanelHorizMargin.
Replace direct references to views::kPanelHorizMargin under chrome/* with a call
to LayoutDelegate::GetMetric().
BUG=691897
Review-Url: https://codereview.chromium.org/2700083002
Cr-Commit-Position: refs/heads/master@{#452376}
Committed: https://chromium.googlesource.com/chromium/src/+/cf729d6b29b5ff36ef3115f88b45193c59ab3f52
Patch Set 1 #Patch Set 2 : Fix includes. #
Total comments: 2
Patch Set 3 : Review comments. #
Messages
Total messages: 35 (24 generated)
The CQ bit was checked by patricialor@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: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by patricialor@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.
patricialor@chromium.org changed reviewers: + tapted@chromium.org
Hi Trent, PTAL - I've missed bubble_dialog_delegate.cc & views_delegate.cc, but I think that is intended (for now) until https://crbug.com/687349 is fixed.
lgtm % nit https://codereview.chromium.org/2700083002/diff/20001/chrome/browser/ui/views... File chrome/browser/ui/views/extensions/media_gallery_checkbox_view.cc (right): https://codereview.chromium.org/2700083002/diff/20001/chrome/browser/ui/views... chrome/browser/ui/views/extensions/media_gallery_checkbox_view.cc:34: const int kBorderHorizMargin = LayoutDelegate::Get()->GetMetric( nit: const int border_horiz_margin = .. (we only use kFooStyle for compile-time constants - e.g. when `constexpr int kFoo..` would work)
The CQ bit was checked by patricialor@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: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by patricialor@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...
patricialor@chromium.org changed reviewers: + pkasting@chromium.org
Hi pkasting, PTAL for owner's review on all files. Thank you! https://codereview.chromium.org/2700083002/diff/20001/chrome/browser/ui/views... File chrome/browser/ui/views/extensions/media_gallery_checkbox_view.cc (right): https://codereview.chromium.org/2700083002/diff/20001/chrome/browser/ui/views... chrome/browser/ui/views/extensions/media_gallery_checkbox_view.cc:34: const int kBorderHorizMargin = LayoutDelegate::Get()->GetMetric( On 2017/02/20 04:42:00, tapted wrote: > nit: const int border_horiz_margin = .. > > (we only use kFooStyle for compile-time constants - e.g. when `constexpr int > kFoo..` would work) Done, thanks!
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2017/02/20 06:34:39, Patti Lor wrote: > Hi pkasting, PTAL for owner's review on all files. Thank you! > > https://codereview.chromium.org/2700083002/diff/20001/chrome/browser/ui/views... > File chrome/browser/ui/views/extensions/media_gallery_checkbox_view.cc (right): > > https://codereview.chromium.org/2700083002/diff/20001/chrome/browser/ui/views... > chrome/browser/ui/views/extensions/media_gallery_checkbox_view.cc:34: const int > kBorderHorizMargin = LayoutDelegate::Get()->GetMetric( > On 2017/02/20 04:42:00, tapted wrote: > > nit: const int border_horiz_margin = .. > > > > (we only use kFooStyle for compile-time constants - e.g. when `constexpr int > > kFoo..` would work) > > Done, thanks! pkasting@ - ping in case you haven't seen this yet :)
LGTM I did see it, I was just out yesterday and hadn't made it to code reviews today. Thanks for the ping, it prompted me to do this sooner rather than later :)
(By the way, you can also replace kPanelVertMargin with this constant if you see that in use. There's one or two other similar pairs of constants like this already as well; basically, if pre-Harmony uses a "horiz" or "vert" constant to define something that the layout delegate does not explicitly call "horiz" or "vert" in the enum name, it's a case like this.)
On 2017/02/21 23:01:49, Peter Kasting wrote: > (By the way, you can also replace kPanelVertMargin with this constant if you see > that in use. There's one or two other similar pairs of constants like this > already as well; basically, if pre-Harmony uses a "horiz" or "vert" constant to > define something that the layout delegate does not explicitly call "horiz" or > "vert" in the enum name, it's a case like this.) Oh, thanks for the FYI, will start replacing all of them in future CLs. Thanks for your review!
The CQ bit was checked by patricialor@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from tapted@chromium.org Link to the patchset: https://codereview.chromium.org/2700083002/#ps40001 (title: "Review comments.")
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
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
The CQ bit was checked by patricialor@chromium.org
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": 40001, "attempt_start_ts": 1487816199984400,
"parent_rev": "6837d7983dd1c0c113761fb4058b6cf0895fdd9c", "commit_rev":
"cf729d6b29b5ff36ef3115f88b45193c59ab3f52"}
Message was sent while issue was closed.
Description was changed from ========== Views/Harmony: Use LayoutDelegate::GetMetric() for views::kPanelHorizMargin. Replace direct references to views::kPanelHorizMargin under chrome/* with a call to LayoutDelegate::GetMetric(). BUG=691897 ========== to ========== Views/Harmony: Use LayoutDelegate::GetMetric() for views::kPanelHorizMargin. Replace direct references to views::kPanelHorizMargin under chrome/* with a call to LayoutDelegate::GetMetric(). BUG=691897 Review-Url: https://codereview.chromium.org/2700083002 Cr-Commit-Position: refs/heads/master@{#452376} Committed: https://chromium.googlesource.com/chromium/src/+/cf729d6b29b5ff36ef3115f88b45... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/cf729d6b29b5ff36ef3115f88b45... |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
