Pankaj Garg | 32e1b94 | 2015-06-03 18:13:24 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (c) 2015, The Linux Foundation. All rights reserved. |
| 4 | |
| 5 | Redistribution and use in source and binary forms, with or without |
| 6 | modification, are permitted provided that the following conditions are |
| 7 | met: |
| 8 | * Redistributions of source code must retain the above copyright |
| 9 | notice, this list of conditions and the following disclaimer. |
| 10 | * Redistributions in binary form must reproduce the above |
| 11 | copyright notice, this list of conditions and the following |
| 12 | disclaimer in the documentation and/or other materials provided |
| 13 | with the distribution. |
| 14 | * Neither the name of The Linux Foundation nor the names of its |
| 15 | contributors may be used to endorse or promote products derived |
| 16 | from this software without specific prior written permission. |
| 17 | |
| 18 | THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED |
| 19 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 20 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT |
| 21 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS |
| 22 | BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 23 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 24 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
| 25 | BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 26 | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE |
| 27 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN |
| 28 | IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 | --> |
| 30 | |
| 31 | <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" |
| 32 | android:key="site_specific_prefs"> |
| 33 | |
| 34 | <PreferenceCategory |
| 35 | android:layout="@layout/swe_preference_category_first" |
| 36 | android:title="@string/pref_website_title" > |
| 37 | <Preference |
| 38 | android:layout="@layout/swe_preference" |
Pankaj Garg | 21dad56 | 2015-07-02 17:17:24 -0700 | [diff] [blame] | 39 | android:selectable="false" |
Pankaj Garg | 32e1b94 | 2015-06-03 18:13:24 -0700 | [diff] [blame] | 40 | android:key="site_name"/> |
| 41 | </PreferenceCategory> |
| 42 | |
| 43 | <PreferenceCategory |
| 44 | android:layout="@layout/swe_preference_category" |
| 45 | android:key="site_security_info_title" |
| 46 | android:title="@string/pref_site_settings_info_panel" > |
| 47 | |
| 48 | <PreferenceScreen |
| 49 | android:key="site_security_info" |
Pankaj Garg | 21dad56 | 2015-07-02 17:17:24 -0700 | [diff] [blame] | 50 | android:selectable="false" |
Pankaj Garg | 32e1b94 | 2015-06-03 18:13:24 -0700 | [diff] [blame] | 51 | android:layout="@layout/site_specific_security_info"/> |
| 52 | </PreferenceCategory> |
| 53 | |
| 54 | <PreferenceCategory |
| 55 | android:title="@string/pref_site_settings_title" |
| 56 | android:layout="@layout/swe_preference_category" |
Pankaj Garg | dbdf5aa | 2015-07-16 15:22:37 -0700 | [diff] [blame] | 57 | android:key="site_pref_list"> |
Pankaj Garg | 32e1b94 | 2015-06-03 18:13:24 -0700 | [diff] [blame] | 58 | |
Pankaj Garg | 21dad56 | 2015-07-02 17:17:24 -0700 | [diff] [blame] | 59 | <SwitchPreference |
| 60 | android:layout="@layout/swe_preference" |
| 61 | android:defaultValue="false" |
| 62 | android:icon="@drawable/ic_sp_webrefiner" |
| 63 | android:key="distracting_contents" |
| 64 | android:summaryOn="@string/pref_security_allowed" |
| 65 | android:summaryOff="@string/pref_security_not_allowed" |
| 66 | android:title="@string/pref_security_web_refiner" /> |
| 67 | |
| 68 | <SwitchPreference |
| 69 | android:layout="@layout/swe_preference" |
| 70 | android:defaultValue="true" |
| 71 | android:icon="@drawable/ic_sp_thirdcookies" |
| 72 | android:key="accept_cookies" |
| 73 | android:summaryOn="@string/pref_security_allowed" |
| 74 | android:summaryOff="@string/pref_security_not_allowed" |
| 75 | android:title="@string/pref_security_accept_cookies" /> |
| 76 | |
Sagar Dhawan | 21a5d39 | 2015-07-16 14:31:45 -0700 | [diff] [blame] | 77 | <com.android.browser.BrowserLocationListPreference |
Pankaj Garg | 32e1b94 | 2015-06-03 18:13:24 -0700 | [diff] [blame] | 78 | android:layout="@layout/swe_preference" |
| 79 | android:widgetLayout="@layout/swe_preference_list_widget" |
| 80 | android:icon="@drawable/ic_sp_location" |
| 81 | android:key="select_geolocation" |
| 82 | android:dialogTitle="@string/pref_privacy_clear_geolocation_access" |
| 83 | android:entries="@array/geolocation_settings_choices" |
| 84 | android:entryValues="@array/geolocation_settings_choices" |
| 85 | android:title="@string/pref_privacy_enable_geolocation" /> |
| 86 | |
| 87 | <SwitchPreference |
| 88 | android:layout="@layout/swe_preference" |
| 89 | android:defaultValue="true" |
| 90 | android:icon="@drawable/ic_sp_microphone" |
| 91 | android:key="microphone" |
| 92 | android:summaryOn="@string/pref_security_allowed" |
| 93 | android:summaryOff="@string/pref_security_not_allowed" |
| 94 | android:title="@string/pref_security_allow_mic" /> |
| 95 | |
| 96 | <SwitchPreference |
| 97 | android:layout="@layout/swe_preference" |
| 98 | android:defaultValue="true" |
| 99 | android:icon="@drawable/ic_sp_camera" |
| 100 | android:key="camera" |
| 101 | android:summaryOn="@string/pref_security_allowed" |
| 102 | android:summaryOff="@string/pref_security_not_allowed" |
| 103 | android:title="@string/pref_security_allow_camera" /> |
| 104 | |
| 105 | <SwitchPreference |
| 106 | android:layout="@layout/swe_preference" |
| 107 | android:defaultValue="false" |
Pankaj Garg | 32e1b94 | 2015-06-03 18:13:24 -0700 | [diff] [blame] | 108 | android:icon="@drawable/ic_sp_popups" |
| 109 | android:key="popup_windows" |
| 110 | android:summaryOn="@string/pref_security_allowed" |
| 111 | android:summaryOff="@string/pref_security_not_allowed" |
| 112 | android:title="@string/pref_security_allow_popups" /> |
| 113 | |
Pankaj Garg | 32e1b94 | 2015-06-03 18:13:24 -0700 | [diff] [blame] | 114 | <Preference |
| 115 | android:layout="@layout/swe_preference" |
| 116 | android:widgetLayout="@layout/swe_preference_trashcan_widget" |
| 117 | android:icon="@drawable/ic_sp_storage" |
| 118 | android:key="clear_data" |
| 119 | android:title="@string/webstorage_clear_data_title" /> |
| 120 | </PreferenceCategory> |
| 121 | </PreferenceScreen> |