Rename executeApplicationScript -> loadApplicationScript

Reviewed By: davidaurelio

Differential Revision: D2921959

fb-gh-sync-id: 5bf44f5d037f2341000070f59309df0fab72aa29
shipit-source-id: 5bf44f5d037f2341000070f59309df0fab72aa29
This commit is contained in:
Andy Street
2016-02-12 09:09:43 -08:00
committed by facebook-github-bot-5
parent cf7a97cc0f
commit 0de8860a46
13 changed files with 35 additions and 34 deletions

View File

@@ -103,7 +103,7 @@ public class JSDebuggerWebSocketClient implements WebSocketListener {
}
}
public void executeApplicationScript(
public void loadApplicationScript(
String sourceURL,
HashMap<String, String> injectedObjects,
JSDebuggerCallback callback) {

View File

@@ -40,7 +40,7 @@ public interface JavaJSExecutor {
* @param sourceURL url or file location from which script content was loaded
*/
@DoNotStrip
void executeApplicationScript(String script, String sourceURL) throws ProxyExecutorException;
void loadApplicationScript(String script, String sourceURL) throws ProxyExecutorException;
/**
* Execute javascript method within js context

View File

@@ -159,10 +159,10 @@ public class WebsocketJavaScriptExecutor implements JavaJSExecutor {
}
@Override
public void executeApplicationScript(String script, String sourceURL)
public void loadApplicationScript(String script, String sourceURL)
throws ProxyExecutorException {
JSExecutorCallbackFuture callback = new JSExecutorCallbackFuture();
Assertions.assertNotNull(mWebSocketClient).executeApplicationScript(
Assertions.assertNotNull(mWebSocketClient).loadApplicationScript(
sourceURL,
mInjectedObjects,
callback);
@@ -190,7 +190,7 @@ public class WebsocketJavaScriptExecutor implements JavaJSExecutor {
@Override
public void setGlobalVariable(String propertyName, String jsonEncodedValue) {
// Store and use in the next executeApplicationScript() call.
// Store and use in the next loadApplicationScript() call.
mInjectedObjects.put(propertyName, jsonEncodedValue);
}
}