Commit 343ccc2c authored by yosin@chromium.org's avatar yosin@chromium.org

Get rid of unused API function WebViewClient:: didExecuteCommand

This patch gets rid of unused API function WebViewClient::didExecuteCommand(),
which is used for counting part of |document.execCommand|. We provide another
counter for |document.execCommand| which counts all commands and partial
counter is no longer used.

This patch is chromium/content part of removing API. Blink part is done by: http://src.chromium.org/viewvc/blink?view=rev&rev=174631

BUG=376154
TEST=n/a; no behavior changes

Review URL: https://codereview.chromium.org/297333002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273180 0039d316-1c4b-4281-b951-d872f2087c98
parent f2253ace
......@@ -1542,15 +1542,6 @@ void RenderViewImpl::didCancelCompositionOnSelectionChange() {
Send(new ViewHostMsg_ImeCancelComposition(routing_id()));
}
void RenderViewImpl::didExecuteCommand(const WebString& command_name) {
const std::string& name = base::UTF16ToUTF8(command_name);
if (StartsWithASCII(name, "Move", true) ||
StartsWithASCII(name, "Insert", true) ||
StartsWithASCII(name, "Delete", true))
return;
RenderThreadImpl::current()->RecordComputedAction(name);
}
bool RenderViewImpl::handleCurrentKeyboardEvent() {
if (edit_commands_.empty())
return false;
......
......@@ -415,7 +415,6 @@ class CONTENT_EXPORT RenderViewImpl
const blink::WebString& path,
blink::WebFileChooserCompletion* chooser_completion);
virtual void didCancelCompositionOnSelectionChange();
virtual void didExecuteCommand(const blink::WebString& command_name);
virtual bool handleCurrentKeyboardEvent();
virtual bool runFileChooser(
const blink::WebFileChooserParams& params,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment