|
|
Chromium Code Reviews
DescriptionRemove references to ui/views/layout/layout_constants.h
This patch removes layout_constants.h and inlines them in layout_provider.cc and
chrome_layout_provider.cc. Last step of the set of changes which were around replacing
these constants with their equivalents from the layout provider.
BUG=691897
TBR=sky
Review-Url: https://codereview.chromium.org/2942453002
Cr-Commit-Position: refs/heads/master@{#479616}
Committed: https://chromium.googlesource.com/chromium/src/+/f131ea653e12fd70bcf10dc91ac5a731734e41ea
Patch Set 1 #Patch Set 2 : Address redness #
Total comments: 4
Patch Set 3 : Inline constants #Patch Set 4 : Remove newlines #Patch Set 5 : Rebase to tip #
Messages
Total messages: 35 (22 generated)
The CQ bit was checked by ananta@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: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by ananta@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...
ananta@chromium.org changed reviewers: + pkasting@chromium.org
LGTM https://codereview.chromium.org/2942453002/diff/20001/chrome/browser/ui/views... File chrome/browser/ui/views/harmony/chrome_layout_provider.cc (right): https://codereview.chromium.org/2942453002/diff/20001/chrome/browser/ui/views... chrome/browser/ui/views/harmony/chrome_layout_provider.cc:16: constexpr int kMinimumButtonWidth = 48; I would inline these directly into their single uses below. I like named constants, but the whole point of this file is basically to return some named-by-enum constants. Those enum values are already commented elsewhere. So the additional names and comments here aren't really adding clarity IMO. https://codereview.chromium.org/2942453002/diff/20001/ui/views/layout/layout_... File ui/views/layout/layout_provider.cc (right): https://codereview.chromium.org/2942453002/diff/20001/ui/views/layout/layout_... ui/views/layout/layout_provider.cc:18: constexpr int kPanelHorizMargin = 13; Same comment.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by ananta@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from pkasting@chromium.org Link to the patchset: https://codereview.chromium.org/2942453002/#ps60001 (title: "Remove newlines")
https://codereview.chromium.org/2942453002/diff/20001/chrome/browser/ui/views... File chrome/browser/ui/views/harmony/chrome_layout_provider.cc (right): https://codereview.chromium.org/2942453002/diff/20001/chrome/browser/ui/views... chrome/browser/ui/views/harmony/chrome_layout_provider.cc:16: constexpr int kMinimumButtonWidth = 48; On 2017/06/13 23:33:35, Peter Kasting wrote: > I would inline these directly into their single uses below. > > I like named constants, but the whole point of this file is basically to return > some named-by-enum constants. Those enum values are already commented > elsewhere. So the additional names and comments here aren't really adding > clarity IMO. Done. https://codereview.chromium.org/2942453002/diff/20001/ui/views/layout/layout_... File ui/views/layout/layout_provider.cc (right): https://codereview.chromium.org/2942453002/diff/20001/ui/views/layout/layout_... ui/views/layout/layout_provider.cc:18: constexpr int kPanelHorizMargin = 13; On 2017/06/13 23:33:35, Peter Kasting wrote: > Same comment. Done.
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: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
The CQ bit was checked by ananta@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from pkasting@chromium.org Link to the patchset: https://codereview.chromium.org/2942453002/#ps80001 (title: "Rebase to tip")
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: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
Description was changed from ========== Remove references to ui/views/layout/layout_constants.h This patch removes layout_constants.h and inlines them in layout_provider.cc and chrome_layout_provider.cc. Last step of the set of changes which were around replacing these constants with their equivalents from the layout provider. BUG=691897 ========== to ========== Remove references to ui/views/layout/layout_constants.h This patch removes layout_constants.h and inlines them in layout_provider.cc and chrome_layout_provider.cc. Last step of the set of changes which were around replacing these constants with their equivalents from the layout provider. BUG=691897 TBR=sky ==========
ananta@chromium.org changed reviewers: + sky@chromium.org
+sky for ui/views owners. TBR'ing as this is a simple enough change
The CQ bit was checked by ananta@chromium.org
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: 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 ananta@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": 80001, "attempt_start_ts": 1497503024044320,
"parent_rev": "36f87e2389e738d2b6690115d7c212e24ad053e6", "commit_rev":
"f131ea653e12fd70bcf10dc91ac5a731734e41ea"}
Message was sent while issue was closed.
Description was changed from ========== Remove references to ui/views/layout/layout_constants.h This patch removes layout_constants.h and inlines them in layout_provider.cc and chrome_layout_provider.cc. Last step of the set of changes which were around replacing these constants with their equivalents from the layout provider. BUG=691897 TBR=sky ========== to ========== Remove references to ui/views/layout/layout_constants.h This patch removes layout_constants.h and inlines them in layout_provider.cc and chrome_layout_provider.cc. Last step of the set of changes which were around replacing these constants with their equivalents from the layout provider. BUG=691897 TBR=sky Review-Url: https://codereview.chromium.org/2942453002 Cr-Commit-Position: refs/heads/master@{#479616} Committed: https://chromium.googlesource.com/chromium/src/+/f131ea653e12fd70bcf10dc91ac5... ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/f131ea653e12fd70bcf10dc91ac5...
Message was sent while issue was closed.
Yay! LGTM |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
