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 mode is enabled. 35 public static final String ACCESSIBILITY_JAVASCRIPT_URL = "accessibility-js-url"; 36 37 // Whether to ignore signature mismatches when connecting to BrailleBack's 38 // SelfBrailleService. 39 public static final String ACCESSIBILITY_DEBUG_BRAILLE_SERVICE = "debug-braille-service"; 40 41 // Whether to always expose web content using Android's accessibility 42 // framework instead of injecting javascript for accessibility. 43 public static final String DISABLE_ACCESSIBILITY_SCRIPT_INJECTION = 44 "disable-accessibility-script-injection"; 45 46 // Sets the ISO country code that will be used for phone number detection. 47 public static final String NETWORK_COUNTRY_ISO = "network-country-iso"; 48 49 // Whether to enable the auto-hiding top controls. 50 public static final String ENABLE_TOP_CONTROLS_POSITION_CALCULATION = 51 "enable-top-controls-position-calculation"; 52 53 // The height of the movable top controls. 54 public static final String TOP_CONTROLS_HEIGHT = "top-controls-height"; 55 56 // How much of the top controls need to be shown before they will auto show. 57 public static final String TOP_CONTROLS_SHOW_THRESHOLD = "top-controls-show-threshold"; 58 59 // How much of the top controls need to be hidden before they will auto hide. 60 public static final String TOP_CONTROLS_HIDE_THRESHOLD = "top-controls-hide-threshold"; 61 62 // Native switch - chrome_switches::kEnableInstantExtendedAPI 63 public static final String ENABLE_INSTANT_EXTENDED_API = "enable-instant-extended-api"; 64 65 // Native switch - content_switches::kEnableSpeechRecognition 66 public static final String ENABLE_SPEECH_RECOGNITION = "enable-speech-recognition"; 67 68 // Native switch - shell_switches::kDumpRenderTree 69 public static final String DUMP_RENDER_TREE = "dump-render-tree"; 70 71 // Native switch - chrome_switches::kDisablePopupBlocking 72 public static final String DISABLE_POPUP_BLOCKING = "disable-popup-blocking"; 73 74 // Whether to disable the click delay by sending click events during double tap 75 public static final String DISABLE_CLICK_DELAY = "disable-click-delay"; 76 77 // Prevent instantiation. 78 private ContentSwitches() {} 79 } 80