blob: 0cc635aec78b3ea36a8653e0ef021b99a9112a4c [file] [log] [blame]
John Reck35e9dd62011-04-25 09:01:54 -07001/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Bijan Amirzada41242f22014-03-21 12:12:18 -070017package com.android.browser;
John Reck35e9dd62011-04-25 09:01:54 -070018
19public interface PreferenceKeys {
20
21 static final String PREF_AUTOFILL_ACTIVE_PROFILE_ID = "autofill_active_profile_id";
22 static final String PREF_DEBUG_MENU = "debug_menu";
23
24 // ----------------------
25 // Keys for accessibility_preferences.xml
26 // ----------------------
27 static final String PREF_MIN_FONT_SIZE = "min_font_size";
28 static final String PREF_TEXT_SIZE = "text_size";
John Reck7dc444b2011-06-16 17:44:29 -070029 static final String PREF_TEXT_ZOOM = "text_zoom";
Mangesh Ghiware67f45c22011-10-12 14:43:32 -070030 static final String PREF_DOUBLE_TAP_ZOOM = "double_tap_zoom";
John Reck92f25f82011-04-26 16:57:10 -070031 static final String PREF_FORCE_USERSCALABLE = "force_userscalable";
Nicolas Roard5d513102011-08-03 15:35:34 -070032 static final String PREF_INVERTED = "inverted";
33 static final String PREF_INVERTED_CONTRAST = "inverted_contrast";
John Reck35e9dd62011-04-25 09:01:54 -070034
35 // ----------------------
36 // Keys for advanced_preferences.xml
37 // ----------------------
38 static final String PREF_AUTOFIT_PAGES = "autofit_pages";
Pankaj Garg32e1b942015-06-03 18:13:24 -070039 static final String PREF_POPUP_WINDOWS = "popup_windows";
John Reck35e9dd62011-04-25 09:01:54 -070040 static final String PREF_DEFAULT_TEXT_ENCODING = "default_text_encoding";
John Reck35e9dd62011-04-25 09:01:54 -070041 static final String PREF_ENABLE_JAVASCRIPT = "enable_javascript";
Bijan Amirzada9b1e9882014-02-26 17:15:46 -080042 static final String PREF_ENABLE_MEMORY_MONITOR = "enable_memory_monitor";
John Reck35e9dd62011-04-25 09:01:54 -070043 static final String PREF_LOAD_PAGE = "load_page";
44 static final String PREF_OPEN_IN_BACKGROUND = "open_in_background";
John Reck35e9dd62011-04-25 09:01:54 -070045 static final String PREF_RESET_DEFAULT_PREFERENCES = "reset_default_preferences";
46 static final String PREF_SEARCH_ENGINE = "search_engine";
47 static final String PREF_WEBSITE_SETTINGS = "website_settings";
Michael Kolb8d772b02012-01-19 13:56:00 -080048 static final String PREF_ALLOW_APP_TABS = "allow_apptabs";
luxiaol62677b02013-07-22 07:54:49 +080049 // Keys for download path settings
50 static final String PREF_DOWNLOAD_PATH = "download_path_setting_screen";
John Reck35e9dd62011-04-25 09:01:54 -070051 // ----------------------
52 // Keys for debug_preferences.xml
53 // ----------------------
54 static final String PREF_ENABLE_HARDWARE_ACCEL = "enable_hardware_accel";
Derek Sollenberger31adf672011-07-08 11:31:30 -040055 static final String PREF_ENABLE_HARDWARE_ACCEL_SKIA = "enable_hardware_accel_skia";
John Reck35e9dd62011-04-25 09:01:54 -070056
57 // ----------------------
58 // Keys for general_preferences.xml
59 // ----------------------
60 static final String PREF_AUTOFILL_ENABLED = "autofill_enabled";
61 static final String PREF_AUTOFILL_PROFILE = "autofill_profile";
62 static final String PREF_HOMEPAGE = "homepage";
Site Maoabb7bd32015-03-20 15:34:02 -070063 static final String PREF_POWERSAVE_ENABLED = "powersave_enabled";
Yida Wang078425c2015-06-02 14:14:06 -040064 static final String PREF_NIGHTMODE_ENABLED = "nightmode_enabled";
John Reck35e9dd62011-04-25 09:01:54 -070065 static final String PREF_SYNC_WITH_CHROME = "sync_with_chrome";
66
67 // ----------------------
68 // Keys for hidden_debug_preferences.xml
69 // ----------------------
70 static final String PREF_ENABLE_LIGHT_TOUCH = "enable_light_touch";
71 static final String PREF_ENABLE_NAV_DUMP = "enable_nav_dump";
72 static final String PREF_ENABLE_TRACING = "enable_tracing";
73 static final String PREF_ENABLE_VISUAL_INDICATOR = "enable_visual_indicator";
Teng-Hui Zhu85de57a2011-09-22 15:34:29 -070074 static final String PREF_ENABLE_CPU_UPLOAD_PATH = "enable_cpu_upload_path";
John Reck35e9dd62011-04-25 09:01:54 -070075 static final String PREF_JS_ENGINE_FLAGS = "js_engine_flags";
76 static final String PREF_NORMAL_LAYOUT = "normal_layout";
77 static final String PREF_SMALL_SCREEN = "small_screen";
78 static final String PREF_WIDE_VIEWPORT = "wide_viewport";
John Reckba287c22011-07-26 16:13:53 -070079 static final String PREF_RESET_PRELOGIN = "reset_prelogin";
John Reck35e9dd62011-04-25 09:01:54 -070080
81 // ----------------------
82 // Keys for lab_preferences.xml
83 // ----------------------
Michael Kolbc38c6042011-04-27 10:46:06 -070084 static final String PREF_FULLSCREEN = "fullscreen";
John Reck35e9dd62011-04-25 09:01:54 -070085
86 // ----------------------
87 // Keys for privacy_security_preferences.xml
88 // ----------------------
Pankaj Gargb3b57462014-11-18 17:28:30 -080089 static final String PREF_CLEAR_SELECTED_DATA = "privacy_clear_selected";
John Reck35e9dd62011-04-25 09:01:54 -070090 static final String PREF_ACCEPT_COOKIES = "accept_cookies";
91 static final String PREF_ENABLE_GEOLOCATION = "enable_geolocation";
92 static final String PREF_PRIVACY_CLEAR_CACHE = "privacy_clear_cache";
93 static final String PREF_PRIVACY_CLEAR_COOKIES = "privacy_clear_cookies";
94 static final String PREF_PRIVACY_CLEAR_FORM_DATA = "privacy_clear_form_data";
95 static final String PREF_PRIVACY_CLEAR_GEOLOCATION_ACCESS = "privacy_clear_geolocation_access";
96 static final String PREF_PRIVACY_CLEAR_HISTORY = "privacy_clear_history";
97 static final String PREF_PRIVACY_CLEAR_PASSWORDS = "privacy_clear_passwords";
98 static final String PREF_REMEMBER_PASSWORDS = "remember_passwords";
99 static final String PREF_SAVE_FORMDATA = "save_formdata";
100 static final String PREF_SHOW_SECURITY_WARNINGS = "show_security_warnings";
Axesh R. Ajmera2e241242014-05-19 15:53:38 -0700101 static final String PREF_DO_NOT_TRACK = "do_not_track";
Pankaj Gargdbdf5aa2015-07-16 15:22:37 -0700102 static final String PREF_WEB_REFINER = "web_refiner";
John Reck35e9dd62011-04-25 09:01:54 -0700103
Michael Kolb14612442011-06-24 13:06:29 -0700104 // ----------------------
105 // Keys for bandwidth_preferences.xml
106 // ----------------------
Mathew Inwood467813f2011-09-02 15:43:17 +0100107 static final String PREF_DATA_PRELOAD = "preload_when";
Victoria Lease96497832012-03-23 14:19:56 -0700108 static final String PREF_LINK_PREFETCH = "link_prefetch_when";
John Reck1a435e72011-07-08 10:42:19 -0700109 static final String PREF_LOAD_IMAGES = "load_images";
Michael Kolb14612442011-06-24 13:06:29 -0700110
George Mount3636d0a2011-11-21 09:08:21 -0800111 // ----------------------
112 // Keys for browser recovery
113 // ----------------------
114 /**
115 * The last time recovery was started as System.currentTimeMillis.
116 * 0 if not set.
117 */
118 static final String KEY_LAST_RECOVERED = "last_recovered";
119
120 /**
121 * Key for whether or not the last run was paused.
122 */
123 static final String KEY_LAST_RUN_PAUSED = "last_paused";
Pankaj Garg18902562014-12-05 16:18:51 -0800124
125 // ----------------------
126 // Keys for about_preferences.xml
127 // ----------------------
128 static final String PREF_ABOUT = "about";
129 static final String PREF_VERSION = "version";
130 static final String PREF_BUILD_DATE = "built";
131 static final String PREF_BUILD_HASH = "hash";
132 static final String PREF_USER_AGENT = "user_agent";
133 static final String PREF_HELP = "help_about";
134 static final String PREF_FEEDBACK = "feedback";
Vivek Sekharb53a5952015-07-17 14:14:38 -0700135 static final String PREF_AUTO_UPDATE = "update_notification";
Pankaj Garg1c13cab2015-05-12 11:52:17 -0700136 static final String PREF_EDGE_SWIPE = "edge_swiping_action";
Tarun Nainanif03c7962015-06-03 11:38:33 -0700137 static final String PREF_LEGAL = "legal";
138
139 // ----------------------
140 // Keys for legal_preferences.xml
141 // ----------------------
142 static final String PREF_LEGAL_CREDITS = "legal_credits";
143 static final String PREF_LEGAL_EULA = "legal_eula";
144 static final String PREF_LEGAL_PRIVACY_POLICY = "legal_privacy_policy";
John Reck35e9dd62011-04-25 09:01:54 -0700145}