diff options
Diffstat (limited to 'mobile/android/base/resources/menu')
9 files changed, 289 insertions, 0 deletions
diff --git a/mobile/android/base/resources/menu/activitystream_contextmenu.xml b/mobile/android/base/resources/menu/activitystream_contextmenu.xml new file mode 100644 index 000000000..ce22f14dc --- /dev/null +++ b/mobile/android/base/resources/menu/activitystream_contextmenu.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <!-- Group ID's are required, otherwise NavigationView won't show any dividers. The ID's are unused, but still required. --> + <group android:id="@+id/group0"> + <item + android:id="@+id/bookmark" + android:icon="@drawable/as_bookmark" + android:title="@string/bookmark"/> + <item + android:id="@+id/share" + android:icon="@drawable/as_share" + android:title="@string/share"/> + <item + android:id="@+id/copy_url" + android:icon="@drawable/as_copy" + android:title="@string/contextmenu_copyurl"/> + <item + android:id="@+id/add_homescreen" + android:icon="@drawable/as_home" + android:title="@string/contextmenu_add_to_launcher"/> + </group> + + <group android:id="@+id/group1"> + <item + android:id="@+id/open_new_tab" + android:icon="@drawable/as_tab" + android:title="@string/contextmenu_open_new_tab"/> + <item + android:id="@+id/open_new_private_tab" + android:icon="@drawable/as_private" + android:title="@string/contextmenu_open_private_tab"/> + </group> + + + <group android:id="@+id/group2"> + <item + android:id="@+id/dismiss" + android:icon="@drawable/as_dimiss" + android:title="@string/activity_stream_dismiss"/> + + <item + android:id="@+id/delete" + android:icon="@drawable/as_bin" + android:visible="false" + android:title="@string/activity_stream_delete_history"/> + </group> +</menu>
\ No newline at end of file diff --git a/mobile/android/base/resources/menu/browser_app_menu.xml b/mobile/android/base/resources/menu/browser_app_menu.xml new file mode 100644 index 000000000..f831ee783 --- /dev/null +++ b/mobile/android/base/resources/menu/browser_app_menu.xml @@ -0,0 +1,116 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<!-- We disable AlwaysShowAction because we interpret the menu + attributes ourselves and thus the warning isn't relevant to us. --> +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + tools:ignore="AlwaysShowAction"> + + <item android:id="@+id/back" + android:icon="@drawable/ic_menu_back" + android:title="@string/back" + android:showAsAction="always"/> + + <item android:id="@+id/forward" + android:icon="@drawable/ic_menu_forward" + android:title="@string/forward" + android:showAsAction="always"/> + + <item android:id="@+id/bookmark" + android:icon="@drawable/ic_menu_bookmark_add" + android:title="@string/bookmark" + android:showAsAction="always"/> + + <item android:id="@+id/reload" + android:icon="@drawable/ic_menu_reload" + android:title="@string/reload" + android:showAsAction="always"/> + + <item android:id="@+id/share" + android:icon="@drawable/ic_menu_share" + android:title="@string/share" + android:showAsAction="ifRoom"/> + + <item android:id="@+id/new_tab" + android:title="@string/new_tab"/> + + <item android:id="@+id/new_private_tab" + android:title="@string/new_private_tab"/> + + <item android:id="@+id/bookmarks_list" + android:title="@string/bookmarks_title"/> + + <item android:id="@+id/history_list" + android:title="@string/history_title"/> + + <item android:id="@+id/find_in_page" + android:title="@string/find_in_page" /> + + <item android:id="@+id/desktop_mode" + android:title="@string/desktop_mode" + android:checkable="true" /> + + <item android:id="@+id/page" + android:title="@string/page"> + + <menu> + + <item android:id="@+id/subscribe" + android:title="@string/contextmenu_subscribe"/> + + <item android:id="@+id/save_as_pdf" + android:title="@string/save_as_pdf"/> + + <item android:id="@+id/print" + android:title="@string/print"/> + + <item android:id="@+id/add_search_engine" + android:title="@string/contextmenu_add_search_engine"/> + + <item android:id="@+id/add_to_launcher" + android:title="@string/contextmenu_add_to_launcher"/> + + </menu> + + </item> + + <item android:id="@+id/tools" + android:title="@string/tools"> + + <menu> + + <item android:id="@+id/downloads" + android:title="@string/downloads"/> + + <item android:id="@+id/addons" + android:title="@string/addons"/> + + <item android:id="@+id/logins" + android:title="@string/logins"/> + + <item android:id="@+id/new_guest_session" + android:visible="false" + android:title="@string/new_guest_session"/> + + <item android:id="@+id/exit_guest_session" + android:visible="false" + android:title="@string/exit_guest_session"/> + + </menu> + + </item> + + <item android:id="@+id/char_encoding" + android:visible="false" + android:title="@string/char_encoding"/> + + <item android:id="@+id/settings" + android:title="@string/settings" /> + + <item android:id="@+id/help" + android:title="@string/help_menu" /> + +</menu> diff --git a/mobile/android/base/resources/menu/browsersearch_contextmenu.xml b/mobile/android/base/resources/menu/browsersearch_contextmenu.xml new file mode 100644 index 000000000..335490825 --- /dev/null +++ b/mobile/android/base/resources/menu/browsersearch_contextmenu.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:id="@+id/browsersearch_remove" + android:title="@string/contextmenu_remove"/> + +</menu> diff --git a/mobile/android/base/resources/menu/gecko_app_menu.xml b/mobile/android/base/resources/menu/gecko_app_menu.xml new file mode 100644 index 000000000..a55804fcb --- /dev/null +++ b/mobile/android/base/resources/menu/gecko_app_menu.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/quit" + android:title="@string/quit" + android:orderInCategory="10" /> +</menu> diff --git a/mobile/android/base/resources/menu/home_contextmenu.xml b/mobile/android/base/resources/menu/home_contextmenu.xml new file mode 100644 index 000000000..294b8aee5 --- /dev/null +++ b/mobile/android/base/resources/menu/home_contextmenu.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:id="@+id/home_open_new_tab" + android:title="@string/contextmenu_open_new_tab"/> + + <item android:id="@+id/home_open_private_tab" + android:title="@string/contextmenu_open_private_tab"/> + + <item android:id="@+id/home_copyurl" + android:title="@string/contextmenu_copyurl"/> + + <item android:id="@+id/home_share" + android:title="@string/contextmenu_share"/> + + <item android:id="@+id/top_sites_edit" + android:title="@string/contextmenu_top_sites_edit"/> + + <item android:id="@+id/top_sites_pin" + android:title="@string/contextmenu_top_sites_pin"/> + + <item android:id="@+id/top_sites_unpin" + android:title="@string/contextmenu_top_sites_unpin"/> + + <item android:id="@+id/home_edit_bookmark" + android:title="@string/contextmenu_edit_bookmark"/> + + <item android:id="@+id/home_remove" + android:title="@string/contextmenu_remove"/> + + <item android:id="@+id/home_add_to_launcher" + android:title="@string/contextmenu_add_to_launcher"/> + +</menu> diff --git a/mobile/android/base/resources/menu/home_remote_tabs_client_contextmenu.xml b/mobile/android/base/resources/menu/home_remote_tabs_client_contextmenu.xml new file mode 100644 index 000000000..cd6310bdb --- /dev/null +++ b/mobile/android/base/resources/menu/home_remote_tabs_client_contextmenu.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:id="@+id/home_remote_tabs_hide_client" + android:title="@string/pref_panels_hide"/> + +</menu> diff --git a/mobile/android/base/resources/menu/preferences_search_menu.xml b/mobile/android/base/resources/menu/preferences_search_menu.xml new file mode 100644 index 000000000..f3b2453d1 --- /dev/null +++ b/mobile/android/base/resources/menu/preferences_search_menu.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<!-- Stub to preserve IDs. --> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/restore_defaults" + android:title="" /> +</menu> diff --git a/mobile/android/base/resources/menu/tabs_menu.xml b/mobile/android/base/resources/menu/tabs_menu.xml new file mode 100644 index 000000000..bd974e25b --- /dev/null +++ b/mobile/android/base/resources/menu/tabs_menu.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:id="@+id/new_tab" + android:title="@string/new_tab"/> + + <item android:id="@+id/new_private_tab" + android:title="@string/new_private_tab"/> + + <item android:id="@+id/close_all_tabs" + android:title="@string/close_all_tabs"/> + + <item android:id="@+id/close_private_tabs" + android:title="@string/close_private_tabs"/> + +</menu> diff --git a/mobile/android/base/resources/menu/titlebar_contextmenu.xml b/mobile/android/base/resources/menu/titlebar_contextmenu.xml new file mode 100644 index 000000000..72c41cdc5 --- /dev/null +++ b/mobile/android/base/resources/menu/titlebar_contextmenu.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:id="@+id/pasteandgo" + android:title="@string/contextmenu_pasteandgo"/> + + <item android:id="@+id/paste" + android:title="@string/contextmenu_paste"/> + + <item android:id="@+id/subscribe" + android:title="@string/contextmenu_subscribe"/> + + <item android:id="@+id/add_search_engine" + android:title="@string/contextmenu_add_search_engine"/> + + <item android:id="@+id/copyurl" + android:title="@string/contextmenu_copyurl"/> + + <item android:id="@+id/add_to_launcher" + android:title="@string/contextmenu_add_to_launcher"/> + +</menu> |