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

Unified Diff: ui/views/ime/input_method_bridge.cc

Issue 10928199: Add ExtendSelectionAndDelete() method to ui::TextInputClient. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: change int to size_t 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
« no previous file with comments | « ui/views/ime/input_method_bridge.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/ime/input_method_bridge.cc
diff --git a/ui/views/ime/input_method_bridge.cc b/ui/views/ime/input_method_bridge.cc
index ef7d5440d48a05e8d2d55635e6ccef26011050b9..438e33087af2afa573bbc2273ad82c251bd98abb 100644
--- a/ui/views/ime/input_method_bridge.cc
+++ b/ui/views/ime/input_method_bridge.cc
@@ -213,6 +213,12 @@ bool InputMethodBridge::ChangeTextDirectionAndLayoutAlignment(
client->ChangeTextDirectionAndLayoutAlignment(direction) : false;
}
+void InputMethodBridge::ExtendSelectionAndDelete(size_t before, size_t after) {
+ TextInputClient* client = GetTextInputClient();
+ if (client)
+ client->ExtendSelectionAndDelete(before, after);
+}
+
// Overridden from FocusChangeListener.
void InputMethodBridge::OnWillChangeFocus(View* focused_before, View* focused) {
ConfirmCompositionText();
« no previous file with comments | « ui/views/ime/input_method_bridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698