OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.content.common; |
| 6 |
| 7 /** |
| 8 * Contains all of the command line switches that are specific to the content/ |
| 9 * portion of Chromium on Android. |
| 10 */ |
| 11 public abstract class ContentSwitches { |
| 12 // Tell Java to use the official command line, loaded from the |
| 13 // official-command-line.xml files. WARNING this is not done |
| 14 // immediately on startup, so early running Java code will not see |
| 15 // these flags. |
| 16 public static final String ADD_OFFICIAL_COMMAND_LINE = "add-official-command
-line"; |
| 17 |
| 18 // Enables test intent handling. |
| 19 public static final String ENABLE_TEST_INTENTS = "enable-test-intents"; |
| 20 |
| 21 // Adds additional thread idle time information into the trace event output. |
| 22 public static final String ENABLE_IDLE_TRACING = "enable-idle-tracing"; |
| 23 |
| 24 // Dump frames-per-second to the log |
| 25 public static final String LOG_FPS = "log-fps"; |
| 26 |
| 27 // Whether Chromium should use a mobile user agent. |
| 28 public static final String USE_MOBILE_UA = "use-mobile-user-agent"; |
| 29 |
| 30 // tablet specific UI components. |
| 31 // Native switch - chrome_switches::kTabletUI |
| 32 public static final String TABLET_UI = "tablet-ui"; |
| 33 |
| 34 // Change the url of the JavaScript that gets injected when accessibility mo
de is enabled. |
| 35 public static final String ACCESSIBILITY_JAVASCRIPT_URL = "accessibility-js-
url"; |
| 36 |
| 37 public static final String ACCESSIBILITY_DEBUG_BRAILLE_SERVICE = "debug-brai
lle-service"; |
| 38 |
| 39 // Sets the ISO country code that will be used for phone number detection. |
| 40 public static final String NETWORK_COUNTRY_ISO = "network-country-iso"; |
| 41 |
| 42 // Whether to enable the auto-hiding top controls. |
| 43 public static final String ENABLE_TOP_CONTROLS_POSITION_CALCULATION |
| 44 = "enable-top-controls-position-calculation"; |
| 45 |
| 46 // The height of the movable top controls. |
| 47 public static final String TOP_CONTROLS_HEIGHT = "top-controls-height"; |
| 48 |
| 49 // How much of the top controls need to be shown before they will auto show. |
| 50 public static final String TOP_CONTROLS_SHOW_THRESHOLD = "top-controls-show-
threshold"; |
| 51 |
| 52 // How much of the top controls need to be hidden before they will auto hide
. |
| 53 public static final String TOP_CONTROLS_HIDE_THRESHOLD = "top-controls-hide-
threshold"; |
| 54 |
| 55 // Native switch - chrome_switches::kEnableInstantExtendedAPI |
| 56 public static final String ENABLE_INSTANT_EXTENDED_API = "enable-instant-ext
ended-api"; |
| 57 |
| 58 // Native switch - content_switches::kEnableSpeechRecognition |
| 59 public static final String ENABLE_SPEECH_RECOGNITION = "enable-speech-recogn
ition"; |
| 60 |
| 61 // Native switch - shell_switches::kDumpRenderTree |
| 62 public static final String DUMP_RENDER_TREE = "dump-render-tree"; |
| 63 |
| 64 // Native switch - chrome_switches::kDisablePopupBlocking |
| 65 public static final String DISABLE_POPUP_BLOCKING = "disable-popup-blocking"
; |
| 66 |
| 67 // Whether to disable the click delay by sending click events during double
tap |
| 68 public static final String DISABLE_CLICK_DELAY = "disable-click-delay"; |
| 69 |
| 70 // Prevent instantiation. |
| 71 private ContentSwitches() {} |
| 72 }; |
OLD | NEW |