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

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

Issue 86443002: Changes to enable HTML5 autoplay for voice search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Isolated media autoplay enabler from Tab Created 7 years 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/voice_search_tab_helper.h
diff --git a/chrome/browser/android/voice_search_tab_helper.h b/chrome/browser/android/voice_search_tab_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..407c4281f493a2e122eee01cc3e522a8dc674b89
--- /dev/null
+++ b/chrome/browser/android/voice_search_tab_helper.h
@@ -0,0 +1,24 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_ANDROID_VOICE_SEARCH_TAB_HELPER_H_
+#define CHROME_BROWSER_ANDROID_VOICE_SEARCH_TAB_HELPER_H_
+
+#include "base/android/jni_android.h"
+
+namespace content {
+class WebContents;
+}
+
+class VoiceSearchTabHelper {
+ public:
+ explicit VoiceSearchTabHelper(content::WebContents* web_contents);
+ void SetMediaAutoplayEnabled(JNIEnv* env, jobject obj, jboolean is_enabled);
+
+ private:
+ content::WebContents* web_contents_;
+};
Ted C 2013/12/17 00:59:00 add: DISALLOW_COPY_AND_ASSIGN(VoiceSearchTabHelpe
apiccion 2013/12/17 21:17:11 Done.
+
+bool RegisterVoiceSearchTabHelper(JNIEnv* env);
+#endif // CHROME_BROWSER_ANDROID_VOICE_SEARCH_TAB_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698