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

Unified Diff: ui/views/layout/layout_provider.cc

Issue 2819633002: Restored Pre-Harmony Bubble title margin metrics (Closed)
Patch Set: Fixed a typo Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/layout/layout_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/layout/layout_provider.cc
diff --git a/ui/views/layout/layout_provider.cc b/ui/views/layout/layout_provider.cc
index 926916d16883e0ef5fc29aeb90400eae960e9b71..208b9aa7012a0420e4e5f3f6a8307eceac592f4b 100644
--- a/ui/views/layout/layout_provider.cc
+++ b/ui/views/layout/layout_provider.cc
@@ -33,14 +33,17 @@ LayoutProvider* LayoutProvider::Get() {
gfx::Insets LayoutProvider::GetInsetsMetric(int metric) const {
DCHECK_LT(metric, VIEWS_INSETS_MAX);
switch (metric) {
+ case InsetsMetric::INSETS_BUBBLE_CONTENTS:
+ return gfx::Insets(kPanelVertMargin, kPanelHorizMargin);
+ case InsetsMetric::INSETS_BUBBLE_TITLE:
+ return gfx::Insets(kPanelVertMargin, kPanelHorizMargin, 0,
+ kPanelHorizMargin);
case InsetsMetric::INSETS_DIALOG_BUTTON:
return gfx::Insets(0, kButtonHEdgeMarginNew, kButtonVEdgeMarginNew,
kButtonHEdgeMarginNew);
case InsetsMetric::INSETS_DIALOG_TITLE:
return gfx::Insets(kPanelVertMargin, kButtonHEdgeMarginNew, 0,
kButtonHEdgeMarginNew);
- case InsetsMetric::INSETS_BUBBLE_CONTENTS:
- return gfx::Insets(kPanelVertMargin, kPanelHorizMargin);
case InsetsMetric::INSETS_PANEL:
return gfx::Insets(kPanelVertMargin, kButtonHEdgeMarginNew);
case InsetsMetric::INSETS_VECTOR_IMAGE_BUTTON:
« no previous file with comments | « ui/views/layout/layout_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698