Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Side by Side Diff: content/public/android/java/src/org/chromium/content/common/ContentSwitches.java

Issue 2443613002: Rename classes related to top controls (Closed)
Patch Set: fix test Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.content.common; 5 package org.chromium.content.common;
6 6
7 /** 7 /**
8 * Contains all of the command line switches that are specific to the content/ 8 * Contains all of the command line switches that are specific to the content/
9 * portion of Chromium on Android. 9 * portion of Chromium on Android.
10 */ 10 */
(...skipping 12 matching lines...) Expand all
23 23
24 // Whether Chromium should use a mobile user agent. 24 // Whether Chromium should use a mobile user agent.
25 public static final String USE_MOBILE_UA = "use-mobile-user-agent"; 25 public static final String USE_MOBILE_UA = "use-mobile-user-agent";
26 26
27 // Change the url of the JavaScript that gets injected when accessibility mo de is enabled. 27 // Change the url of the JavaScript that gets injected when accessibility mo de is enabled.
28 public static final String ACCESSIBILITY_JAVASCRIPT_URL = "accessibility-js- url"; 28 public static final String ACCESSIBILITY_JAVASCRIPT_URL = "accessibility-js- url";
29 29
30 // Sets the ISO country code that will be used for phone number detection. 30 // Sets the ISO country code that will be used for phone number detection.
31 public static final String NETWORK_COUNTRY_ISO = "network-country-iso"; 31 public static final String NETWORK_COUNTRY_ISO = "network-country-iso";
32 32
33 // How much of the top controls need to be shown before they will auto show. 33 // How much of the browser controls need to be shown before they will auto s how.
34 public static final String TOP_CONTROLS_SHOW_THRESHOLD = "top-controls-show- threshold"; 34 public static final String TOP_CONTROLS_SHOW_THRESHOLD = "top-controls-show- threshold";
35 35
36 // How much of the top controls need to be hidden before they will auto hide . 36 // How much of the browser controls need to be hidden before they will auto hide.
37 public static final String TOP_CONTROLS_HIDE_THRESHOLD = "top-controls-hide- threshold"; 37 public static final String TOP_CONTROLS_HIDE_THRESHOLD = "top-controls-hide- threshold";
38 38
39 // Native switch - chrome_switches::kEnableInstantExtendedAPI 39 // Native switch - chrome_switches::kEnableInstantExtendedAPI
40 public static final String ENABLE_INSTANT_EXTENDED_API = "enable-instant-ext ended-api"; 40 public static final String ENABLE_INSTANT_EXTENDED_API = "enable-instant-ext ended-api";
41 41
42 // Native switch - shell_switches::kRunLayoutTest 42 // Native switch - shell_switches::kRunLayoutTest
43 public static final String RUN_LAYOUT_TEST = "run-layout-test"; 43 public static final String RUN_LAYOUT_TEST = "run-layout-test";
44 44
45 // Native switch - chrome_switches::kDisablePopupBlocking 45 // Native switch - chrome_switches::kDisablePopupBlocking
46 public static final String DISABLE_POPUP_BLOCKING = "disable-popup-blocking" ; 46 public static final String DISABLE_POPUP_BLOCKING = "disable-popup-blocking" ;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // This format should be matched with the one defined in command_line.h. 87 // This format should be matched with the one defined in command_line.h.
88 final String switchKeyPrefix = "--" + switchKey + "="; 88 final String switchKeyPrefix = "--" + switchKey + "=";
89 for (String command : commandLine) { 89 for (String command : commandLine) {
90 if (command != null && command.startsWith(switchKeyPrefix)) { 90 if (command != null && command.startsWith(switchKeyPrefix)) {
91 return command.substring(switchKeyPrefix.length()); 91 return command.substring(switchKeyPrefix.length());
92 } 92 }
93 } 93 }
94 return null; 94 return null;
95 } 95 }
96 } 96 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698