ContentSwitches.java revision e5d81f57cb97b3b6b7fccc9c5610d21eb81db09d
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
5package 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 */
11public 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    // Dump frames-per-second to the log
22    public static final String LOG_FPS = "log-fps";
23
24    // Whether Chromium should use a mobile user agent.
25    public static final String USE_MOBILE_UA = "use-mobile-user-agent";
26
27    // tablet specific UI components.
28    // Native switch - chrome_switches::kTabletUI
29    public static final String TABLET_UI = "tablet-ui";
30
31    // Change the url of the JavaScript that gets injected when accessibility mode is enabled.
32    public static final String ACCESSIBILITY_JAVASCRIPT_URL = "accessibility-js-url";
33
34    // Whether to ignore signature mismatches when connecting to BrailleBack's
35    // SelfBrailleService.
36    public static final String ACCESSIBILITY_DEBUG_BRAILLE_SERVICE = "debug-braille-service";
37
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";
44
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";
47
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";
51
52    // The height of the movable top controls.
53    public static final String TOP_CONTROLS_HEIGHT = "top-controls-height";
54
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";
57
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";
60
61    // Native switch - chrome_switches::kEnableInstantExtendedAPI
62    public static final String ENABLE_INSTANT_EXTENDED_API = "enable-instant-extended-api";
63
64    // Native switch - content_switches::kEnableSpeechRecognition
65    public static final String ENABLE_SPEECH_RECOGNITION = "enable-speech-recognition";
66
67    // Native switch - shell_switches::kDumpRenderTree
68    public static final String DUMP_RENDER_TREE = "dump-render-tree";
69
70    // Native switch - chrome_switches::kDisablePopupBlocking
71    public static final String DISABLE_POPUP_BLOCKING = "disable-popup-blocking";
72
73    // Native switch - content_switches::kDisableOverlayFullscreenVideoSubtitle
74    public static final String DISABLE_OVERLAY_FULLSCREEN_VIDEO_SUBTITLE =
75            "disable-overlay-fullscreen-video-subtitle";
76
77    // Native switch - gfx_switches::kForceDeviceScaleFactor
78    public static final String FORCE_DEVICE_SCALE_FACTOR =
79            "force-device-scale-factor";
80
81    // Prevent instantiation.
82    private ContentSwitches() {}
83}
84