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

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

Issue 2696263002: Refactor ViewsDelegate and MD-ify the icon-to-text spacing for checkbox and radiobutton (Closed)
Patch Set: Merged with latest changes. 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.h
diff --git a/chrome/browser/ui/views/chrome_views_delegate.h b/chrome/browser/ui/views/chrome_views_delegate.h
index 5e0bc98096fc2494da7492940834023c48b599f8..c8e930111924977750e37034daaaae011769bb50 100644
--- a/chrome/browser/ui/views/chrome_views_delegate.h
+++ b/chrome/browser/ui/views/chrome_views_delegate.h
@@ -20,6 +20,8 @@ class ChromeViewsDelegate : public views::ViewsDelegate {
ChromeViewsDelegate();
~ChromeViewsDelegate() override;
+ static ChromeViewsDelegate* GetInstance();
+
// views::ViewsDelegate:
void SaveWindowPlacement(const views::Widget* window,
const std::string& window_name,
@@ -58,15 +60,10 @@ class ChromeViewsDelegate : public views::ViewsDelegate {
std::string GetApplicationName() override;
scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner() override;
- gfx::Insets GetDialogButtonInsets() const override;
- int GetDialogCloseButtonMargin() const override;
- int GetDialogRelatedButtonHorizontalSpacing() const override;
- int GetDialogRelatedControlVerticalSpacing() const override;
- gfx::Insets GetDialogFrameViewInsets() const override;
- gfx::Insets GetBubbleDialogMargins() const override;
- int GetButtonMinimumWidth() const override;
- int GetDialogButtonMinimumWidth() const override;
- int GetButtonHorizontalPadding() const override;
+ gfx::Insets GetInsetsMetric(views::InsetsMetric metric) const override;
+ int GetSpacingMetric(views::SpacingMetric metric) const override;
+
+ int GetDefaultSpacingMetric(views::SpacingMetric metric) const;
private:
#if defined(OS_WIN)

Powered by Google App Engine
This is Rietveld 408576698