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

Unified Diff: ui/base/ime/text_input_client.h

Issue 10928199: Add ExtendSelectionAndDelete() method to ui::TextInputClient. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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: ui/base/ime/text_input_client.h
diff --git a/ui/base/ime/text_input_client.h b/ui/base/ime/text_input_client.h
index 1ecc19063aa85a614cb6373761bae79cfae3082d..14b96018e3b5fd3059935e2152cc9c74ed41b559 100644
--- a/ui/base/ime/text_input_client.h
+++ b/ui/base/ime/text_input_client.h
@@ -127,6 +127,11 @@ class UI_EXPORT TextInputClient {
// Returns false if the operation is not supported.
virtual bool ChangeTextDirectionAndLayoutAlignment(
base::i18n::TextDirection direction) = 0;
+
+ // Deletes the current selection plus the specified number of characters
+ // before and after the selection or caret.
+ // |before| and |after| can't be negative.
sky 2012/09/14 23:16:26 remove comment once you make size_t
horo 2012/09/14 23:50:38 Done.
+ virtual void ExtendSelectionAndDelete(int before, int after) = 0;
};
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698