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

Unified Diff: ui/views/views_delegate.cc

Issue 2664073006: Implement ChromeViewsDelegate methods in terms of LayoutDelegate where possible. (Closed)
Patch Set: Now with correct type names Created 3 years, 11 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: ui/views/views_delegate.cc
diff --git a/ui/views/views_delegate.cc b/ui/views/views_delegate.cc
index 3481102f57fc5b07d74b53e347a18b2fa12bb31d..e7fa2be2b1ce36eee7bed1d899863246dc791936 100644
--- a/ui/views/views_delegate.cc
+++ b/ui/views/views_delegate.cc
@@ -126,25 +126,25 @@ scoped_refptr<base::TaskRunner> ViewsDelegate::GetBlockingPoolTaskRunner() {
return nullptr;
}
-gfx::Insets ViewsDelegate::GetDialogButtonInsets() {
+gfx::Insets ViewsDelegate::GetDialogButtonInsets() const {
return gfx::Insets(0, kButtonHEdgeMarginNew, kButtonVEdgeMarginNew,
kButtonHEdgeMarginNew);
}
-int ViewsDelegate::GetDialogRelatedButtonHorizontalSpacing() {
+int ViewsDelegate::GetDialogRelatedButtonHorizontalSpacing() const {
return kRelatedButtonHSpacing;
}
-int ViewsDelegate::GetDialogRelatedControlVerticalSpacing() {
+int ViewsDelegate::GetDialogRelatedControlVerticalSpacing() const {
return kRelatedControlVerticalSpacing;
}
-gfx::Insets ViewsDelegate::GetDialogFrameViewInsets() {
+gfx::Insets ViewsDelegate::GetDialogFrameViewInsets() const {
return gfx::Insets(kPanelVertMargin, kButtonHEdgeMarginNew, 0,
kButtonHEdgeMarginNew);
}
-gfx::Insets ViewsDelegate::GetBubbleDialogMargins() {
+gfx::Insets ViewsDelegate::GetBubbleDialogMargins() const {
return gfx::Insets(kPanelVertMargin, kPanelHorizMargin);
}
« chrome/browser/ui/views/chrome_views_delegate.cc ('K') | « ui/views/views_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698