summaryrefslogtreecommitdiffstats
path: root/components/web_contents_delegate_android
diff options
context:
space:
mode:
authormnaganov <mnaganov@chromium.org>2015-02-26 04:23:07 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-26 12:23:56 +0000
commite38bb6cdeb1170cb2cd7faae8507dc6c34c58c7d (patch)
treeae75dc1fecdf3c65e27c773aea23790ae48f908c /components/web_contents_delegate_android
parent24c195f8b43b0eb75d1744e4d1eb95d7bd2fb2a6 (diff)
downloadchromium_src-e38bb6cdeb1170cb2cd7faae8507dc6c34c58c7d.zip
chromium_src-e38bb6cdeb1170cb2cd7faae8507dc6c34c58c7d.tar.gz
chromium_src-e38bb6cdeb1170cb2cd7faae8507dc6c34c58c7d.tar.bz2
[Android WebView] Synthesize a fake page loading event on page source modification
When a script modifies page source of a non-committed page, we need to notify clients, so they can update the URL bar to avoid confusion. BUG=458569 Review URL: https://codereview.chromium.org/924833003 Cr-Commit-Position: refs/heads/master@{#318222}
Diffstat (limited to 'components/web_contents_delegate_android')
-rw-r--r--components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java b/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java
index 5ada34b..1c774f0 100644
--- a/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java
+++ b/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java
@@ -8,6 +8,7 @@ import android.view.KeyEvent;
import org.chromium.base.CalledByNative;
import org.chromium.base.JNINamespace;
+import org.chromium.content_public.browser.InvalidateTypes;
import org.chromium.content_public.browser.WebContents;
/**
@@ -25,16 +26,8 @@ public class WebContentsDelegateAndroid {
// Equivalent of WebCore::WebConsoleMessage::LevelError.
public static final int LOG_LEVEL_ERROR = 3;
- // Flags passed to the WebContentsDelegateAndroid.navigationStateChanged to tell it
- // what has changed. Should match the values in invalidate_type.h.
- // Equivalent of InvalidateTypes::INVALIDATE_TYPE_URL.
- public static final int INVALIDATE_TYPE_URL = 1 << 0;
- // Equivalent of InvalidateTypes::INVALIDATE_TYPE_TAB.
- public static final int INVALIDATE_TYPE_TAB = 1 << 1;
- // Equivalent of InvalidateTypes::INVALIDATE_TYPE_LOAD.
- public static final int INVALIDATE_TYPE_LOAD = 1 << 2;
- // Equivalent of InvalidateTypes::INVALIDATE_TYPE_TITLE.
- public static final int INVALIDATE_TYPE_TITLE = 1 << 3;
+ // TODO(mnaganov): Remove after getting rid of downstream usages.
+ public static final int INVALIDATE_TYPE_TAB = InvalidateTypes.TAB;
// The most recent load progress callback received from WebContents, as a percentage.
// Initialize to 100 to indicate that we're not in a loading state.