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

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

Issue 2734113006: "Bootstrap" a toolkit-views Typography spec. (Closed)
Patch Set: Rebase Created 3 years, 9 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/harmony/layout_delegate.h
diff --git a/chrome/browser/ui/views/harmony/layout_delegate.h b/chrome/browser/ui/views/harmony/layout_delegate.h
index e37879f86ed5e5433edaf45c5a8b4f31ef58058a..27cd2572ab611f098d533ed3b3eaaabe6bec7652 100644
--- a/chrome/browser/ui/views/harmony/layout_delegate.h
+++ b/chrome/browser/ui/views/harmony/layout_delegate.h
@@ -7,6 +7,10 @@
#include "ui/views/layout/grid_layout.h"
+namespace views {
+class TypographyProvider;
+}
+
class LayoutDelegate {
public:
enum class Metric {
@@ -96,6 +100,8 @@ class LayoutDelegate {
// May return 0 if the dialog has no preferred width.
virtual int GetDialogPreferredWidth(DialogWidth width) const;
+ virtual const views::TypographyProvider& GetTypographyProvider() const;
Peter Kasting 2017/03/17 02:26:00 Nit: Add comment.
tapted 2017/03/17 10:33:10 Done.
+
private:
DISALLOW_COPY_AND_ASSIGN(LayoutDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698