diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable/background_titlebar.png | bin | 0 -> 2426 bytes | |||
-rw-r--r-- | res/drawable/button_line.xml | 27 | ||||
-rw-r--r-- | res/drawable/ic_titlebar_zoom.png | bin | 0 -> 2143 bytes | |||
-rw-r--r-- | res/drawable/ic_titlebar_zoom_out.png | bin | 0 -> 2131 bytes | |||
-rw-r--r-- | res/layout/application.xml | 53 | ||||
-rw-r--r-- | res/layout/bookmark_thumbnail.xml | 42 | ||||
-rw-r--r-- | res/layout/browser_downloads_page.xml | 16 | ||||
-rw-r--r-- | res/layout/custom_screen.xml | 37 | ||||
-rw-r--r-- | res/layout/permission_dialog.xml | 158 | ||||
-rw-r--r-- | res/layout/title_bar.xml | 105 | ||||
-rw-r--r-- | res/menu/bookmarkscontext.xml | 2 | ||||
-rw-r--r-- | res/menu/historycontext.xml | 4 | ||||
-rw-r--r-- | res/values/arrays.xml | 33 | ||||
-rw-r--r-- | res/values/strings.xml | 50 | ||||
-rw-r--r-- | res/xml/browser_preferences.xml | 29 | ||||
-rw-r--r-- | res/xml/debug_preferences.xml | 5 |
16 files changed, 552 insertions, 9 deletions
diff --git a/res/drawable/background_titlebar.png b/res/drawable/background_titlebar.png Binary files differnew file mode 100644 index 0000000..1fdb078 --- /dev/null +++ b/res/drawable/background_titlebar.png diff --git a/res/drawable/button_line.xml b/res/drawable/button_line.xml new file mode 100644 index 0000000..67869d0 --- /dev/null +++ b/res/drawable/button_line.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item> + <shape android:width="2dip"> + <solid android:color="#ff000000"/> + </shape> + </item> + <item android:left="1dip" android:width="1dip"> + <shape> + <solid android:color="#ffffffff"/> + </shape> + </item> +</layer-list> diff --git a/res/drawable/ic_titlebar_zoom.png b/res/drawable/ic_titlebar_zoom.png Binary files differnew file mode 100644 index 0000000..b497dab --- /dev/null +++ b/res/drawable/ic_titlebar_zoom.png diff --git a/res/drawable/ic_titlebar_zoom_out.png b/res/drawable/ic_titlebar_zoom_out.png Binary files differnew file mode 100644 index 0000000..4b5a3dd --- /dev/null +++ b/res/drawable/ic_titlebar_zoom_out.png diff --git a/res/layout/application.xml b/res/layout/application.xml new file mode 100644 index 0000000..d8de265 --- /dev/null +++ b/res/layout/application.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:drawingCacheQuality="auto" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:padding="0dip"> + + <ImageView android:id="@+id/icon" + android:layout_width="32px" + android:layout_height="32px" + android:padding="2dip" /> + + <TwoLineListItem + android:paddingTop="2dip" + android:paddingBottom="2dip" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:minHeight="?android:attr/listPreferredItemHeight" + android:mode="twoLine"> + + <TextView android:id="@+id/title" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="6dip" + android:layout_marginTop="6dip" + android:textAppearance="?android:attr/textAppearanceLarge"/> + + <TextView android:id="@+id/subtitle" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@+id/title" + android:layout_alignLeft="@+id/title" + android:textAppearance="?android:attr/textAppearanceSmall"/> + + </TwoLineListItem> + +</LinearLayout> diff --git a/res/layout/bookmark_thumbnail.xml b/res/layout/bookmark_thumbnail.xml new file mode 100644 index 0000000..57f59eb --- /dev/null +++ b/res/layout/bookmark_thumbnail.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:orientation="vertical" + android:padding="4dip" + android:background="@color/white"> + + <ImageView android:id="@+id/thumb" + android:src="@drawable/app_web_browser_sm" + android:scaleType="center" + android:layout_width="fill_parent" + android:layout_height="fill_parent" /> + + <TextView android:id="@+id/label" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_gravity="bottom" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textColor="@color/white" + android:maxLines="1" + android:paddingTop="3dip" + android:paddingBottom="3dip" + android:paddingLeft="2dip" + android:paddingRight="2dip" + android:scrollHorizontally="true" + android:background="#CC000000"/> +</LinearLayout> diff --git a/res/layout/browser_downloads_page.xml b/res/layout/browser_downloads_page.xml index c83a727..1d4d4e6 100644 --- a/res/layout/browser_downloads_page.xml +++ b/res/layout/browser_downloads_page.xml @@ -18,8 +18,14 @@ ** limitations under the License. */ --> - -<ListView xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/list" - android:layout_width="fill_parent" - android:layout_height="fill_parent"/> +<merge xmlns:android="http://schemas.android.com/apk/res/android"> + <ListView + android:id="@+id/list" + android:layout_width="fill_parent" + android:layout_height="fill_parent"/> + <ViewStub + android:id="@+id/empty" + android:layout="@layout/no_downloads" + android:layout_width="fill_parent" + android:layout_height="fill_parent"/> +</merge> diff --git a/res/layout/custom_screen.xml b/res/layout/custom_screen.xml new file mode 100644 index 0000000..2c41fef --- /dev/null +++ b/res/layout/custom_screen.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"> + <FrameLayout android:id="@+id/fullscreen_custom_content" + android:visibility="gone" + android:background="@color/black" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + /> + <LinearLayout android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + <com.android.browser.TitleBar android:id="@+id/title_bar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + /> + <FrameLayout android:id="@+id/main_content" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:foreground="?android:attr/windowContentOverlay" + /> + </LinearLayout> +</FrameLayout>
\ No newline at end of file diff --git a/res/layout/permission_dialog.xml b/res/layout/permission_dialog.xml new file mode 100644 index 0000000..ff24eaf --- /dev/null +++ b/res/layout/permission_dialog.xml @@ -0,0 +1,158 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright 2009, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:drawingCacheQuality="auto" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:padding="0dip"> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:padding="10dip"> + + <ImageView + android:id="@+id/icon" + android:paddingRight="10dip" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true"/> + + <TextView + android:id="@+id/dialog_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:gravity="center_vertical" + android:visibility="gone" + android:textSize="16dip" + android:textStyle="bold" + android:textColor="@color/white"/> + + </LinearLayout> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <ImageView android:id="@+id/titleDivider" + android:layout_width="fill_parent" + android:layout_height="1dip" + android:scaleType="fitXY" + android:gravity="fill_horizontal" + android:src="@drawable/dialog_divider_horizontal_light" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip"/> + + </LinearLayout> + + <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingBottom="10dip" + android:layout_weight="1"> + + <LinearLayout + android:orientation="vertical" + android:layout_width="fill_parent" + android:paddingTop="10dip" + android:paddingLeft="10dip" + android:paddingRight="10dip" + android:layout_height="wrap_content"> + + <TextView + android:id="@+id/origin" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:visibility="gone" + android:textStyle="bold" + android:gravity="left" + android:textSize="16dip" + android:textColor="@color/white"/> + + <TextView + android:id="@+id/dialog_message" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingLeft="4dip" + android:paddingTop="10dip" + android:gravity="left" + android:textSize="16dip" + android:textColor="@color/white"/> + + </LinearLayout> + + </ScrollView> + + <LinearLayout + android:layout_width="fill_parent" + android:background="@color/gray" + android:layout_height="wrap_content" + android:paddingTop="4dip" + android:paddingLeft="0dip" + android:paddingRight="0dip"> + + <LinearLayout android:id="@+id/leftSpacer" + android:layout_weight="0.25" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:visibility="gone"/> + + <Button + android:id="@+id/button_allow" + android:layout_width="96dip" + android:layout_height="48dip" + android:layout_gravity="left" + android:layout_weight="1" + android:maxLines="2" + android:textSize="13dip"/> + + <Button + android:id="@+id/button_alwaysdeny" + android:layout_width="96dip" + android:layout_height="48dip" + android:layout_gravity="left" + android:layout_weight="1" + android:maxLines="2" + android:textSize="13dip"/> + + <Button + android:id="@+id/button_deny" + android:layout_width="96dip" + android:layout_height="48dip" + android:layout_gravity="right" + android:layout_weight="1" + android:maxLines="2" + android:textSize="13dip"/> + + <LinearLayout android:id="@+id/rightSpacer" + android:layout_width="0dip" + android:layout_weight="0.25" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:visibility="gone" /> + + </LinearLayout> + +</LinearLayout> diff --git a/res/layout/title_bar.xml b/res/layout/title_bar.xml new file mode 100644 index 0000000..0f70519 --- /dev/null +++ b/res/layout/title_bar.xml @@ -0,0 +1,105 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:fitsSystemWindows="true" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:background="@drawable/background_titlebar" + android:layout_height="45dip"> + <ImageView android:id="@+id/favicon" + android:layout_height="20dip" + android:layout_width="20dip" + android:layout_marginLeft="6dip" + android:layout_marginRight="6dip" + android:layout_gravity="center_vertical" + /> + <!-- layout which contains the title, progress bar, and url --> + <LinearLayout + android:orientation="vertical" + android:layout_width="0dip" + android:layout_weight="1" + android:layout_height="wrap_content"> + <!-- This part contains the favicon and the progress bar --> + <RelativeLayout + android:layout_marginTop="3dip" + android:layout_height="wrap_content" + android:layout_width="fill_parent" + > + <LinearLayout + android:orientation="horizontal" + android:layout_marginTop="3dip" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + <ProgressBar android:id="@+id/progress_horizontal" + style="?android:attr/progressBarStyleHorizontal" + android:layout_width="0dip" + android:layout_weight="1" + android:layout_height="wrap_content" + android:max="100" /> + <ProgressBar android:id="@+id/progress_circular" + style="?android:attr/progressBarStyleSmallTitle" + android:layout_marginLeft="3dip" + android:layout_gravity="center_vertical" + android:max="100" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + </LinearLayout> + <!-- need to make this no wider than the horizontal progress bar --> + <TextView android:id="@+id/title" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_marginLeft="6dip" + android:layout_marginTop="4dip" + android:textSize="14dip" + android:textColor="@color/white" + android:textStyle="bold" + android:singleLine="true" + /> + <TextView android:id="@+id/url" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="6dip" + android:layout_below="@id/title" + android:textSize="12dip" + android:textColor="@color/white" + android:singleLine="true" + /> + <ImageView android:id="@+id/lock_icon" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_alignBottom="@id/title" + android:layout_alignParentRight="true" + android:visibility="gone"/> + </RelativeLayout> + </LinearLayout> + <!-- These buttons will change look/functionality --> + <ImageView android:id="@+id/lft_button" + android:layout_width="52dip" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:src="@android:drawable/btn_star"/> + <!-- divider --> + <View android:id="@+id/divider" + android:layout_height="fill_parent" + android:layout_width="2dip" + android:background="@drawable/button_line"/> + <ImageView android:id="@+id/rt_button" + android:layout_width="52dip" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:src="@*android:drawable/btn_browser_zoom_page_overview"/> +</LinearLayout> diff --git a/res/menu/bookmarkscontext.xml b/res/menu/bookmarkscontext.xml index b43e242..ba5d1dc 100644 --- a/res/menu/bookmarkscontext.xml +++ b/res/menu/bookmarkscontext.xml @@ -34,5 +34,7 @@ android:title="@string/contextmenu_copylink"/> <item android:id="@+id/delete_context_menu_id" android:title="@string/remove_bookmark"/> + <item android:id="@+id/homepage_context_menu_id" + android:title="@string/set_as_homepage"/> </group> </menu> diff --git a/res/menu/historycontext.xml b/res/menu/historycontext.xml index dfda010..5306396 100644 --- a/res/menu/historycontext.xml +++ b/res/menu/historycontext.xml @@ -26,5 +26,7 @@ <item android:id="@+id/copy_context_menu_id" android:title="@string/contextmenu_copylink"/> <item android:id="@+id/delete_context_menu_id" - android:title="@string/remove_history_item"/> + android:title="@string/remove_history_item"/> + <item android:id="@+id/homepage_context_menu_id" + android:title="@string/set_as_homepage"/> </menu> diff --git a/res/values/arrays.xml b/res/values/arrays.xml new file mode 100644 index 0000000..219cc6b --- /dev/null +++ b/res/values/arrays.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (C) 2009 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + --> +<resources> + <string-array name="webstorage_quota_entries"> + <item>No quota allowed</item> + <item>5 MB</item> + <item>10 MB</item> + <item>30 MB</item> + <item>100 MB</item> + </string-array> + <string-array name="webstorage_quota_entries_values"> + <item>0</item> + <item>5</item> + <item>10</item> + <item>30</item> + <item>100</item> + </string-array> +</resources> + diff --git a/res/values/strings.xml b/res/values/strings.xml index 7872f73..9a90a53 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -58,7 +58,10 @@ <!-- Case of several matches --> <item quantity="other"><xliff:g id="number" example="137">%d</xliff:g> matches</item> </plurals> - + + <!-- Displayed on the title bar while the page is loading --> + <string name="title_bar_loading">Loading\u2026</string> + <!-- Menu item --> <string name="page_info">Page info</string> <!-- Label for a button on an SSL error dialog that allows the user to see @@ -143,8 +146,12 @@ <string name="remove_bookmark">Delete bookmark</string> <!-- Menu item to remove the currently highlighted history entry from the list of previously visited sites --> <string name="remove_history_item">Remove from history</string> + <!-- Context menu item for setting the bookmark/history item as the homepage --> + <string name="set_as_homepage">Set as homepage</string> <!-- Toast informing the user that their action to save a bookmark has succeeded --> <string name="bookmark_saved">Saved to bookmarks.</string> + <!-- Toast confirming that the homepage has been set --> + <string name="homepage_set">Homepage set</string> <!-- Error that appears in the title of Bookmark dialog when user selects OK with empty Name field --> <string name="bookmark_needs_title">"Bookmark must have a name."</string> <!-- Error that appears in the title of Bookmark dialog when user selects OK with empty Location field --> @@ -284,14 +291,18 @@ <string name="pref_content_autofit">Auto-fit pages</string> <!-- Settings summary --> <string name="pref_content_autofit_summary">Format Web pages to fit the screen</string> + <!-- Settings label for enabling a mode where the browser is always set to landscape mode --> + <string name="pref_content_landscape_only">Landscape only display</string> + <!-- Settings summary --> + <string name="pref_content_landscape_only_summary">Always read pages in the wider, landscape screen orientation</string> <!-- Settings screen, section title --> <string name="pref_privacy_title">Privacy settings</string> <!-- Settings label --> <string name="pref_privacy_clear_cache">Clear cache</string> <!-- Settings summary --> - <string name="pref_privacy_clear_cache_summary">Delete all cached page content</string> + <string name="pref_privacy_clear_cache_summary">Clear locally cached content and databases</string> <!-- Confirmation dialog message --> - <string name="pref_privacy_clear_cache_dlg">The cache will be cleared.</string> + <string name="pref_privacy_clear_cache_dlg">Locally cached content and databases will be cleared.</string> <!-- Settings label --> <string name="pref_privacy_clear_cookies">Clear all cookie data</string> <!-- Settings summary --> @@ -316,6 +327,16 @@ <string name="pref_privacy_clear_passwords_summary">Clear all the saved passwords</string> <!-- Confirmation dialog message --> <string name="pref_privacy_clear_passwords_dlg">All saved passwords will be cleared.</string> + <!-- Settings label --> + <string name="pref_privacy_request_location">Enable location</string> + <!-- Settings summary --> + <string name="pref_privacy_request_location_summary">Allow sites to request access to your location</string> + <!-- Settings label --> + <string name="pref_privacy_clear_location_requests">Clear location access</string> + <!-- Settings summary --> + <string name="pref_privacy_clear_location_requests_summary">Clear location access for all websites</string> + <!-- Confirmation dialog message --> + <string name="pref_privacy_clear_location_requests_dlg">Clear all previous location requests</string> <!-- Settings screen, section title --> <string name="pref_security_title">Security settings</string> <!-- Settings label --> @@ -377,6 +398,10 @@ <!-- Settings summary --> <string name="pref_extras_gears_enable_summary">Applications that extend browser functionality</string> <!-- Settings label --> + <string name="pref_extras_website_settings">Website Settings</string> + <!-- Settings summary --> + <string name="pref_extras_website_settings_summary">View advanced settings for individual websites</string> + <!-- Settings label --> <string name="pref_extras_gears_settings">Gears settings</string> <!-- Settings summary --> <string name="pref_plugin_installed">Plugins list</string> @@ -404,6 +429,8 @@ <!-- Do not tranlsate. Development option --> <string name="pref_development_nav_dump" translatable="false">Enable nav cache dump</string> <!-- Do not tranlsate. Development option --> + <string name="js_engine_flags" translatable="false">Set JS flags</string> + <!-- Do not tranlsate. Development option --> <string name="pref_development_uastring" translatable="false">UAString</string> <!-- Do not tranlsate. Development option --> <string-array name="pref_development_ua_choices" translatable="false"> @@ -669,6 +696,9 @@ <!-- Gears Dialogs --> <string name="query_data_prompt">Allow storage</string> <string name="query_data_message">This web site would like to store information on your phone.</string> + <string name="query_storage_quota_prompt">Increase storage quota</string> + <string name="query_storage_quota_message">This web site is over its current + storage limit. Would you like to increase its quota limit ?</string> <string name="location_prompt">Access your location</string> <string name="location_message">This web site would like to have access to your location.</string> <string name="shortcut_prompt">Create a shortcut</string> @@ -725,6 +755,20 @@ <string name="unrecognized_dialog_message">Unrecognized dialog type</string> <string name="default_button">OK</string> + <!-- HTML5 dialogs --> + <!-- Used as a toast notification after the user close the html5 webstorage permission dialog --> + <string name="webstorage_notification">The quota for this site can be changed in the Local Storage section of the Browser settings</string> + <!-- Used in the Browser Settings --> + <string name="webstorage_clear_data_title">Clear Stored Data</string> + <string name="webstorage_clear_data_summary">Remove all databases associated with this website</string> + <!-- Confirmation dialog when the user ask to clear all data for an origin --> + <string name="webstorage_clear_data_dialog_title">Clear All Data</string> + <string name="webstorage_clear_data_dialog_message">All stored data by this origin will be deleted</string> + <string name="webstorage_clear_data_dialog_ok_button">Clear All</string> + <string name="webstorage_clear_data_dialog_cancel_button">Cancel</string> + <!-- Strings used in the summary of origins --> + <string name="webstorage_origin_summary_mb_stored">MB stored on your phone</string> + <!-- Zoom-related strings --><skip /> <!-- Caption for a button that is shown when the zoom widget is showing. The button's action will switch to the zoom overview mode. --> <string name="zoom_overview_button_text">Overview</string> diff --git a/res/xml/browser_preferences.xml b/res/xml/browser_preferences.xml index 23618c5..dffb550 100644 --- a/res/xml/browser_preferences.xml +++ b/res/xml/browser_preferences.xml @@ -62,6 +62,12 @@ android:summary="@string/pref_content_autofit_summary" /> <CheckBoxPreference + android:key="landscape_only" + android:defaultValue="false" + android:title="@string/pref_content_landscape_only" + android:summary="@string/pref_content_landscape_only_summary" /> + + <CheckBoxPreference android:key="enable_javascript" android:defaultValue="true" android:title="@string/pref_content_javascript" /> @@ -128,6 +134,24 @@ android:dialogTitle="@string/clear" android:dialogIcon="@android:drawable/ic_dialog_alert"/> + <!-- below preferences will be shown when html5 location is implemented --> + <!-- + + <CheckBoxPreference + android:key="request_location" + android:defaultValue="true" + android:title="@string/pref_privacy_request_location" + android:summary="@string/pref_privacy_request_location_summary" /> + + <com.android.browser.BrowserYesNoPreference + android:key="privacy_clear_location_requests" + android:title="@string/pref_privacy_clear_location_requests" + android:summary="@string/pref_privacy_clear_location_requests_summary" + android:dialogMessage="@string/pref_privacy_clear_location_requests_dlg" + android:dialogTitle="@string/clear" + android:dialogIcon="@android:drawable/ic_dialog_alert"/> + --> + </PreferenceCategory> <PreferenceCategory @@ -173,6 +197,11 @@ android:title="@string/pref_extras_gears_settings" android:summary="@string/pref_extras_gears_settings_summary" /> + <PreferenceScreen + android:key="website_settings" + android:title="@string/pref_extras_website_settings" + android:summary="@string/pref_extras_website_settings_summary" /> + <com.android.browser.BrowserYesNoPreference android:key="reset_default_preferences" android:title="@string/pref_extras_reset_default" diff --git a/res/xml/debug_preferences.xml b/res/xml/debug_preferences.xml index 22b5997..00982fc 100644 --- a/res/xml/debug_preferences.xml +++ b/res/xml/debug_preferences.xml @@ -50,6 +50,11 @@ android:defaultValue="false" android:title="@string/pref_development_nav_dump" /> + <EditTextPreference + android:key="js_engine_flags" + android:title="@string/js_engine_flags" + android:singleLine="true" /> + <ListPreference android:key="user_agent" android:title="@string/pref_development_uastring" |