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

Unified Diff: Source/web/WebViewImpl.cpp

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 | « no previous file | public/web/WebPlugin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 2aa2f8c76b099732489994c76661023d14a81d16..2d0a147bad2700cf0e34d9b46cbec36c59838c09 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -2432,9 +2432,13 @@ WebVector<WebCompositionUnderline> WebViewImpl::compositionUnderlines() const
void WebViewImpl::extendSelectionAndDelete(int before, int after)
{
- const Frame* focused = focusedWebCoreFrame();
+ Frame* focused = focusedWebCoreFrame();
if (!focused)
return;
+ if (WebPlugin* plugin = focusedPluginIfInputMethodSupported(focused)) {
+ plugin->extendSelectionAndDelete(before, after);
+ return;
+ }
focused->inputMethodController().extendSelectionAndDelete(before, after);
}
« no previous file with comments | « no previous file | public/web/WebPlugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698