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

Unified Diff: ui/views/views_delegate.h

Issue 2734113006: "Bootstrap" a toolkit-views Typography spec. (Closed)
Patch Set: Rebase (conflict in layout_delegate.h due to r457774) 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
« ui/views/style/typography.h ('K') | « ui/views/test/test_views_delegate_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/views_delegate.h
diff --git a/ui/views/views_delegate.h b/ui/views/views_delegate.h
index 04324b50a4edba52b08125bd4bd80a32b436a015..5ab30aa42997cf7bb298dcdf71caab5b07eb9c29 100644
--- a/ui/views/views_delegate.h
+++ b/ui/views/views_delegate.h
@@ -48,6 +48,7 @@ namespace views {
class NativeWidget;
class NonClientFrameView;
class ViewsTouchEditingControllerFactory;
+class TypographyProvider;
class View;
class Widget;
@@ -252,6 +253,10 @@ class VIEWS_EXPORT ViewsDelegate {
// enumeration element.
virtual int GetDistanceMetric(DistanceMetric metric) const;
+ // Returns the TypographyProvider, used to configure text properties such as
+ // font, weight, color, size, and line height. Never null.
+ virtual const TypographyProvider& GetTypographyProvider() const = 0;
+
protected:
ViewsDelegate();
« ui/views/style/typography.h ('K') | « ui/views/test/test_views_delegate_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698