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

Unified Diff: chrome/browser/ui/views/harmony/chrome_layout_provider.h

Issue 2968713003: Harmonize the find in page dialog. (Closed)
Patch Set: Fix format Created 3 years, 5 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 | « chrome/browser/ui/views/find_bar_view.cc ('k') | chrome/browser/ui/views/harmony/chrome_layout_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/harmony/chrome_layout_provider.h
diff --git a/chrome/browser/ui/views/harmony/chrome_layout_provider.h b/chrome/browser/ui/views/harmony/chrome_layout_provider.h
index c5185da53819f1798c03865be39c474a3096ca57..e931ff9f548c1c0cb621c0ead5211d59ec14ea29 100644
--- a/chrome/browser/ui/views/harmony/chrome_layout_provider.h
+++ b/chrome/browser/ui/views/harmony/chrome_layout_provider.h
@@ -12,6 +12,11 @@
#include "ui/views/layout/grid_layout.h"
#include "ui/views/layout/layout_provider.h"
+enum ChromeInsetsMetric {
+ // Margins used by toasts.
+ INSETS_TOAST = views::VIEWS_INSETS_END,
+};
+
enum ChromeDistanceMetric {
// Default minimum width of a button.
DISTANCE_BUTTON_MINIMUM_WIDTH = views::VIEWS_DISTANCE_END,
@@ -33,6 +38,10 @@ enum ChromeDistanceMetric {
// Horizontal indent of a subsection relative to related items above, e.g.
// checkboxes below explanatory text/headings.
DISTANCE_SUBSECTION_HORIZONTAL_INDENT,
+ // Vertical margin for controls in a toast.
+ DISTANCE_TOAST_CONTROL_VERTICAL,
+ // Vertical margin for labels in a toast.
+ DISTANCE_TOAST_LABEL_VERTICAL,
// Horizontal spacing between controls that are logically unrelated.
DISTANCE_UNRELATED_CONTROL_HORIZONTAL,
// Larger horizontal spacing between unrelated controls.
@@ -54,6 +63,7 @@ class ChromeLayoutProvider : public views::LayoutProvider {
static int GetControlHeightForFont(const gfx::FontList& font);
// views::LayoutProvider:
+ gfx::Insets GetInsetsMetric(int metric) const override;
int GetDistanceMetric(int metric) const override;
const views::TypographyProvider& GetTypographyProvider() const override;
« no previous file with comments | « chrome/browser/ui/views/find_bar_view.cc ('k') | chrome/browser/ui/views/harmony/chrome_layout_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698