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

Unified Diff: public/web/WebPlugin.h

Issue 100193005: Add ExtendSelectionAndDelete handler in WebPlugin (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebPlugin.h
diff --git a/public/web/WebPlugin.h b/public/web/WebPlugin.h
index b311da7b153ab69b1d4817d3dc5b76245a7b906c..9f046f2decb9d1932c13abf42a9ae9b2ac12f931 100644
--- a/public/web/WebPlugin.h
+++ b/public/web/WebPlugin.h
@@ -137,6 +137,9 @@ public:
// Confirms an ongoing composition and returns true if there is an ongoing
// composition or the text is inserted.
virtual bool confirmComposition(const WebString& text, WebWidget::ConfirmCompositionBehavior selectionBehavior) { return false; }
+ // Deletes the current selection plus the specified number of characters
+ // before and after the selection or caret.
+ virtual void extendSelectionAndDelete(int before, int after) { }
// If the given position is over a link, returns the absolute url.
// Otherwise an empty url is returned.
virtual WebURL linkAtPosition(const WebPoint& position) const { return WebURL(); }
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698