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

Unified Diff: Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp

Issue 14188004: Remove UserScript support, which is not used by Chromium (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove one more test Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp
diff --git a/Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp b/Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp
index 761a3c794756644c6a3ebb77944514ea29ec81f3..f53017c6ada3be636265a0841143d0e1d639eff2 100644
--- a/Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp
+++ b/Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp
@@ -192,7 +192,6 @@ TestRunner::TestRunner(TestInterfaces* interfaces)
bindMethod("removeOriginAccessWhitelistEntry", &TestRunner::removeOriginAccessWhitelistEntry);
bindMethod("hasCustomPageSizeStyle", &TestRunner::hasCustomPageSizeStyle);
bindMethod("forceRedSelectionColors", &TestRunner::forceRedSelectionColors);
- bindMethod("addUserScript", &TestRunner::addUserScript);
bindMethod("addUserStyleSheet", &TestRunner::addUserStyleSheet);
bindMethod("startSpeechInput", &TestRunner::startSpeechInput);
bindMethod("findString", &TestRunner::findString);
@@ -1264,17 +1263,6 @@ void TestRunner::forceRedSelectionColors(const CppArgumentList& arguments, CppVa
m_webView->setSelectionColors(0xffee0000, 0xff00ee00, 0xff000000, 0xffc0c0c0);
}
-void TestRunner::addUserScript(const CppArgumentList& arguments, CppVariant* result)
-{
- result->setNull();
- if (arguments.size() < 3 || !arguments[0].isString() || !arguments[1].isBool() || !arguments[2].isBool())
- return;
- WebView::addUserScript(
- cppVariantToWebString(arguments[0]), WebVector<WebString>(),
- arguments[1].toBoolean() ? WebView::UserScriptInjectAtDocumentStart : WebView::UserScriptInjectAtDocumentEnd,
- arguments[2].toBoolean() ? WebView::UserContentInjectInAllFrames : WebView::UserContentInjectInTopFrameOnly);
-}
-
void TestRunner::addUserStyleSheet(const CppArgumentList& arguments, CppVariant* result)
{
result->setNull();
« no previous file with comments | « Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698