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

Unified Diff: android_webview/browser/aw_contents.cc

Issue 2898593002: WebView: choose loud vs. quiet interstitial (Closed)
Patch Set: Rebase and fix patch conflict 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 7e2006610458b66fc9f4b4e89c9a817e3865ad70..3e95ce92d387e1ea201fa514dae951d52848be2c 100644
--- a/android_webview/browser/aw_contents.cc
+++ b/android_webview/browser/aw_contents.cc
@@ -1406,6 +1406,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