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

Unified Diff: chrome/browser/ui/views/chrome_views_delegate.cc

Issue 2660553005: Harmony - convert hung renderer dialog. (Closed)
Patch Set: comments 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/chrome_views_delegate.cc
diff --git a/chrome/browser/ui/views/chrome_views_delegate.cc b/chrome/browser/ui/views/chrome_views_delegate.cc
index c02c35b4f57e5343dea420b4a75df82c676dceda..693adfa3732df0b8f515754b1e6f55862da3a0dd 100644
--- a/chrome/browser/ui/views/chrome_views_delegate.cc
+++ b/chrome/browser/ui/views/chrome_views_delegate.cc
@@ -577,6 +577,16 @@ gfx::Insets ChromeViewsDelegate::GetBubbleDialogMargins() const {
LayoutDelegate::Metric::PANEL_CONTENT_MARGIN));
}
+int ChromeViewsDelegate::GetDialogButtonMinimumWidth() const {
+ return LayoutDelegate::Get()->GetMetric(
+ LayoutDelegate::Metric::DIALOG_BUTTON_MINIMUM_WIDTH);
+}
+
+int ChromeViewsDelegate::GetButtonHorizontalPadding() const {
+ return LayoutDelegate::Get()->GetMetric(
+ LayoutDelegate::Metric::BUTTON_HORIZONTAL_PADDING);
+}
+
#if !defined(USE_ASH)
views::Widget::InitParams::WindowOpacity
ChromeViewsDelegate::GetOpacityForInitParams(

Powered by Google App Engine
This is Rietveld 408576698