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

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: reflected the review 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/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..4c9f80fef08726cb5735f3c35c24ab40185286aa 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(int before, int after) {
+ TextInputClient* client = GetTextInputClient();
+ if (client)
+ client->ExtendSelectionAndDelete(before, after);
+}
+
// Overridden from FocusChangeListener.
void InputMethodBridge::OnWillChangeFocus(View* focused_before, View* focused) {
ConfirmCompositionText();

Powered by Google App Engine
This is Rietveld 408576698