Home | History | Annotate | Download | only in common
      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     // 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     // 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";
     29 
     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";
     33 
     34     // Disables exposing web content using Android's accessibility
     35     // framework and enables the (older) javascript injection accessibility.
     36     // TODO(dmazzoni): remove this after native accessibility is in stable.
     37     // http://crbug.com/356775
     38     public static final String ENABLE_ACCESSIBILITY_SCRIPT_INJECTION =
     39             "enable-accessibility-script-injection";
     40 
     41     // Sets the ISO country code that will be used for phone number detection.
     42     public static final String NETWORK_COUNTRY_ISO = "network-country-iso";
     43 
     44     // Whether to enable the auto-hiding top controls.
     45     public static final String ENABLE_TOP_CONTROLS_POSITION_CALCULATION =
     46             "enable-top-controls-position-calculation";
     47 
     48     // The height of the movable top controls.
     49     public static final String TOP_CONTROLS_HEIGHT = "top-controls-height";
     50 
     51     // How much of the top controls need to be shown before they will auto show.
     52     public static final String TOP_CONTROLS_SHOW_THRESHOLD = "top-controls-show-threshold";
     53 
     54     // How much of the top controls need to be hidden before they will auto hide.
     55     public static final String TOP_CONTROLS_HIDE_THRESHOLD = "top-controls-hide-threshold";
     56 
     57     // Native switch - chrome_switches::kEnableInstantExtendedAPI
     58     public static final String ENABLE_INSTANT_EXTENDED_API = "enable-instant-extended-api";
     59 
     60     // Native switch - content_switches::kEnableSpeechRecognition
     61     public static final String ENABLE_SPEECH_RECOGNITION = "enable-speech-recognition";
     62 
     63     // Native switch - shell_switches::kDumpRenderTree
     64     public static final String DUMP_RENDER_TREE = "dump-render-tree";
     65 
     66     // Native switch - chrome_switches::kDisablePopupBlocking
     67     public static final String DISABLE_POPUP_BLOCKING = "disable-popup-blocking";
     68 
     69     // Native switch - content_switches::kDisableOverlayFullscreenVideoSubtitle
     70     public static final String DISABLE_OVERLAY_FULLSCREEN_VIDEO_SUBTITLE =
     71             "disable-overlay-fullscreen-video-subtitle";
     72 
     73     // Native switch - gfx_switches::kForceDeviceScaleFactor
     74     public static final String FORCE_DEVICE_SCALE_FACTOR =
     75             "force-device-scale-factor";
     76 
     77     // Prevent instantiation.
     78     private ContentSwitches() {}
     79 }
     80