Home | History | Annotate | Download | only in textfield

Lines Matching refs:new_text

76        const base::string16& new_text,
85 new_text_(new_text),
150 InsertEdit(bool mergeable, const base::string16& new_text, size_t at)
157 at + new_text.length() /* new cursor */,
158 new_text,
183 const base::string16& new_text,
191 new_text,
290 bool TextfieldModel::SetText(const base::string16& new_text) {
296 if (text() != new_text) {
301 size_t new_cursor = new_text.length();
306 old_cursor, new_cursor, new_text, 0U);
313 void TextfieldModel::Append(const base::string16& new_text) {
320 InsertText(new_text);
533 const base::string16& new_text,
539 position + new_text.length(),
540 new_text,
565 base::string16 new_text = text();
566 render_text_->SetText(new_text.insert(cursor, composition.text));
607 base::string16 new_text = text();
608 render_text_->SetText(new_text.erase(range.start(), range.length()));
634 void TextfieldModel::InsertTextInternal(const base::string16& new_text,
638 ExecuteAndRecordInsert(new_text, mergeable);
641 new_text);
643 ExecuteAndRecordInsert(new_text, mergeable);
647 void TextfieldModel::ReplaceTextInternal(const base::string16& new_text,
655 // with |new_text|. So, need to find the index of next grapheme first.
664 InsertTextInternal(new_text, mergeable);
693 const base::string16& new_text) {
695 size_t new_cursor_pos = new_text_start + new_text.length();
699 new_text,
706 const base::string16& new_text,
716 new_text,
724 void TextfieldModel::ExecuteAndRecordInsert(const base::string16& new_text,
726 Edit* edit = new InsertEdit(mergeable, new_text, GetCursorPosition());
755 const base::string16& new_text,
763 if (!new_text.empty())
764 render_text_->SetText(old_text.insert(new_text_insert_at, new_text));