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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 1889053003: Fix InputConnection.deleteSurroundingText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change for changwan@'s review Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 void WebLocalFrameImpl::extendSelectionAndDelete(int before, int after) 1215 void WebLocalFrameImpl::extendSelectionAndDelete(int before, int after)
1216 { 1216 {
1217 TRACE_EVENT0("blink", "WebLocalFrameImpl::extendSelectionAndDelete"); 1217 TRACE_EVENT0("blink", "WebLocalFrameImpl::extendSelectionAndDelete");
1218 if (WebPlugin* plugin = focusedPluginIfInputMethodSupported()) { 1218 if (WebPlugin* plugin = focusedPluginIfInputMethodSupported()) {
1219 plugin->extendSelectionAndDelete(before, after); 1219 plugin->extendSelectionAndDelete(before, after);
1220 return; 1220 return;
1221 } 1221 }
1222 frame()->inputMethodController().extendSelectionAndDelete(before, after); 1222 frame()->inputMethodController().extendSelectionAndDelete(before, after);
1223 } 1223 }
1224 1224
1225 void WebLocalFrameImpl::deleteSurroundingText(int before, int after)
1226 {
1227 TRACE_EVENT0("blink", "WebLocalFrameImpl::deleteSurroundingText");
1228 if (WebPlugin* plugin = focusedPluginIfInputMethodSupported()) {
1229 plugin->deleteSurroundingText(before, after);
1230 return;
1231 }
1232 frame()->inputMethodController().deleteSurroundingText(before, after);
1233 }
1234
1225 void WebLocalFrameImpl::setCaretVisible(bool visible) 1235 void WebLocalFrameImpl::setCaretVisible(bool visible)
1226 { 1236 {
1227 frame()->selection().setCaretVisible(visible); 1237 frame()->selection().setCaretVisible(visible);
1228 } 1238 }
1229 1239
1230 VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoin t& pointInViewport) 1240 VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoin t& pointInViewport)
1231 { 1241 {
1232 return visiblePositionForContentsPoint(frame()->view()->viewportToContents(p ointInViewport), frame()); 1242 return visiblePositionForContentsPoint(frame()->view()->viewportToContents(p ointInViewport), frame());
1233 } 1243 }
1234 1244
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
2161 { 2171 {
2162 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); 2172 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags));
2163 } 2173 }
2164 2174
2165 void WebLocalFrameImpl::clearActiveFindMatch() 2175 void WebLocalFrameImpl::clearActiveFindMatch()
2166 { 2176 {
2167 ensureTextFinder().clearActiveFindMatch(); 2177 ensureTextFinder().clearActiveFindMatch();
2168 } 2178 }
2169 2179
2170 } // namespace blink 2180 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698