| Index: ui/views/controls/textfield/textfield_model.h
|
| diff --git a/ui/views/controls/textfield/textfield_model.h b/ui/views/controls/textfield/textfield_model.h
|
| index 135524e289a44035be219830cdb0e1044f7febf1..882f812ec8baeedcd3aae2ede105ff86869a64cd 100644
|
| --- a/ui/views/controls/textfield/textfield_model.h
|
| +++ b/ui/views/controls/textfield/textfield_model.h
|
| @@ -95,15 +95,21 @@ class VIEWS_EXPORT TextfieldModel {
|
|
|
| // Deletes the first character after the current cursor position (as if, the
|
| // the user has pressed delete key in the textfield). Returns true if
|
| - // the deletion is successful.
|
| + // the deletion is successful. If |add_to_kill_buffer| is true, the deleted
|
| + // text is copied to the kill buffer.
|
| // If there is composition text, it'll be deleted instead.
|
| - bool Delete();
|
| + bool Delete(bool add_to_kill_buffer);
|
| +
|
| + bool Delete() { return Delete(false); }
|
|
|
| // Deletes the first character before the current cursor position (as if, the
|
| // the user has pressed backspace key in the textfield). Returns true if
|
| - // the removal is successful.
|
| + // the removal is successful. If |add_to_kill_buffer| is true, the deleted
|
| + // text is copied to the kill buffer.
|
| // If there is composition text, it'll be deleted instead.
|
| - bool Backspace();
|
| + bool Backspace(bool add_to_kill_buffer);
|
| +
|
| + bool Backspace() { return Backspace(false); }
|
|
|
| // Cursor related methods.
|
|
|
| @@ -177,6 +183,10 @@ class VIEWS_EXPORT TextfieldModel {
|
| // if any text is pasted.
|
| bool Paste();
|
|
|
| + // Pastes text from the kill buffer at the current cursor position or
|
| + // selection.
|
| + bool Yank();
|
| +
|
| // Tells if any text is selected, even if the selection is in composition
|
| // text.
|
| bool HasSelection() const;
|
|
|