| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |