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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // Empty and invalid ranges are ignored. 190 // Empty and invalid ranges are ignored.
191 void SetColor(SkColor value); 191 void SetColor(SkColor value);
192 void ApplyColor(SkColor value, const gfx::Range& range); 192 void ApplyColor(SkColor value, const gfx::Range& range);
193 193
194 // Set various text styles over the entire text or a logical character range. 194 // Set various text styles over the entire text or a logical character range.
195 // The respective |style| is applied if |value| is true, or removed if false. 195 // The respective |style| is applied if |value| is true, or removed if false.
196 // Empty and invalid ranges are ignored. 196 // Empty and invalid ranges are ignored.
197 void SetStyle(gfx::TextStyle style, bool value); 197 void SetStyle(gfx::TextStyle style, bool value);
198 void ApplyStyle(gfx::TextStyle style, bool value, const gfx::Range& range); 198 void ApplyStyle(gfx::TextStyle style, bool value, const gfx::Range& range);
199 199
200 // 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.
201 // The respective |weight| is applied. Empty and invalid ranges are ignored.
202 void SetWeight(gfx::Font::Weight weight);
203 void ApplyWeight(gfx::Font::Weight weight, const gfx::Range& range);
204
200 // Clears Edit history. 205 // Clears Edit history.
201 void ClearEditHistory(); 206 void ClearEditHistory();
202 207
203 // Set the accessible name of the text field. 208 // Set the accessible name of the text field.
204 void SetAccessibleName(const base::string16& name); 209 void SetAccessibleName(const base::string16& name);
205 210
206 // Performs the action associated with the specified command id. 211 // Performs the action associated with the specified command id.
207 void ExecuteCommand(int command_id); 212 void ExecuteCommand(int command_id);
208 213
209 void SetFocusPainter(scoped_ptr<Painter> focus_painter); 214 void SetFocusPainter(scoped_ptr<Painter> focus_painter);
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 492
488 // Used to bind callback functions to this object. 493 // Used to bind callback functions to this object.
489 base::WeakPtrFactory<Textfield> weak_ptr_factory_; 494 base::WeakPtrFactory<Textfield> weak_ptr_factory_;
490 495
491 DISALLOW_COPY_AND_ASSIGN(Textfield); 496 DISALLOW_COPY_AND_ASSIGN(Textfield);
492 }; 497 };
493 498
494 } // namespace views 499 } // namespace views
495 500
496 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 501 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698