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

Unified Diff: views/controls/textfield/textfield.cc

Issue 7265011: RenderText API Outline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add TODO comments, revise cursor movement API, etc. Created 9 years, 5 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: views/controls/textfield/textfield.cc
diff --git a/views/controls/textfield/textfield.cc b/views/controls/textfield/textfield.cc
index 9cd6185c5bbc8d226ab7bbb99cdd5d7c956be645..a51bedacf1943f4b0480d62d5e625c3f4133c70a 100644
--- a/views/controls/textfield/textfield.cc
+++ b/views/controls/textfield/textfield.cc
@@ -261,20 +261,14 @@ size_t Textfield::GetCursorPosition() const {
return native_wrapper_->GetCursorPosition();
}
-TextStyle* Textfield::CreateTextStyle() {
+void Textfield::ApplyStyleRange(const gfx::StyleRange& style) {
DCHECK(native_wrapper_);
- return native_wrapper_->CreateTextStyle();
+ return native_wrapper_->ApplyStyleRange(style);
}
-void Textfield::ApplyTextStyle(const TextStyle* style,
- const ui::Range& range) {
+void Textfield::ApplyDefaultStyle() {
DCHECK(native_wrapper_);
- return native_wrapper_->ApplyTextStyle(style, range);
-}
-
-void Textfield::ClearAllTextStyles() {
- DCHECK(native_wrapper_);
- native_wrapper_->ClearAllTextStyles();
+ native_wrapper_->ApplyDefaultStyle();
}
void Textfield::ClearEditHistory() {

Powered by Google App Engine
This is Rietveld 408576698