Chromium Code Reviews| Index: public/web/WebFrame.h |
| diff --git a/public/web/WebFrame.h b/public/web/WebFrame.h |
| index 0250a19423b095f1649b85f50ec182784bb24d27..5ba22ff4510b5aaeec57c15d292671642114c76d 100644 |
| --- a/public/web/WebFrame.h |
| +++ b/public/web/WebFrame.h |
| @@ -63,6 +63,7 @@ class WebData; |
| class WebDataSource; |
| class WebDocument; |
| class WebElement; |
| +class WebScriptCallback; |
| class WebFormElement; |
| class WebFrameClient; |
| class WebInputElement; |
| @@ -301,12 +302,17 @@ public: |
| // that the script evaluated to. |
| virtual v8::Handle<v8::Value> executeScriptAndReturnValue( |
| const WebScriptSource&) = 0; |
| + virtual void executeScriptAndReturnValue( |
| + const WebScriptSource&, WebScriptCallback*) = 0; |
|
dcheng
2014/10/20 07:13:54
Please address my comments from the first patchset
|
| // worldID must be > 0 (as 0 represents the main world). |
| // worldID must be < EmbedderWorldIdLimit, high number used internally. |
| virtual void executeScriptInIsolatedWorld( |
| int worldID, const WebScriptSource* sourcesIn, unsigned numSources, |
| int extensionGroup, WebVector<v8::Local<v8::Value> >* results) = 0; |
| + virtual void executeScriptInIsolatedWorld( |
| + int worldID, const WebScriptSource* sourcesIn, unsigned numSources, |
| + int extensionGroup, WebScriptCallback*) = 0; |
| // Call the function with the given receiver and arguments, bypassing |
| // canExecute(). |