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

Unified Diff: ui/views/controls/textfield/textfield.h

Issue 1819753003: Allow various font weights in gfx. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Further Mac and Linux fixes. Created 4 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: ui/views/controls/textfield/textfield.h
diff --git a/ui/views/controls/textfield/textfield.h b/ui/views/controls/textfield/textfield.h
index b153edd0d89e9fcb9c2691f21a214037f25ae8c5..31308bef054c16517fc0fc41d5bcb233b5e7c762 100644
--- a/ui/views/controls/textfield/textfield.h
+++ b/ui/views/controls/textfield/textfield.h
@@ -197,6 +197,11 @@ class VIEWS_EXPORT Textfield : public View,
void SetStyle(gfx::TextStyle style, bool value);
void ApplyStyle(gfx::TextStyle style, bool value, const gfx::Range& range);
+ // Set various text weights over the entire text or a logical character range.
msw 2016/03/25 01:33:10 These functions are arguably unnecessary; they're
Mikus 2016/03/25 11:49:00 Done - removed.
+ // The respective |weight| is applied. Empty and invalid ranges are ignored.
+ void SetWeight(gfx::Font::Weight weight);
+ void ApplyWeight(gfx::Font::Weight weight, const gfx::Range& range);
+
// Clears Edit history.
void ClearEditHistory();

Powered by Google App Engine
This is Rietveld 408576698