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

Unified Diff: chrome/browser/android/tab_android.h

Issue 2640023008: Enabling autoplay and fullscreen for downloaded media (Closed)
Patch Set: Changed to override pref from ContentBrowserClient Created 3 years, 10 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: chrome/browser/android/tab_android.h
diff --git a/chrome/browser/android/tab_android.h b/chrome/browser/android/tab_android.h
index 12ee17ca5c34428c89bf490f413b9868056752e9..e01dcd294872d0d38ab05f0e9fb0f93b0c4ea8c9 100644
--- a/chrome/browser/android/tab_android.h
+++ b/chrome/browser/android/tab_android.h
@@ -240,6 +240,13 @@ class TabAndroid : public CoreTabHelperDelegate,
return webapp_manifest_scope_;
}
+ void EnableEmbeddedMediaExperience(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj,
+ jboolean enabled);
+
+ bool ShouldEnableEmbeddedMediaExperience();
mlamouri (slow - plz ping) 2017/02/21 11:33:03 nit: const
shaktisahu 2017/02/21 16:51:57 Done.
+
// Register the Tab's native methods through JNI.
static bool RegisterTabAndroid(JNIEnv* env);
@@ -266,6 +273,7 @@ class TabAndroid : public CoreTabHelperDelegate,
std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_;
std::string webapp_manifest_scope_;
+ bool embedded_media_experience_enabled_;
mlamouri (slow - plz ping) 2017/02/21 11:33:03 You are not initialising this member. Feel free to
shaktisahu 2017/02/21 16:51:56 Done.
DISALLOW_COPY_AND_ASSIGN(TabAndroid);
};

Powered by Google App Engine
This is Rietveld 408576698