Create c/b/ui/views/layout_constants.*.
commit903dceff91f3fb0a3f48343f3366eb715b4698d8
authorpkasting <pkasting@chromium.org>
Tue, 15 Sep 2015 19:58:13 +0000 (15 12:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 15 Sep 2015 19:58:56 +0000 (15 19:58 +0000)
tree60eca6b5e3fdc213086ddc84344e55d0a4b88c9a
parentd5144064af15ce8e24589891c326400a43c27ce0
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

Review URL: https://codereview.chromium.org/1338103002

Cr-Commit-Position: refs/heads/master@{#348967}
13 files changed:
chrome/browser/themes/theme_properties.cc
chrome/browser/themes/theme_properties.h
chrome/browser/themes/theme_service.cc
chrome/browser/ui/views/layout_constants.cc [new file with mode: 0644]
chrome/browser/ui/views/layout_constants.h [new file with mode: 0644]
chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
chrome/browser/ui/views/location_bar/location_bar_view.cc
chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
chrome/browser/ui/views/omnibox/omnibox_result_view.cc
chrome/browser/ui/views/toolbar/toolbar_button.cc
chrome/browser/ui/views/toolbar/toolbar_view.cc
chrome/browser/ui/views/toolbar/wrench_toolbar_button.cc
chrome/chrome_browser_ui.gypi