OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 import android.text.TextUtils; | 7 import android.text.TextUtils; |
8 import android.util.Log; | 8 import android.util.Log; |
9 | 9 |
10 import java.io.File; | 10 import java.io.File; |
(...skipping 29 matching lines...) Expand all Loading... |
40 // Unlike renderer-process-limit, this is a hard limit on the number of | 40 // Unlike renderer-process-limit, this is a hard limit on the number of |
41 // concurrent sandboxed processes. | 41 // concurrent sandboxed processes. |
42 public static final String SANDBOXED_SERVICE_LIMIT = "sandboxed-service-limi
t"; | 42 public static final String SANDBOXED_SERVICE_LIMIT = "sandboxed-service-limi
t"; |
43 | 43 |
44 // Dump frames-per-second to the log | 44 // Dump frames-per-second to the log |
45 public static final String LOG_FPS = "log-fps"; | 45 public static final String LOG_FPS = "log-fps"; |
46 | 46 |
47 // Whether Chromium should use a mobile user agent. | 47 // Whether Chromium should use a mobile user agent. |
48 public static final String USE_MOBILE_UA = "use-mobile-user-agent"; | 48 public static final String USE_MOBILE_UA = "use-mobile-user-agent"; |
49 | 49 |
| 50 // tablet specific UI components. |
| 51 // Native switch - chrome_switches::kTabletUI |
| 52 public static final String TABLET_UI = "tablet-ui"; |
| 53 |
50 // Change the url of the JavaScript that gets injected when accessibility mo
de is enabled. | 54 // Change the url of the JavaScript that gets injected when accessibility mo
de is enabled. |
51 public static final String ACCESSIBILITY_JAVASCRIPT_URL = "accessibility-js-
url"; | 55 public static final String ACCESSIBILITY_JAVASCRIPT_URL = "accessibility-js-
url"; |
52 | 56 |
53 // Public abstract interface, implemented in derived classes. | 57 // Public abstract interface, implemented in derived classes. |
54 // All these methods reflect their native-side counterparts. | 58 // All these methods reflect their native-side counterparts. |
55 /** | 59 /** |
56 * Returns true if this command line contains the given switch. | 60 * Returns true if this command line contains the given switch. |
57 * (Switch names ARE case-sensitive). | 61 * (Switch names ARE case-sensitive). |
58 */ | 62 */ |
59 public abstract boolean hasSwitch(String switchString); | 63 public abstract boolean hasSwitch(String switchString); |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 } | 382 } |
379 } | 383 } |
380 | 384 |
381 private static native void nativeReset(); | 385 private static native void nativeReset(); |
382 private static native boolean nativeHasSwitch(String switchString); | 386 private static native boolean nativeHasSwitch(String switchString); |
383 private static native String nativeGetSwitchValue(String switchString); | 387 private static native String nativeGetSwitchValue(String switchString); |
384 private static native void nativeAppendSwitch(String switchString); | 388 private static native void nativeAppendSwitch(String switchString); |
385 private static native void nativeAppendSwitchWithValue(String switchString,
String value); | 389 private static native void nativeAppendSwitchWithValue(String switchString,
String value); |
386 private static native void nativeAppendSwitchesAndArguments(String[] array); | 390 private static native void nativeAppendSwitchesAndArguments(String[] array); |
387 }; | 391 }; |
OLD | NEW |