diff options
author | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 18:26:51 +0000 |
---|---|---|
committer | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 18:26:51 +0000 |
commit | 98d7127b558c6de8121ed9ff8c299b30afb6143b (patch) | |
tree | 0748804eee8744a5642905ac1c4b496f87fc85e6 /chrome/test/render_view_test.cc | |
parent | 5e34bc403af2328e80765406eace2f49f63e7d79 (diff) | |
download | chromium_src-98d7127b558c6de8121ed9ff8c299b30afb6143b.zip chromium_src-98d7127b558c6de8121ed9ff8c299b30afb6143b.tar.gz chromium_src-98d7127b558c6de8121ed9ff8c299b30afb6143b.tar.bz2 |
Introduce WebScriptController for script related methods.
Made it into a class with static methods.
BUG=24602
TEST=Compiled Webkit/Chromium and Try Bot'd
Review URL: http://codereview.chromium.org/308015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29912 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/render_view_test.cc')
-rw-r--r-- | chrome/test/render_view_test.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/chrome/test/render_view_test.cc b/chrome/test/render_view_test.cc index 69f7d8f..f80c845 100644 --- a/chrome/test/render_view_test.cc +++ b/chrome/test/render_view_test.cc @@ -24,6 +24,7 @@ #include "webkit/glue/webkit_glue.h" using WebKit::WebFrame; +using WebKit::WebScriptController; using WebKit::WebScriptSource; using WebKit::WebString; using WebKit::WebURLRequest; @@ -74,12 +75,12 @@ void RenderViewTest::SetUp() { // hacky, but this is the world we live in... webkit_glue::SetJavaScriptFlags(L" --expose-gc"); WebKit::initialize(&webkitclient_); - WebKit::registerExtension(BaseJsV8Extension::Get()); - WebKit::registerExtension(JsonSchemaJsV8Extension::Get()); - WebKit::registerExtension(EventBindings::Get()); - WebKit::registerExtension(ExtensionApiTestV8Extension::Get()); - WebKit::registerExtension(ExtensionProcessBindings::Get()); - WebKit::registerExtension(RendererExtensionBindings::Get()); + WebScriptController::registerExtension(BaseJsV8Extension::Get()); + WebScriptController::registerExtension(JsonSchemaJsV8Extension::Get()); + WebScriptController::registerExtension(EventBindings::Get()); + WebScriptController::registerExtension(ExtensionApiTestV8Extension::Get()); + WebScriptController::registerExtension(ExtensionProcessBindings::Get()); + WebScriptController::registerExtension(RendererExtensionBindings::Get()); EventBindings::SetRenderThread(&render_thread_); // TODO(aa): Should some of this go to some other inheriting class? |