Bug 888553 - Remote Debugging Part 1: Strings and prefs layout. r=lucasr

This commit is contained in:
Chenxia Liu 2013-07-31 15:38:47 -07:00
Родитель a6f01a9047
Коммит d735356fea
9 изменённых файлов: 53 добавлений и 3 удалений

Просмотреть файл

@ -577,6 +577,7 @@ RES_XML = \
res/xml/preferences_search.xml \
res/xml/preferences_privacy.xml \
res/xml/preferences_vendor.xml \
res/xml/preferences_devtools.xml \
$(SYNC_RES_XML) \
$(NULL)

Просмотреть файл

@ -71,6 +71,8 @@
<!ENTITY pref_category_vendor "&vendorShortName;">
<!ENTITY pref_category_datareporting "Data choices">
<!ENTITY pref_category_installed_search_engines "Installed search engines">
<!ENTITY pref_category_devtools "Developer tools">
<!ENTITY pref_developer_remotedebugging "Remote debugging">
<!-- collected old strings - remove after determining final strings
as part of Bug 877791 -->
@ -93,6 +95,7 @@
<!ENTITY pref_header_privacy_short "Privacy">
<!ENTITY pref_header_help "Help">
<!ENTITY pref_header_vendor "&vendorShortName;">
<!ENTITY pref_header_devtools "Developer tools">
<!ENTITY pref_cookies_menu "Cookies">
<!ENTITY pref_cookies_accept_all "Enabled">

Просмотреть файл

@ -32,4 +32,11 @@
<extra android:name="resource"
android:value="preferences_vendor"/>
</header>
<header android:fragment="org.mozilla.gecko.GeckoPreferenceFragment"
android:title="@string/pref_header_devtools">
<extra android:name="resource"
android:value="preferences_devtools"/>
</header>
</preference-headers>

Просмотреть файл

@ -4,7 +4,8 @@
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!-- Phone v11+ only: Sync is a top-level menu item.
See xml-v11/preference_headers.xml for tablet layout. -->
See xml-v11/preference_headers.xml for tablet layout.
Preference changes here should be mirrored to xml/preferences.xml.in. -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:gecko="http://schemas.android.com/apk/res-auto"
@ -38,4 +39,11 @@
<extra android:name="resource"
android:value="preferences_vendor"/>
</PreferenceScreen>
<PreferenceScreen android:title="@string/pref_category_devtools"
android:fragment="org.mozilla.gecko.GeckoPreferenceFragment" >
<extra android:name="resource"
android:value="preferences_devtools"/>
</PreferenceScreen>
</PreferenceScreen>

Просмотреть файл

@ -3,6 +3,8 @@
- 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/. -->
<!-- Changes should be mirrored to preferences_customize_tablet.xml. -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:gecko="http://schemas.android.com/apk/res-auto"
android:enabled="false">

Просмотреть файл

@ -4,7 +4,8 @@
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!-- Tablet only: The contents under the "Customize" header for tablets,
See xml-v11/preferences.xml for single-pane v11+ phone layout. -->
See xml-v11/preferences.xml for single-pane v11+ phone layout.
Changes to preferences shoudl be mirrored to preferences_customize.xml. -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:gecko="http://schemas.android.com/apk/res-auto"

Просмотреть файл

@ -4,7 +4,9 @@
- 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/. -->
<!-- Preferences screen for pre-v11 Android devices that do not support PreferenceFragment or ActionBar -->
<!-- Preferences screen for pre-v11 Android devices that do not support
PreferenceFragment or ActionBar. Preference changes here should be mirrored
to xml-v11/preferences.xml. -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:gecko="http://schemas.android.com/apk/res-auto"
@ -52,5 +54,14 @@
android:value="preferences_vendor" />
</intent>
</PreferenceScreen>
<PreferenceScreen android:title="@string/pref_category_devtools">
<intent android:action="android.intent.action.VIEW"
android:targetPackage="@ANDROID_PACKAGE_NAME@"
android:targetClass="org.mozilla.gecko.GeckoPreferences" >
<extra
android:name="resource"
android:value="preferences_devtools" />
</intent>
</PreferenceScreen>
</PreferenceScreen>

Просмотреть файл

@ -0,0 +1,14 @@
<?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/. -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:gecko="http://schemas.android.com/apk/res-auto"
android:title="@string/pref_category_devtools"
android:enabled="false">
<CheckBoxPreference android:key="devtools.debugger.remote-enabled"
android:title="@string/pref_developer_remotedebugging" />
</PreferenceScreen>

Просмотреть файл

@ -84,11 +84,14 @@
<string name="pref_category_vendor">&pref_category_vendor;</string>
<string name="pref_category_datareporting">&pref_category_datareporting;</string>
<string name="pref_category_installed_search_engines">&pref_category_installed_search_engines;</string>
<string name="pref_category_devtools">&pref_category_devtools;</string>
<string name="pref_developer_remotedebugging">&pref_developer_remotedebugging;</string>
<string name="pref_header_customize">&pref_header_customize;</string>
<string name="pref_header_display">&pref_header_display;</string>
<string name="pref_header_privacy_short">&pref_header_privacy_short;</string>
<string name="pref_header_vendor">&pref_header_vendor;</string>
<string name="pref_header_devtools">&pref_header_devtools;</string>
<string name="pref_remember_signons">&pref_remember_signons;</string>