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

Side by Side Diff: content/public/android/java/src/org/chromium/content/common/ContentSwitches.java

Issue 2640143002: Allow autoplay unmuted for WebAPK in the manifest scope (Closed)
Patch Set: addressed mlamouri's comments & cl format 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.content.common; 5 package org.chromium.content.common;
6 6
7 /** 7 /**
8 * Contains all of the command line switches that are specific to the content/ 8 * Contains all of the command line switches that are specific to the content/
9 * portion of Chromium on Android. 9 * portion of Chromium on Android.
10 */ 10 */
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // Native switch - chrome_switches::kDisablePopupBlocking 42 // Native switch - chrome_switches::kDisablePopupBlocking
43 public static final String DISABLE_POPUP_BLOCKING = "disable-popup-blocking" ; 43 public static final String DISABLE_POPUP_BLOCKING = "disable-popup-blocking" ;
44 44
45 // Native switch kEnableCredentialManagerAPI 45 // Native switch kEnableCredentialManagerAPI
46 public static final String ENABLE_CREDENTIAL_MANAGER_API = "enable-credentia l-manager-api"; 46 public static final String ENABLE_CREDENTIAL_MANAGER_API = "enable-credentia l-manager-api";
47 47
48 // Native switch kDisableGestureRequirementForMediaPlayback 48 // Native switch kDisableGestureRequirementForMediaPlayback
49 public static final String DISABLE_GESTURE_REQUIREMENT_FOR_MEDIA_PLAYBACK = 49 public static final String DISABLE_GESTURE_REQUIREMENT_FOR_MEDIA_PLAYBACK =
50 "disable-gesture-requirement-for-media-playback"; 50 "disable-gesture-requirement-for-media-playback";
51 51
52 // Native switch kMediaPlaybackGestureWhitelistScope
53 public static final String MEDIA_PLAYBACK_GESTURE_WHITELIST_SCOPE =
54 "media-playback-gesture-whitelist-scope";
55
52 // Native switch kDisableGestureRequirementForPresentation 56 // Native switch kDisableGestureRequirementForPresentation
53 public static final String DISABLE_GESTURE_REQUIREMENT_FOR_PRESENTATION = 57 public static final String DISABLE_GESTURE_REQUIREMENT_FOR_PRESENTATION =
54 "disable-gesture-requirement-for-presentation"; 58 "disable-gesture-requirement-for-presentation";
55 59
56 // Native switch kRendererProcessLimit 60 // Native switch kRendererProcessLimit
57 public static final String RENDER_PROCESS_LIMIT = "renderer-process-limit"; 61 public static final String RENDER_PROCESS_LIMIT = "renderer-process-limit";
58 62
59 // Native switch kInProcessGPU 63 // Native switch kInProcessGPU
60 public static final String IN_PROCESS_GPU = "in-process-gpu"; 64 public static final String IN_PROCESS_GPU = "in-process-gpu";
61 65
(...skipping 22 matching lines...) Expand all
84 // This format should be matched with the one defined in command_line.h. 88 // This format should be matched with the one defined in command_line.h.
85 final String switchKeyPrefix = "--" + switchKey + "="; 89 final String switchKeyPrefix = "--" + switchKey + "=";
86 for (String command : commandLine) { 90 for (String command : commandLine) {
87 if (command != null && command.startsWith(switchKeyPrefix)) { 91 if (command != null && command.startsWith(switchKeyPrefix)) {
88 return command.substring(switchKeyPrefix.length()); 92 return command.substring(switchKeyPrefix.length());
89 } 93 }
90 } 94 }
91 return null; 95 return null;
92 } 96 }
93 } 97 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698