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

Unified Diff: content/shell/webkit_test_runner.cc

Issue 11573035: [content shell] implement testRunner.execCommand (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment Created 8 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 | « content/shell/webkit_test_runner.h ('k') | content/shell/webkit_test_runner.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/webkit_test_runner.cc
diff --git a/content/shell/webkit_test_runner.cc b/content/shell/webkit_test_runner.cc
index 098afdf1a534b0fad25321f4567aecb601cd3fbf..3fde49b03c825f896e344b7227435f25fc3f4610 100644
--- a/content/shell/webkit_test_runner.cc
+++ b/content/shell/webkit_test_runner.cc
@@ -328,6 +328,12 @@ void WebKitTestRunner::EvaluateInWebInspector(int32_t call_id,
agent->evaluateInWebInspector(call_id, WebString::fromUTF8(script));
}
+void WebKitTestRunner::ExecCommand(const std::string& command,
+ const std::string& value) {
+ render_view()->GetWebView()->focusedFrame()->executeCommand(
+ WebString::fromUTF8(command), WebString::fromUTF8(value));
+}
+
void WebKitTestRunner::NotImplemented(const std::string& object,
const std::string& method) {
Send(new ShellViewHostMsg_NotImplemented(routing_id(), object, method));
« no previous file with comments | « content/shell/webkit_test_runner.h ('k') | content/shell/webkit_test_runner.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698