Add webframe. executeJavaScriptInIsolatedWorld

Attempt runInIsolatedWorldContext

Replace RunInIsolatedWorldContext by GetIsolatedWorldGlobalObject

Fix linting

Remove useless getIsolatedWorldGlobalObject

Add support for scriptExecutionType
This commit is contained in:
Alexandre Lachèze 2017-08-30 23:31:21 +02:00 committed by Cheng Zhao
parent f01cbf0482
commit 936d8c1117
2 changed files with 54 additions and 0 deletions

View file

@ -7,6 +7,7 @@
#include <memory>
#include <string>
#include <vector>
#include "atom/renderer/guest_view_container.h"
#include "native_mate/handle.h"
@ -73,6 +74,9 @@ class WebFrame : public mate::Wrappable<WebFrame> {
// Excecuting scripts.
void ExecuteJavaScript(const base::string16& code, mate::Arguments* args);
void ExecuteJavaScriptInIsolatedWorld(int world_id,
const base::string16& code,
mate::Arguments* args);
// Resource related methods
blink::WebCache::ResourceTypeStats GetResourceUsage(v8::Isolate* isolate);