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.
5 package org.chromium.content.common;
8 * Contains all of the command line switches that are specific to the content/
9 * portion of Chromium on Android.
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
16 public static final String ADD_OFFICIAL_COMMAND_LINE = "add-official-command-line";
18 // Enables test intent handling.
19 public static final String ENABLE_TEST_INTENTS = "enable-test-intents";
21 // Dump frames-per-second to the log
22 public static final String LOG_FPS = "log-fps";
24 // Whether Chromium should use a mobile user agent.
25 public static final String USE_MOBILE_UA = "use-mobile-user-agent";
27 // Change the url of the JavaScript that gets injected when accessibility mode is enabled.
28 public static final String ACCESSIBILITY_JAVASCRIPT_URL = "accessibility-js-url";
30 // Whether to ignore signature mismatches when connecting to BrailleBack's
31 // SelfBrailleService.
32 public static final String ACCESSIBILITY_DEBUG_BRAILLE_SERVICE = "debug-braille-service";
34 // Indicates Chrome is running for performance benchmark.
35 public static final String RUNNING_PERFORMANCE_BENCHMARK =
36 "running-performance-benchmark";
38 // Disables exposing web content using Android's accessibility
39 // framework and enables the (older) javascript injection accessibility.
40 // TODO(dmazzoni): remove this after native accessibility is in stable.
41 // http://crbug.com/356775
42 public static final String ENABLE_ACCESSIBILITY_SCRIPT_INJECTION =
43 "enable-accessibility-script-injection";
45 // Sets the ISO country code that will be used for phone number detection.
46 public static final String NETWORK_COUNTRY_ISO = "network-country-iso";
48 // Whether to enable the auto-hiding top controls.
49 public static final String ENABLE_TOP_CONTROLS_POSITION_CALCULATION =
50 "enable-top-controls-position-calculation";
52 // The height of the movable top controls.
53 public static final String TOP_CONTROLS_HEIGHT = "top-controls-height";
55 // How much of the top controls need to be shown before they will auto show.
56 public static final String TOP_CONTROLS_SHOW_THRESHOLD = "top-controls-show-threshold";
58 // How much of the top controls need to be hidden before they will auto hide.
59 public static final String TOP_CONTROLS_HIDE_THRESHOLD = "top-controls-hide-threshold";
61 // Native switch - chrome_switches::kEnableInstantExtendedAPI
62 public static final String ENABLE_INSTANT_EXTENDED_API = "enable-instant-extended-api";
64 // Native switch - content_switches::kEnableSpeechRecognition
65 public static final String ENABLE_SPEECH_RECOGNITION = "enable-speech-recognition";
67 // Native switch - shell_switches::kDumpRenderTree
68 public static final String DUMP_RENDER_TREE = "dump-render-tree";
70 // Native switch - chrome_switches::kDisablePopupBlocking
71 public static final String DISABLE_POPUP_BLOCKING = "disable-popup-blocking";
73 // Native switch - gfx_switches::kForceDeviceScaleFactor
74 public static final String FORCE_DEVICE_SCALE_FACTOR =
75 "force-device-scale-factor";
77 // Prevent instantiation.
78 private ContentSwitches() {}