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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.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: content/browser/renderer_host/render_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index f4ed16aa32154ed941c1d8b470f27c05a85e2504..9be092672337a461509892ad6c98ff572a34f97c 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -295,6 +295,11 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
// Cancels an ongoing composition.
void ImeCancelComposition();
+ // Deletes the current selection plus the specified number of characters
+ // before and after the selection or caret.
+ // |before| and |after| can't be negative.
+ void ExtendSelectionAndDelete(int before, int after);
sky 2012/09/14 16:14:11 This is a weird method, why not DeleteRange(const
horo 2012/09/14 16:29:19 Because of the asynchronous IPC between the browse
+
// This is for derived classes to give us access to the resizer rect.
// And to also expose it to the RenderWidgetHostView.
virtual gfx::Rect GetRootWindowResizerRect() const;

Powered by Google App Engine
This is Rietveld 408576698