]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/menu/webview_options_menu.xml
Create a Clear Data submenu in the options menu. https://redmine.stoutner.com/issues...
[PrivacyBrowserAndroid.git] / app / src / main / res / menu / webview_options_menu.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2015-2017 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
7
8   Privacy Browser is free software: you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation, either version 3 of the License, or
11   (at your option) any later version.
12
13   Privacy Browser is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <menu
22     xmlns:android="http://schemas.android.com/apk/res/android"
23     xmlns:app="http://schemas.android.com/apk/res-auto"
24     xmlns:tools="http://schemas.android.com/tools"
25     tools:context=".activities.MainWebViewActivity" >
26
27     <item
28         android:id="@+id/toggle_javascript"
29         android:title="@string/javascript"
30         android:orderInCategory="10"
31         app:showAsAction="ifRoom" />
32
33     <item
34         android:id="@+id/add_or_edit_domain"
35         android:title="@string/add_domain_settings"
36         android:orderInCategory="20"
37         app:showAsAction="never" />
38
39     <item
40         android:id="@+id/toggle_first_party_cookies"
41         android:title="@string/first_party_cookies"
42         android:orderInCategory="30"
43         android:checkable="true"
44         app:showAsAction="never" />
45
46     <item
47         android:id="@+id/toggle_third_party_cookies"
48         android:title="@string/third_party_cookies"
49         android:orderInCategory="40"
50         android:checkable="true"
51         app:showAsAction="never" />
52
53     <item
54         android:id="@+id/toggle_dom_storage"
55         android:title="@string/dom_storage"
56         android:orderInCategory="50"
57         android:checkable="true"
58         app:showAsAction="never" />
59
60     <item
61         android:id="@+id/toggle_save_form_data"
62         android:title="@string/form_data"
63         android:orderInCategory="60"
64         android:checkable="true"
65         app:showAsAction="never" />
66
67     <item
68         android:id="@+id/clear_data"
69         android:title="@string/clear_data"
70         android:orderInCategory="70"
71         app:showAsAction="never" >
72
73         <menu>
74             <item
75                 android:id="@+id/clear_cookies"
76                 android:title="@string/clear_cookies"
77                 android:orderInCategory="70"
78                 app:showAsAction="never" />
79
80             <item
81                 android:id="@+id/clear_dom_storage"
82                 android:title="@string/clear_dom_storage"
83                 android:orderInCategory="80"
84                 app:showAsAction="never" />
85
86             <item
87                 android:id="@+id/clear_form_data"
88                 android:title="@string/clear_form_data"
89                 android:orderInCategory="90"
90                 app:showAsAction="never" />
91         </menu>
92     </item>
93
94     <item
95         android:id="@+id/font_size"
96         android:title="@string/font_size"
97         android:orderInCategory="100"
98         app:showAsAction="never" >
99
100         <menu>
101             <group android:checkableBehavior="single">
102                 <item
103                     android:id="@+id/font_size_twenty_five_percent"
104                     android:title="@string/twenty_five_percent"
105                     android:orderInCategory="101"
106                     app:showAsAction="never" />
107
108                 <item
109                     android:id="@+id/font_size_fifty_percent"
110                     android:title="@string/fifty_percent"
111                     android:orderInCategory="102"
112                     app:showAsAction="never" />
113
114                 <item
115                     android:id="@+id/font_size_seventy_five_percent"
116                     android:title="@string/seventy_five_percent"
117                     android:orderInCategory="103"
118                     app:showAsAction="never" />
119
120                 <item
121                     android:id="@+id/font_size_one_hundred_percent"
122                     android:title="@string/one_hundred_percent"
123                     android:orderInCategory="104"
124                     app:showAsAction="never" />
125
126                 <item
127                     android:id="@+id/font_size_one_hundred_twenty_five_percent"
128                     android:title="@string/one_hundred_twenty_five_percent"
129                     android:orderInCategory="105"
130                     app:showAsAction="never" />
131
132                 <item
133                     android:id="@+id/font_size_one_hundred_fifty_percent"
134                     android:title="@string/one_hundred_fifty_percent"
135                     android:orderInCategory="106"
136                     app:showAsAction="never" />
137
138                 <item
139                     android:id="@+id/font_size_one_hundred_seventy_five_percent"
140                     android:title="@string/one_hundred_seventy_five_percent"
141                     android:orderInCategory="107"
142                     app:showAsAction="never" />
143
144                 <item
145                     android:id="@+id/font_size_two_hundred_percent"
146                     android:title="@string/two_hundred_percent"
147                     android:orderInCategory="108"
148                     app:showAsAction="never" />
149             </group>
150         </menu>
151     </item>
152
153     <item
154         android:id="@+id/display_images"
155         android:title="@string/display_images"
156         android:orderInCategory="110"
157         android:checkable="true"
158         app:showAsAction="never" />
159
160     <item
161         android:id="@+id/share"
162         android:title="@string/share"
163         android:orderInCategory="120"
164         app:showAsAction="never" />
165
166     <item
167         android:id="@+id/find_on_page"
168         android:title="@string/find_on_page"
169         android:orderInCategory="130"
170         app:showAsAction="never|collapseActionView" />
171     <item
172         android:id="@+id/print"
173         android:title="@string/print"
174         android:orderInCategory="140"
175         app:showAsAction="never" />
176
177     <item
178         android:id="@+id/add_to_homescreen"
179         android:title="@string/add_to_home_screen"
180         android:orderInCategory="150"
181         app:showAsAction="never" />
182
183     <item
184         android:id="@+id/refresh"
185         android:title="@string/refresh"
186         android:orderInCategory="160"
187         app:showAsAction="never" />
188 </menu>