Delete onReset and resetJsMessageQueue from CordovaWebView interface

These are implementation details that do not need to be exposed.
This commit is contained in:
Andrew Grieve 2014-06-24 15:26:43 -04:00
parent 4ce5123a12
commit d66bb84924
3 changed files with 6 additions and 17 deletions

View File

@ -1024,14 +1024,10 @@ public class AndroidWebView extends WebView implements CordovaWebView {
return this.pluginManager.onOverrideUrlLoading(url);
}
@Override
public void resetJsMessageQueue() {
this.jsMessageQueue.reset();
}
@Override
public void onReset() {
this.pluginManager.onReset();
void onPageReset() {
boundKeyCodes.clear();
pluginManager.onReset();
jsMessageQueue.reset();
}
@Override

View File

@ -280,14 +280,11 @@ public class AndroidWebViewClient extends WebViewClient implements CordovaWebVie
super.onPageStarted(view, url, favicon);
isCurrentlyLoading = true;
LOG.d(TAG, "onPageStarted(" + url + ")");
// Flush stale messages.
this.appView.resetJsMessageQueue();
// Flush stale messages & reset plugins.
this.appView.onPageReset();
// Broadcast message that page has loaded
this.appView.postMessage("onPageStarted", url);
// Notify all plugins of the navigation, so they can clean up if necessary.
this.appView.onReset();
}
/**

View File

@ -122,10 +122,6 @@ public interface CordovaWebView {
boolean onOverrideUrlLoading(String url);
void resetJsMessageQueue();
void onReset();
int getVisibility();
void incUrlTimeout();