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 | 42 |
43 // Native switch - chrome_switches::kEnableInstantExtendedAPI | 43 // Native switch - chrome_switches::kEnableInstantExtendedAPI |
44 public static final String ENABLE_INSTANT_EXTENDED_API = "enable-instant-ext
ended-api"; | 44 public static final String ENABLE_INSTANT_EXTENDED_API = "enable-instant-ext
ended-api"; |
45 | 45 |
46 // Native switch - shell_switches::kRunLayoutTest | 46 // Native switch - shell_switches::kRunLayoutTest |
47 public static final String RUN_LAYOUT_TEST = "run-layout-test"; | 47 public static final String RUN_LAYOUT_TEST = "run-layout-test"; |
48 | 48 |
49 // Native switch - chrome_switches::kDisablePopupBlocking | 49 // Native switch - chrome_switches::kDisablePopupBlocking |
50 public static final String DISABLE_POPUP_BLOCKING = "disable-popup-blocking"
; | 50 public static final String DISABLE_POPUP_BLOCKING = "disable-popup-blocking"
; |
51 | 51 |
52 // Native switch - gfx_switches::kForceDeviceScaleFactor | |
53 public static final String FORCE_DEVICE_SCALE_FACTOR = | |
54 "force-device-scale-factor"; | |
55 | |
56 // Enable mouse hover emulation by holding your finger just over the screen. | 52 // Enable mouse hover emulation by holding your finger just over the screen. |
57 public static final String ENABLE_TOUCH_HOVER = "enable-touch-hover"; | 53 public static final String ENABLE_TOUCH_HOVER = "enable-touch-hover"; |
58 | 54 |
59 // Native switch kEnableCredentialManagerAPI | 55 // Native switch kEnableCredentialManagerAPI |
60 public static final String ENABLE_CREDENTIAL_MANAGER_API = "enable-credentia
l-manager-api"; | 56 public static final String ENABLE_CREDENTIAL_MANAGER_API = "enable-credentia
l-manager-api"; |
61 | 57 |
62 // Native switch kDisableGestureRequirementForMediaPlayback | 58 // Native switch kDisableGestureRequirementForMediaPlayback |
63 public static final String DISABLE_GESTURE_REQUIREMENT_FOR_MEDIA_PLAYBACK = | 59 public static final String DISABLE_GESTURE_REQUIREMENT_FOR_MEDIA_PLAYBACK = |
64 "disable-gesture-requirement-for-media-playback"; | 60 "disable-gesture-requirement-for-media-playback"; |
65 | 61 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // This format should be matched with the one defined in command_line.h. | 94 // This format should be matched with the one defined in command_line.h. |
99 final String switchKeyPrefix = "--" + switchKey + "="; | 95 final String switchKeyPrefix = "--" + switchKey + "="; |
100 for (String command : commandLine) { | 96 for (String command : commandLine) { |
101 if (command != null && command.startsWith(switchKeyPrefix)) { | 97 if (command != null && command.startsWith(switchKeyPrefix)) { |
102 return command.substring(switchKeyPrefix.length()); | 98 return command.substring(switchKeyPrefix.length()); |
103 } | 99 } |
104 } | 100 } |
105 return null; | 101 return null; |
106 } | 102 } |
107 } | 103 } |
OLD | NEW |