Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 2898593002: WebView: choose loud vs. quiet interstitial (Closed)
Patch Set: Update WebView test for behavior change Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/java/src/org/chromium/android_webview/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index ac2cb98c0c82a15ed565ba82aa13a72128d7f4ad..55aa8ac2b3bd5e14687277fae51dc15f3c3a57cf 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -2917,6 +2917,7 @@ public class AwContents implements SmartClipProvider {
/**
* Determine if at least one edge of the WebView extends over the edge of the window.
*/
+ @CalledByNative
private boolean extendsOutOfWindow() {
int loc[] = new int[2];
mContainerView.getLocationOnScreen(loc);
@@ -2945,6 +2946,7 @@ public class AwContents implements SmartClipProvider {
* @return true if the WebView is visible
*/
@VisibleForTesting
+ @CalledByNative
protected boolean canShowInterstitial() {
return mIsAttachedToWindow && mIsViewVisible;
}

Powered by Google App Engine
This is Rietveld 408576698