summaryrefslogtreecommitdiffstats
path: root/views/controls/textfield/textfield_views_model.h
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/textfield/textfield_views_model.h')
-rw-r--r--views/controls/textfield/textfield_views_model.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/views/controls/textfield/textfield_views_model.h b/views/controls/textfield/textfield_views_model.h
index 219a8c7..c1fa375 100644
--- a/views/controls/textfield/textfield_views_model.h
+++ b/views/controls/textfield/textfield_views_model.h
@@ -126,6 +126,17 @@ class TextfieldViewsModel {
return GetVisibleText(0U, text_.length());
}
+ // Cuts the currently selected text and puts it to clipboard. Returns true
+ // if text has changed after cutting.
+ bool Cut();
+
+ // Copies the currently selected text and puts it to clipboard.
+ void Copy();
+
+ // Pastes text from the clipboard at current cursor position. Returns true
+ // if text has changed after pasting.
+ bool Paste();
+
private:
friend class NativeTextfieldViews;