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

Side by Side Diff: chrome/browser/ui/views/chrome_views_delegate.cc

Issue 2671443002: Make the extra padding around VectorIconButtons configurable. (Closed)
Patch Set: Make sure Harmony close buttons stay in place Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/chrome_views_delegate.h" 5 #include "chrome/browser/ui/views/chrome_views_delegate.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 HarmonyLayoutDelegate::kHarmonyLayoutUnit); 567 HarmonyLayoutDelegate::kHarmonyLayoutUnit);
568 return ViewsDelegate::GetDialogFrameViewInsets(); 568 return ViewsDelegate::GetDialogFrameViewInsets();
569 } 569 }
570 570
571 gfx::Insets ChromeViewsDelegate::GetBubbleDialogMargins() { 571 gfx::Insets ChromeViewsDelegate::GetBubbleDialogMargins() {
572 if (ui::MaterialDesignController::IsSecondaryUiMaterial()) 572 if (ui::MaterialDesignController::IsSecondaryUiMaterial())
573 return gfx::Insets(HarmonyLayoutDelegate::kHarmonyLayoutUnit); 573 return gfx::Insets(HarmonyLayoutDelegate::kHarmonyLayoutUnit);
574 return ViewsDelegate::GetBubbleDialogMargins(); 574 return ViewsDelegate::GetBubbleDialogMargins();
575 } 575 }
576 576
577 gfx::Insets ChromeViewsDelegate::GetButtonPadding() const {
578 return gfx::Insets(LayoutDelegate::Get()->GetMetric(
579 LayoutDelegate::Metric::BUTTON_PADDING));
580 }
581
577 #if !defined(USE_ASH) 582 #if !defined(USE_ASH)
578 views::Widget::InitParams::WindowOpacity 583 views::Widget::InitParams::WindowOpacity
579 ChromeViewsDelegate::GetOpacityForInitParams( 584 ChromeViewsDelegate::GetOpacityForInitParams(
580 const views::Widget::InitParams& params) { 585 const views::Widget::InitParams& params) {
581 return views::Widget::InitParams::OPAQUE_WINDOW; 586 return views::Widget::InitParams::OPAQUE_WINDOW;
582 } 587 }
583 #endif 588 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698