Add options menu item for adding/editing domain settings. https://redmine.stoutner...
[PrivacyBrowser.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_cookies"
69         android:title="@string/clear_cookies"
70         android:orderInCategory="70"
71         app:showAsAction="never" />
72
73     <item
74         android:id="@+id/clear_dom_storage"
75         android:title="@string/clear_dom_storage"
76         android:orderInCategory="80"
77         app:showAsAction="never" />
78
79     <item
80         android:id="@+id/clear_form_data"
81         android:title="@string/clear_form_data"
82         android:orderInCategory="90"
83         app:showAsAction="never" />
84
85     <item
86         android:id="@+id/font_size"
87         android:title="@string/font_size"
88         android:orderInCategory="100"
89         app:showAsAction="never" >
90
91         <menu>
92             <group android:checkableBehavior="single">
93                 <item
94                     android:id="@+id/font_size_twenty_five_percent"
95                     android:title="@string/twenty_five_percent"
96                     android:orderInCategory="101"
97                     app:showAsAction="never" />
98
99                 <item
100                     android:id="@+id/font_size_fifty_percent"
101                     android:title="@string/fifty_percent"
102                     android:orderInCategory="102"
103                     app:showAsAction="never" />
104
105                 <item
106                     android:id="@+id/font_size_seventy_five_percent"
107                     android:title="@string/seventy_five_percent"
108                     android:orderInCategory="103"
109                     app:showAsAction="never" />
110
111                 <item
112                     android:id="@+id/font_size_one_hundred_percent"
113                     android:title="@string/one_hundred_percent"
114                     android:orderInCategory="104"
115                     app:showAsAction="never" />
116
117                 <item
118                     android:id="@+id/font_size_one_hundred_twenty_five_percent"
119                     android:title="@string/one_hundred_twenty_five_percent"
120                     android:orderInCategory="105"
121                     app:showAsAction="never" />
122
123                 <item
124                     android:id="@+id/font_size_one_hundred_fifty_percent"
125                     android:title="@string/one_hundred_fifty_percent"
126                     android:orderInCategory="106"
127                     app:showAsAction="never" />
128
129                 <item
130                     android:id="@+id/font_size_one_hundred_seventy_five_percent"
131                     android:title="@string/one_hundred_seventy_five_percent"
132                     android:orderInCategory="107"
133                     app:showAsAction="never" />
134
135                 <item
136                     android:id="@+id/font_size_two_hundred_percent"
137                     android:title="@string/two_hundred_percent"
138                     android:orderInCategory="108"
139                     app:showAsAction="never" />
140             </group>
141         </menu>
142     </item>
143
144     <item
145         android:id="@+id/display_images"
146         android:title="@string/display_images"
147         android:orderInCategory="110"
148         android:checkable="true"
149         app:showAsAction="never" />
150
151     <item
152         android:id="@+id/share"
153         android:title="@string/share"
154         android:orderInCategory="120"
155         app:showAsAction="never" />
156
157     <item
158         android:id="@+id/find_on_page"
159         android:title="@string/find_on_page"
160         android:orderInCategory="130"
161         app:showAsAction="never|collapseActionView" />
162     <item
163         android:id="@+id/print"
164         android:title="@string/print"
165         android:orderInCategory="140"
166         app:showAsAction="never" />
167
168     <item
169         android:id="@+id/add_to_homescreen"
170         android:title="@string/add_to_home_screen"
171         android:orderInCategory="150"
172         app:showAsAction="never" />
173
174     <item
175         android:id="@+id/refresh"
176         android:title="@string/refresh"
177         android:orderInCategory="160"
178         app:showAsAction="never" />
179 </menu>