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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/VoiceSearchTabHelper.java

Issue 447353002: Enable HTMLMediaElement@autoplay on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More removals Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.chrome.browser;
6
7 import org.chromium.content.browser.WebContentsObserverAndroid;
8 import org.chromium.content_public.browser.WebContents;
9
10 /**
11 * Tab helper to toggle media autoplay for voice URL searches.
12 */
13 public class VoiceSearchTabHelper extends WebContentsObserverAndroid {
14 private final WebContents mWebContents;
15
16 /**
17 * Create an instance of VoiceSearchTabHelper.
18 *
19 * @param webContents WebContents to update media autoplay status.
20 */
21 public VoiceSearchTabHelper(WebContents webContents) {
22 super(webContents);
23 mWebContents = webContents;
24 }
25
26 @Override
27 public void navigationEntryCommitted() {
28 nativeUpdateAutoplayStatus(mWebContents);
29 }
30
31 private native void nativeUpdateAutoplayStatus(WebContents webContents);
32 }
OLDNEW
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/Tab.java ('k') | chrome/browser/about_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698