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

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

Issue 2505973003: harmony: use Harmony sizing for ViewsDelegate sizing functions (Closed)
Patch Set: Created 4 years, 1 month 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/harmony/harmony_layout_delegate.h
diff --git a/chrome/browser/ui/views/harmony/harmony_layout_delegate.h b/chrome/browser/ui/views/harmony/harmony_layout_delegate.h
index fd36b15d297a11f88bb08f5165375602c12f46d8..14c14ecf5411004894f58a93ef5ee62adf21fd92 100644
--- a/chrome/browser/ui/views/harmony/harmony_layout_delegate.h
+++ b/chrome/browser/ui/views/harmony/harmony_layout_delegate.h
@@ -15,6 +15,9 @@ class HarmonyLayoutDelegate : public LayoutDelegate {
// Returns the singleton HarmonyLayoutDelegate instance.
static HarmonyLayoutDelegate* Get();
+ // The Harmony layout unit. All distances are in terms of this unit.
+ static const int kHarmonyLayoutUnit = 16;
sky 2016/11/17 18:18:34 style guide says constants should be before constr
+
// views::LayoutDelegate:
int GetLayoutDistance(LayoutDistanceType type) const override;
bool UseExtraDialogPadding() const override;
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.cc ('k') | chrome/browser/ui/views/harmony/harmony_layout_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698