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

Unified Diff: webkit/glue/webframe_impl.cc

Issue 159542: Add a WebKit API that registers a V8 extension to be loaded into content (Closed)
Patch Set: final Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/webframe_impl.h ('k') | webkit/tools/test_shell/layout_test_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webframe_impl.cc
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc
index d59582aba2017a673bf8f6cfbe703bba25ca07bd..eed9443df32addbd40fd65ab8da41f539ac39b47 100644
--- a/webkit/glue/webframe_impl.cc
+++ b/webkit/glue/webframe_impl.cc
@@ -1603,7 +1603,8 @@ bool WebFrameImpl::InsertCSSStyles(const std::string& css) {
}
void WebFrameImpl::ExecuteScriptInNewContext(
- const WebScriptSource* sources_in, int num_sources) {
+ const WebScriptSource* sources_in, int num_sources,
+ int extension_group) {
Vector<WebCore::ScriptSourceCode> sources;
for (int i = 0; i < num_sources; ++i) {
@@ -1613,11 +1614,12 @@ void WebFrameImpl::ExecuteScriptInNewContext(
sources_in[i].startLine));
}
- frame_->script()->evaluateInNewContext(sources);
+ frame_->script()->evaluateInNewContext(sources, extension_group);
}
void WebFrameImpl::ExecuteScriptInNewWorld(
- const WebScriptSource* sources_in, int num_sources) {
+ const WebScriptSource* sources_in, int num_sources,
+ int extension_group) {
Vector<WebCore::ScriptSourceCode> sources;
for (int i = 0; i < num_sources; ++i) {
@@ -1627,7 +1629,7 @@ void WebFrameImpl::ExecuteScriptInNewWorld(
sources_in[i].startLine));
}
- frame_->script()->evaluateInNewWorld(sources);
+ frame_->script()->evaluateInNewWorld(sources, extension_group);
}
std::wstring WebFrameImpl::GetName() {
« no previous file with comments | « webkit/glue/webframe_impl.h ('k') | webkit/tools/test_shell/layout_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698