Overhaul handling tab data updates
Bug: 2127502, 3191165
Pushed some state tracking to the tab for URL, title, favicon,
and lock status. This allowed me to remove many duplicate methods
of updating that data, preventing the UI from getting out of sync
with the web view.
Change-Id: I995caa98068ad03ca37710207b5ab57bb9d801ab
diff --git a/src/com/android/browser/WebViewController.java b/src/com/android/browser/WebViewController.java
index 64e97de..a187af0 100644
--- a/src/com/android/browser/WebViewController.java
+++ b/src/com/android/browser/WebViewController.java
@@ -50,7 +50,7 @@
void onPageFinished(Tab tab, String url);
- void onProgressChanged(Tab tab, int newProgress);
+ void onProgressChanged(Tab tab);
void onReceivedTitle(Tab tab, final String title);
@@ -83,13 +83,15 @@
void showSslCertificateOnError(WebView view, SslErrorHandler handler,
SslError error);
+ void onUserCanceledSsl(Tab tab);
+
void activateVoiceSearchMode(String title);
void revertVoiceSearchMode(Tab tab);
boolean shouldShowErrorConsole();
- void resetTitleAndRevertLockIcon(Tab tab);
+ void onUpdatedLockIcon(Tab tab);
void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType);