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

Unified Diff: android_webview/browser/aw_contents.cc

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/browser/aw_contents.cc
diff --git a/android_webview/browser/aw_contents.cc b/android_webview/browser/aw_contents.cc
index e053c9616417e8471c2320af64b7da2327d24449..b4b1cdd4a0e0aff5941e62e32191ab9d0428560a 100644
--- a/android_webview/browser/aw_contents.cc
+++ b/android_webview/browser/aw_contents.cc
@@ -1398,6 +1398,22 @@ bool AwContents::CanShowBigInterstitial() {
return Java_AwContents_canShowBigInterstitial(env, obj);
}
+bool AwContents::CanShowInterstitial() {
+ JNIEnv* env = AttachCurrentThread();
+ const ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
+ if (obj.is_null())
+ return false;
+ return Java_AwContents_canShowInterstitial(env, obj);
+}
+
+bool AwContents::ExtendsOutOfWindow() {
+ JNIEnv* env = AttachCurrentThread();
+ const ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
+ if (obj.is_null())
+ return false;
+ return Java_AwContents_extendsOutOfWindow(env, obj);
+}
+
void AwContents::CallProceedOnInterstitialForTesting(
JNIEnv* env,
const base::android::JavaParamRef<jobject>& obj) {

Powered by Google App Engine
This is Rietveld 408576698