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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 // How much of the browser controls need to be hidden before they will auto
hide. | 36 // How much of the browser controls need to be hidden before they will auto
hide. |
37 public static final String TOP_CONTROLS_HIDE_THRESHOLD = "top-controls-hide-
threshold"; | 37 public static final String TOP_CONTROLS_HIDE_THRESHOLD = "top-controls-hide-
threshold"; |
38 | 38 |
39 // Native switch - shell_switches::kRunLayoutTest | 39 // Native switch - shell_switches::kRunLayoutTest |
40 public static final String RUN_LAYOUT_TEST = "run-layout-test"; | 40 public static final String RUN_LAYOUT_TEST = "run-layout-test"; |
41 | 41 |
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 | |
46 public static final String ENABLE_CREDENTIAL_MANAGER_API = "enable-credentia
l-manager-api"; | |
47 | |
48 // Native switch kDisableGestureRequirementForPresentation | 45 // Native switch kDisableGestureRequirementForPresentation |
49 public static final String DISABLE_GESTURE_REQUIREMENT_FOR_PRESENTATION = | 46 public static final String DISABLE_GESTURE_REQUIREMENT_FOR_PRESENTATION = |
50 "disable-gesture-requirement-for-presentation"; | 47 "disable-gesture-requirement-for-presentation"; |
51 | 48 |
52 // Native switch kRendererProcessLimit | 49 // Native switch kRendererProcessLimit |
53 public static final String RENDER_PROCESS_LIMIT = "renderer-process-limit"; | 50 public static final String RENDER_PROCESS_LIMIT = "renderer-process-limit"; |
54 | 51 |
55 // Native switch kInProcessGPU | 52 // Native switch kInProcessGPU |
56 public static final String IN_PROCESS_GPU = "in-process-gpu"; | 53 public static final String IN_PROCESS_GPU = "in-process-gpu"; |
57 | 54 |
(...skipping 23 matching lines...) Expand all Loading... |
81 // This format should be matched with the one defined in command_line.h. | 78 // This format should be matched with the one defined in command_line.h. |
82 final String switchKeyPrefix = "--" + switchKey + "="; | 79 final String switchKeyPrefix = "--" + switchKey + "="; |
83 for (String command : commandLine) { | 80 for (String command : commandLine) { |
84 if (command != null && command.startsWith(switchKeyPrefix)) { | 81 if (command != null && command.startsWith(switchKeyPrefix)) { |
85 return command.substring(switchKeyPrefix.length()); | 82 return command.substring(switchKeyPrefix.length()); |
86 } | 83 } |
87 } | 84 } |
88 return null; | 85 return null; |
89 } | 86 } |
90 } | 87 } |
OLD | NEW |