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

Issue 1338103002: Create c/b/ui/views/layout_constants.*. (Closed)

Created:
5 years, 3 months ago by Peter Kasting
Modified:
5 years, 3 months ago
CC:
chromium-reviews, tfarina, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create c/b/ui/views/layout_constants.*. This becomes a global place to get views layout constants which need some kind of parametrized getter, in these cases because of Material Design. Previously these were accessible from ThemeService, but that required having an instance of a ThemeProvider (infeasible in some contexts) and implied these were theme-related in some way, which isn't true. BUG=531544 TEST=none Committed: https://crrev.com/903dceff91f3fb0a3f48343f3366eb715b4698d8 Cr-Commit-Position: refs/heads/master@{#348967}

Patch Set 1 #

Total comments: 19

Patch Set 2 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -370 lines) Patch
M chrome/browser/themes/theme_properties.h View 2 chunks +0 lines, -28 lines 0 comments Download
M chrome/browser/themes/theme_properties.cc View 3 chunks +0 lines, -130 lines 0 comments Download
M chrome/browser/themes/theme_service.cc View 1 chunk +13 lines, -9 lines 0 comments Download
A chrome/browser/ui/views/layout_constants.h View 1 1 chunk +73 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/layout_constants.cc View 1 chunk +86 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc View 4 chunks +9 lines, -19 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 14 chunks +40 lines, -62 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc View 4 chunks +9 lines, -24 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_result_view.cc View 4 chunks +10 lines, -28 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_button.cc View 1 4 chunks +8 lines, -13 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.cc View 9 chunks +27 lines, -53 lines 0 comments Download
M chrome/browser/ui/views/toolbar/wrench_toolbar_button.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
Peter Kasting
jonross: Review pkotwicz: OWNER for chrome/browser/themes/
5 years, 3 months ago (2015-09-12 00:38:46 UTC) #2
jonross
A few points, but overall I like this simplification. Especially the incorporation of the Insets ...
5 years, 3 months ago (2015-09-14 15:27:10 UTC) #3
tdanderson
https://codereview.chromium.org/1338103002/diff/1/chrome/browser/ui/views/layout_constants.h File chrome/browser/ui/views/layout_constants.h (right): https://codereview.chromium.org/1338103002/diff/1/chrome/browser/ui/views/layout_constants.h#newcode1 chrome/browser/ui/views/layout_constants.h:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
5 years, 3 months ago (2015-09-14 15:33:09 UTC) #5
tdanderson
On 2015/09/14 15:33:09, tdanderson wrote: > https://codereview.chromium.org/1338103002/diff/1/chrome/browser/ui/views/layout_constants.h > File chrome/browser/ui/views/layout_constants.h (right): > > https://codereview.chromium.org/1338103002/diff/1/chrome/browser/ui/views/layout_constants.h#newcode1 > ...
5 years, 3 months ago (2015-09-14 15:37:46 UTC) #6
Peter Kasting
PTAL https://codereview.chromium.org/1338103002/diff/1/chrome/browser/ui/views/layout_constants.cc File chrome/browser/ui/views/layout_constants.cc (right): https://codereview.chromium.org/1338103002/diff/1/chrome/browser/ui/views/layout_constants.cc#newcode11 chrome/browser/ui/views/layout_constants.cc:11: const int kIconLabelViewTrailingPadding[] = {2, 8, 8}; On ...
5 years, 3 months ago (2015-09-14 21:06:31 UTC) #7
jonross
https://codereview.chromium.org/1338103002/diff/1/chrome/browser/ui/views/layout_constants.cc File chrome/browser/ui/views/layout_constants.cc (right): https://codereview.chromium.org/1338103002/diff/1/chrome/browser/ui/views/layout_constants.cc#newcode24 chrome/browser/ui/views/layout_constants.cc:24: const int mode = ui::MaterialDesignController::GetMode(); On 2015/09/14 21:06:31, Peter ...
5 years, 3 months ago (2015-09-14 23:46:43 UTC) #8
Peter Kasting
https://codereview.chromium.org/1338103002/diff/1/chrome/browser/ui/views/layout_constants.cc File chrome/browser/ui/views/layout_constants.cc (right): https://codereview.chromium.org/1338103002/diff/1/chrome/browser/ui/views/layout_constants.cc#newcode24 chrome/browser/ui/views/layout_constants.cc:24: const int mode = ui::MaterialDesignController::GetMode(); On 2015/09/14 23:46:43, jonross ...
5 years, 3 months ago (2015-09-14 23:49:43 UTC) #9
tdanderson
LGTM (but please wait for Jon's sign-off too)
5 years, 3 months ago (2015-09-15 14:29:01 UTC) #10
jonross
On 2015/09/15 14:29:01, tdanderson wrote: > LGTM (but please wait for Jon's sign-off too) LGTM
5 years, 3 months ago (2015-09-15 14:37:02 UTC) #11
jonross
https://codereview.chromium.org/1338103002/diff/1/chrome/browser/ui/views/layout_constants.cc File chrome/browser/ui/views/layout_constants.cc (right): https://codereview.chromium.org/1338103002/diff/1/chrome/browser/ui/views/layout_constants.cc#newcode24 chrome/browser/ui/views/layout_constants.cc:24: const int mode = ui::MaterialDesignController::GetMode(); On 2015/09/14 23:49:43, Peter ...
5 years, 3 months ago (2015-09-15 14:37:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1338103002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1338103002/20001
5 years, 3 months ago (2015-09-15 19:00:11 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/99998)
5 years, 3 months ago (2015-09-15 19:16:24 UTC) #16
pkotwicz
lgtm
5 years, 3 months ago (2015-09-15 19:45:47 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1338103002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1338103002/20001
5 years, 3 months ago (2015-09-15 19:46:43 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 3 months ago (2015-09-15 19:58:20 UTC) #20
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/903dceff91f3fb0a3f48343f3366eb715b4698d8 Cr-Commit-Position: refs/heads/master@{#348967}
5 years, 3 months ago (2015-09-15 19:59:09 UTC) #21
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:48:28 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/903dceff91f3fb0a3f48343f3366eb715b4698d8
Cr-Commit-Position: refs/heads/master@{#348967}

Powered by Google App Engine
This is Rietveld 408576698