├── MODULE_LICENSE_APACHE2
├── res
├── .DS_Store
├── drawable-hdpi
│ ├── arcs.png
│ ├── ssl_icon.png
│ ├── ic_btn_copy.png
│ ├── ic_btn_find.png
│ ├── ic_btn_share.png
│ ├── ic_menu_list.png
│ ├── pvt_indicator.png
│ ├── appwidget_bg.9.png
│ ├── ic_btn_stop_v2.png
│ ├── ic_list_gps_on.png
│ ├── ic_menu_windows.png
│ ├── page_indicator.png
│ ├── app_web_browser_sm.png
│ ├── browser_thumbnail.png
│ ├── btn_close_window.png
│ ├── fav_icn_background.png
│ ├── ic_btn_bookmarks.png
│ ├── ic_btn_close_panel.png
│ ├── ic_btn_find_next.png
│ ├── ic_btn_find_prev.png
│ ├── ic_btn_select_all.png
│ ├── ic_list_bookmark.png
│ ├── ic_list_data_large.png
│ ├── ic_list_data_off.png
│ ├── ic_list_data_small.png
│ ├── ic_list_gps_denied.png
│ ├── ic_list_new_window.png
│ ├── ic_menu_bookmarks.png
│ ├── ic_menu_new_window.png
│ ├── ic_menu_thumbnail.png
│ ├── magnifying_glass.png
│ ├── ic_launcher_browser.png
│ ├── ic_launcher_drm_file.png
│ ├── ic_menu_add_bookmark.png
│ ├── ic_tab_history_selected.png
│ ├── search_plate_browser.9.png
│ ├── ic_tab_bookmarks_selected.png
│ ├── ic_tab_history_unselected.png
│ ├── textfield_voice_search.9.png
│ ├── ic_search_category_bookmark.png
│ ├── ic_search_category_browser.png
│ ├── ic_search_category_history.png
│ ├── ic_search_category_suggest.png
│ ├── ic_tab_bookmarks_unselected.png
│ ├── ic_tab_most_visited_selected.png
│ ├── page_indicator_unselected2.png
│ ├── ic_dialog_browser_security_bad.png
│ ├── ic_tab_most_visited_unselected.png
│ ├── dialog_divider_horizontal_light.9.png
│ ├── ic_dialog_browser_security_good.png
│ ├── ic_dialog_browser_certificate_secure.png
│ ├── ic_launcher_shortcut_browser_bookmark.png
│ ├── ic_launcher_shortcut_browser_bookmark_icon.png
│ └── ic_dialog_browser_certificate_partially_secure.png
├── drawable-mdpi
│ ├── arcs.png
│ ├── ssl_icon.png
│ ├── ic_btn_copy.png
│ ├── ic_btn_find.png
│ ├── ic_btn_share.png
│ ├── ic_menu_list.png
│ ├── appwidget_bg.9.png
│ ├── ic_btn_stop_v2.png
│ ├── ic_list_gps_on.png
│ ├── ic_menu_windows.png
│ ├── page_indicator.png
│ ├── app_web_browser_sm.png
│ ├── browser_thumbnail.png
│ ├── btn_close_window.png
│ ├── fav_icn_background.png
│ ├── ic_btn_bookmarks.png
│ ├── ic_btn_close_panel.png
│ ├── ic_btn_find_next.png
│ ├── ic_btn_find_prev.png
│ ├── ic_btn_select_all.png
│ ├── ic_list_bookmark.png
│ ├── ic_list_data_large.png
│ ├── ic_list_data_off.png
│ ├── ic_list_data_small.png
│ ├── ic_list_gps_denied.png
│ ├── ic_list_new_window.png
│ ├── ic_menu_bookmarks.png
│ ├── ic_menu_new_window.png
│ ├── ic_menu_thumbnail.png
│ ├── magnifying_glass.png
│ ├── ic_launcher_browser.png
│ ├── ic_launcher_drm_file.png
│ ├── ic_menu_add_bookmark.png
│ ├── ic_tab_history_selected.png
│ ├── search_plate_browser.9.png
│ ├── ic_tab_bookmarks_selected.png
│ ├── ic_tab_history_unselected.png
│ ├── textfield_voice_search.9.png
│ ├── ic_search_category_bookmark.png
│ ├── ic_search_category_browser.png
│ ├── ic_search_category_history.png
│ ├── ic_search_category_suggest.png
│ ├── ic_tab_bookmarks_unselected.png
│ ├── ic_tab_most_visited_selected.png
│ ├── page_indicator_unselected2.png
│ ├── ic_dialog_browser_security_bad.png
│ ├── ic_tab_most_visited_unselected.png
│ ├── dialog_divider_horizontal_light.9.png
│ ├── ic_dialog_browser_security_good.png
│ ├── ic_dialog_browser_certificate_secure.png
│ ├── ic_launcher_shortcut_browser_bookmark.png
│ ├── ic_launcher_shortcut_browser_bookmark_icon.png
│ └── ic_dialog_browser_certificate_partially_secure.png
├── drawable
│ ├── default_video_poster.png
│ ├── pattern_carbon_fiber_dark.png
│ ├── blank.xml
│ ├── browser_history_tab.xml
│ ├── browser_bookmark_tab.xml
│ ├── browser_visited_tab.xml
│ ├── title_voice.xml
│ ├── btn_bookmark.xml
│ ├── close_background.xml
│ ├── title_text.xml
│ ├── stop_background.xml
│ └── title_loading.xml
├── menu
│ ├── downloadhistorycontextfailed.xml
│ ├── downloadhistorycontextrunning.xml
│ ├── websitesettings.xml
│ ├── history.xml
│ ├── downloadhistory.xml
│ ├── bookmarks.xml
│ ├── downloadhistorycontextfinished.xml
│ ├── title_context.xml
│ ├── historycontext.xml
│ ├── bookmarkscontext.xml
│ └── browsercontext.xml
├── values-ja
│ └── donottranslate_strings.xml
├── anim
│ ├── dialog_enter.xml
│ ├── dialog_exit.xml
│ ├── title_bar_exit.xml
│ └── title_bar_enter.xml
├── xml
│ ├── bookmarkwidget.xml
│ ├── bookmarks_searchable.xml
│ ├── searchable.xml
│ └── debug_preferences.xml
├── layout
│ ├── empty_history.xml
│ ├── history_header.xml
│ ├── tabs.xml
│ ├── custom_screen.xml
│ ├── tab_view_add_tab.xml
│ ├── video_loading_progress.xml
│ ├── ssl_warning.xml
│ ├── tab.xml
│ ├── ssl_success.xml
│ ├── active_tabs.xml
│ ├── ssl_warnings.xml
│ ├── browser_subwindow.xml
│ ├── browser_select.xml
│ ├── add_new_bookmark.xml
│ ├── error_console.xml
│ ├── http_authentication.xml
│ ├── history_item.xml
│ ├── page_info.xml
│ ├── bookmarkwidget.xml
│ ├── browser_find.xml
│ ├── tab_view.xml
│ ├── bookmark_thumbnail.xml
│ └── website_settings_row.xml
├── values
│ ├── donottranslate-search_engines.xml
│ ├── colors.xml
│ └── styles.xml
├── values-en-rZA
│ └── donottranslate-search_engines.xml
├── values-da-rDK
│ └── donottranslate-search_engines.xml
├── values-de-rAT
│ └── donottranslate-search_engines.xml
├── values-en-rAU
│ └── donottranslate-search_engines.xml
├── values-en-rIE
│ └── donottranslate-search_engines.xml
├── values-en-rNZ
│ └── donottranslate-search_engines.xml
├── values-fr-rFR
│ └── donottranslate-search_engines.xml
├── values-zh-rTW
│ └── donottranslate-search_engines.xml
├── values-el-rGR
│ └── donottranslate-search_engines.xml
├── values-ja-rJP
│ └── donottranslate-search_engines.xml
├── values-pt-rBR
│ └── donottranslate-search_engines.xml
├── values-pt-rPT
│ └── donottranslate-search_engines.xml
├── values-tr-rTR
│ └── donottranslate-search_engines.xml
├── values-zh-rCN
│ └── donottranslate-search_engines.xml
├── values-zh-rHK
│ └── donottranslate-search_engines.xml
├── values-de-rDE
│ └── donottranslate-search_engines.xml
├── values-en-rGB
│ └── donottranslate-search_engines.xml
├── values-en-rSG
│ └── donottranslate-search_engines.xml
├── values-fr-rBE
│ └── donottranslate-search_engines.xml
├── values-nl-rBE
│ └── donottranslate-search_engines.xml
├── values-nl-rNL
│ └── donottranslate-search_engines.xml
├── values-ko-rKR
│ └── donottranslate-search_engines.xml
├── values-nb-rNO
│ └── donottranslate-search_engines.xml
├── values-cs-rCZ
│ └── donottranslate-search_engines.xml
├── values-pl-rPL
│ └── donottranslate-search_engines.xml
├── values-ru-rRU
│ └── donottranslate-search_engines.xml
├── values-es-rES
│ └── donottranslate-search_engines.xml
├── values-it-rIT
│ └── donottranslate-search_engines.xml
├── values-sv-rSE
│ └── donottranslate-search_engines.xml
├── values-de-rCH
│ └── donottranslate-search_engines.xml
└── layout-land
│ ├── page_info.xml
│ └── http_authentication.xml
├── Android.mk
├── assets
└── html
│ └── flashtest.html
├── tests
├── src
│ └── com
│ │ └── android
│ │ └── browser
│ │ └── BrowserLaunchPerformance.java
├── Android.mk
└── AndroidManifest.xml
├── src
└── com
│ └── android
│ └── browser
│ ├── EventLogTags.logtags
│ ├── BookmarkSearch.java
│ ├── widget
│ └── BookmarkWidgetProvider.java
│ ├── search
│ ├── SearchEngine.java
│ ├── SearchEnginePreference.java
│ └── SearchEngines.java
│ ├── AddNewBookmark.java
│ ├── LogTag.java
│ ├── Browser.java
│ ├── BrowserYesNoPreference.java
│ ├── WebDialog.java
│ ├── Dots.java
│ ├── HistoryItem.java
│ └── SelectDialog.java
├── tools
├── search_engines.template.xml
└── all_search_engines.template.xml
└── CleanSpec.mk
/MODULE_LICENSE_APACHE2:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/res/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/.DS_Store
--------------------------------------------------------------------------------
/res/drawable-hdpi/arcs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/arcs.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/arcs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/arcs.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ssl_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ssl_icon.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ssl_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ssl_icon.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_btn_copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_btn_copy.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_btn_find.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_btn_find.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_btn_share.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_btn_share.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_menu_list.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_menu_list.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/pvt_indicator.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/pvt_indicator.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_btn_copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_btn_copy.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_btn_find.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_btn_find.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_btn_share.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_btn_share.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_menu_list.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_menu_list.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/appwidget_bg.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/appwidget_bg.9.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_btn_stop_v2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_btn_stop_v2.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_list_gps_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_list_gps_on.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_menu_windows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_menu_windows.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/page_indicator.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/page_indicator.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/appwidget_bg.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/appwidget_bg.9.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_btn_stop_v2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_btn_stop_v2.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_list_gps_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_list_gps_on.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_menu_windows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_menu_windows.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/page_indicator.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/page_indicator.png
--------------------------------------------------------------------------------
/res/drawable/default_video_poster.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable/default_video_poster.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/app_web_browser_sm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/app_web_browser_sm.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/browser_thumbnail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/browser_thumbnail.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/btn_close_window.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/btn_close_window.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/fav_icn_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/fav_icn_background.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_btn_bookmarks.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_btn_bookmarks.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_btn_close_panel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_btn_close_panel.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_btn_find_next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_btn_find_next.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_btn_find_prev.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_btn_find_prev.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_btn_select_all.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_btn_select_all.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_list_bookmark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_list_bookmark.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_list_data_large.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_list_data_large.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_list_data_off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_list_data_off.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_list_data_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_list_data_small.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_list_gps_denied.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_list_gps_denied.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_list_new_window.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_list_new_window.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_menu_bookmarks.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_menu_bookmarks.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_menu_new_window.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_menu_new_window.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_menu_thumbnail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_menu_thumbnail.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/magnifying_glass.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/magnifying_glass.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/app_web_browser_sm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/app_web_browser_sm.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/browser_thumbnail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/browser_thumbnail.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/btn_close_window.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/btn_close_window.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/fav_icn_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/fav_icn_background.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_btn_bookmarks.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_btn_bookmarks.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_btn_close_panel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_btn_close_panel.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_btn_find_next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_btn_find_next.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_btn_find_prev.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_btn_find_prev.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_btn_select_all.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_btn_select_all.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_list_bookmark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_list_bookmark.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_list_data_large.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_list_data_large.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_list_data_off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_list_data_off.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_list_data_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_list_data_small.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_list_gps_denied.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_list_gps_denied.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_list_new_window.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_list_new_window.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_menu_bookmarks.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_menu_bookmarks.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_menu_new_window.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_menu_new_window.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_menu_thumbnail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_menu_thumbnail.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/magnifying_glass.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/magnifying_glass.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_launcher_browser.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_launcher_browser.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_launcher_drm_file.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_launcher_drm_file.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_menu_add_bookmark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_menu_add_bookmark.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_launcher_browser.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_launcher_browser.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_launcher_drm_file.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_launcher_drm_file.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_menu_add_bookmark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_menu_add_bookmark.png
--------------------------------------------------------------------------------
/res/drawable/pattern_carbon_fiber_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable/pattern_carbon_fiber_dark.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_tab_history_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_tab_history_selected.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/search_plate_browser.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/search_plate_browser.9.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_tab_history_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_tab_history_selected.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/search_plate_browser.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/search_plate_browser.9.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_tab_bookmarks_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_tab_bookmarks_selected.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_tab_history_unselected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_tab_history_unselected.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/textfield_voice_search.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/textfield_voice_search.9.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_tab_bookmarks_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_tab_bookmarks_selected.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_tab_history_unselected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_tab_history_unselected.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/textfield_voice_search.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/textfield_voice_search.9.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_search_category_bookmark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_search_category_bookmark.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_search_category_browser.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_search_category_browser.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_search_category_history.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_search_category_history.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_search_category_suggest.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_search_category_suggest.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_tab_bookmarks_unselected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_tab_bookmarks_unselected.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_tab_most_visited_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_tab_most_visited_selected.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/page_indicator_unselected2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/page_indicator_unselected2.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_search_category_bookmark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_search_category_bookmark.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_search_category_browser.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_search_category_browser.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_search_category_history.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_search_category_history.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_search_category_suggest.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_search_category_suggest.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_tab_bookmarks_unselected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_tab_bookmarks_unselected.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_tab_most_visited_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_tab_most_visited_selected.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/page_indicator_unselected2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/page_indicator_unselected2.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_dialog_browser_security_bad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_dialog_browser_security_bad.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_tab_most_visited_unselected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_tab_most_visited_unselected.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_dialog_browser_security_bad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_dialog_browser_security_bad.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_tab_most_visited_unselected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_tab_most_visited_unselected.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/dialog_divider_horizontal_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/dialog_divider_horizontal_light.9.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_dialog_browser_security_good.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_dialog_browser_security_good.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/dialog_divider_horizontal_light.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/dialog_divider_horizontal_light.9.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_dialog_browser_security_good.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_dialog_browser_security_good.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_dialog_browser_certificate_secure.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_dialog_browser_certificate_secure.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_launcher_shortcut_browser_bookmark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_launcher_shortcut_browser_bookmark.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_dialog_browser_certificate_secure.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_dialog_browser_certificate_secure.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_launcher_shortcut_browser_bookmark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_launcher_shortcut_browser_bookmark.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_launcher_shortcut_browser_bookmark_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_launcher_shortcut_browser_bookmark_icon.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_launcher_shortcut_browser_bookmark_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_launcher_shortcut_browser_bookmark_icon.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_dialog_browser_certificate_partially_secure.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-hdpi/ic_dialog_browser_certificate_partially_secure.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_dialog_browser_certificate_partially_secure.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redux/android_packages_apps_Browser/master/res/drawable-mdpi/ic_dialog_browser_certificate_partially_secure.png
--------------------------------------------------------------------------------
/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH:= $(call my-dir)
2 | include $(CLEAR_VARS)
3 |
4 | LOCAL_MODULE_TAGS := optional
5 |
6 | LOCAL_STATIC_JAVA_LIBRARIES := \
7 | android-common
8 |
9 | LOCAL_SRC_FILES := \
10 | $(call all-java-files-under, src) \
11 | src/com/android/browser/EventLogTags.logtags
12 |
13 | LOCAL_PACKAGE_NAME := Browser
14 |
15 | LOCAL_EMMA_COVERAGE_FILTER := *,-com.android.common.*
16 |
17 | include $(BUILD_PACKAGE)
18 |
19 | # additionally, build tests in sub-folders in a separate .apk
20 | include $(call all-makefiles-under,$(LOCAL_PATH))
21 |
--------------------------------------------------------------------------------
/assets/html/flashtest.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Flash test
4 |
5 |
6 | Flash test
7 | This is text above the plugin
8 | Google
9 |
10 | lhs
11 |
14 |
15 |
16 | This is some the text and more text and more text and more text and more text and more text and more text and more text and more text and more text and more text
17 |
18 |
19 |
--------------------------------------------------------------------------------
/tests/src/com/android/browser/BrowserLaunchPerformance.java:
--------------------------------------------------------------------------------
1 | package com.android.browser;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 | import android.test.LaunchPerformanceBase;
6 |
7 | public class BrowserLaunchPerformance extends LaunchPerformanceBase {
8 |
9 | @Override
10 | public void onCreate(Bundle arguments) {
11 | super.onCreate(arguments);
12 |
13 | mIntent.setClassName(getTargetContext(), "com.android.browser.BrowserActivity");
14 | start();
15 | }
16 |
17 | /**
18 | * Calls LaunchApp and finish.
19 | */
20 | @Override
21 | public void onStart() {
22 | super.onStart();
23 | LaunchApp();
24 | finish(Activity.RESULT_OK, mResults);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/com/android/browser/EventLogTags.logtags:
--------------------------------------------------------------------------------
1 | # See system/core/logcat/event.logtags for a description of the format of this file.
2 |
3 | option java_package com.android.browser
4 |
5 | # This event is logged when a user adds a new bookmark. This could just be a boolean,
6 | # but if lots of users add the same bookmark it could be a default bookmark on the browser.
7 | # Second parameter is where the bookmark was added from, currently history or bookmarks view.
8 | 70103 browser_bookmark_added (url|3), (where|3)
9 |
10 | # This event is logged after a page has finished loading. It is sending back the page url,
11 | # and how long it took to load the page. Could maybe also tell the kind of connection (2g, 3g, WiFi)?
12 | 70104 browser_page_loaded (url|3), (time|2|3)
13 |
14 | # This event is logged when the user navigates to a new page, sending the time spent on the current page.
15 | 70105 browser_timeonpage (url|3), (time|2|3)
16 |
--------------------------------------------------------------------------------
/res/menu/downloadhistorycontextfailed.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
--------------------------------------------------------------------------------
/res/menu/downloadhistorycontextrunning.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
--------------------------------------------------------------------------------
/res/values-ja/donottranslate_strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
20 | SHIFT_JIS
21 |
22 |
--------------------------------------------------------------------------------
/res/menu/websitesettings.xml:
--------------------------------------------------------------------------------
1 |
15 |
16 |
21 |
22 |
--------------------------------------------------------------------------------
/res/menu/history.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
22 |
--------------------------------------------------------------------------------
/res/drawable/blank.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | -
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/tools/search_engines.template.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/res/menu/downloadhistory.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
24 |
--------------------------------------------------------------------------------
/res/drawable/browser_history_tab.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/res/drawable/browser_bookmark_tab.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/res/drawable/browser_visited_tab.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/res/menu/bookmarks.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
24 |
--------------------------------------------------------------------------------
/res/anim/dialog_enter.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/res/anim/dialog_exit.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/res/menu/downloadhistorycontextfinished.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
25 |
--------------------------------------------------------------------------------
/res/drawable/title_voice.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
20 |
22 |
23 |
--------------------------------------------------------------------------------
/res/xml/bookmarkwidget.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
24 |
25 |
--------------------------------------------------------------------------------
/res/layout/empty_history.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
27 |
--------------------------------------------------------------------------------
/res/anim/title_bar_exit.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
18 |
20 |
22 |
23 |
--------------------------------------------------------------------------------
/res/layout/history_header.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
--------------------------------------------------------------------------------
/res/anim/title_bar_enter.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
21 |
23 |
24 |
--------------------------------------------------------------------------------
/res/values/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - yahoo
27 | - bing
28 |
29 |
30 |
--------------------------------------------------------------------------------
/res/values-en-rZA/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - yahoo
27 | - bing_en_ZA
28 |
29 |
30 |
--------------------------------------------------------------------------------
/res/values-da-rDK/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - bing_da_DK
27 | - yahoo_dk
28 |
29 |
30 |
--------------------------------------------------------------------------------
/res/values-de-rAT/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - yahoo_at
27 | - bing_de_AT
28 |
29 |
30 |
--------------------------------------------------------------------------------
/res/values-en-rAU/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - bing_en_AU
27 | - yahoo_au
28 |
29 |
30 |
--------------------------------------------------------------------------------
/res/values-en-rIE/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - yahoo_uk
27 | - bing_en_IE
28 |
29 |
30 |
--------------------------------------------------------------------------------
/res/values-en-rNZ/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - yahoo_nz
27 | - bing_en_NZ
28 |
29 |
30 |
--------------------------------------------------------------------------------
/res/values-fr-rFR/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - yahoo_fr
27 | - bing_fr_FR
28 |
29 |
30 |
--------------------------------------------------------------------------------
/res/values-zh-rTW/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - yahoo_tw
27 | - bing_zh_TW
28 |
29 |
30 |
--------------------------------------------------------------------------------
/res/drawable/btn_bookmark.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
20 |
22 |
24 |
25 |
--------------------------------------------------------------------------------
/res/drawable/close_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
21 |
23 |
25 |
26 |
--------------------------------------------------------------------------------
/res/drawable/title_text.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
20 |
22 |
24 |
25 |
--------------------------------------------------------------------------------
/res/values-el-rGR/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - yahoo
27 | - in
28 | - bing_el_GR
29 |
30 |
31 |
--------------------------------------------------------------------------------
/res/values-ja-rJP/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - yahoo_jp
27 | - bing_ja_JP
28 | - goo
29 |
30 |
31 |
--------------------------------------------------------------------------------
/res/values-pt-rBR/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - bing_pt_BR
27 | - yahoo_br
28 | - uol
29 |
30 |
31 |
--------------------------------------------------------------------------------
/res/values-pt-rPT/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - sapo
27 | - bing_pt_PT
28 | - yahoo
29 |
30 |
31 |
--------------------------------------------------------------------------------
/res/values-tr-rTR/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - bing_tr_TR
27 | - yahoo
28 | - mynet
29 |
30 |
31 |
--------------------------------------------------------------------------------
/res/values-zh-rCN/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - baidu
27 | - yahoo_cn
28 | - bing_zh_CN
29 |
30 |
31 |
--------------------------------------------------------------------------------
/res/values-zh-rHK/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - yahoo_hk
27 | - bing_zh_HK
28 | - baidu
29 |
30 |
31 |
--------------------------------------------------------------------------------
/res/values-de-rDE/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - ask_de
27 | - bing_de_DE
28 | - yahoo_de
29 |
30 |
31 |
--------------------------------------------------------------------------------
/res/values-en-rGB/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - ask_uk
27 | - yahoo_uk
28 | - bing_en_GB
29 |
30 |
31 |
--------------------------------------------------------------------------------
/res/values-en-rSG/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - yahoo_sg
27 | - bing_en_SG
28 | - rednano
29 |
30 |
31 |
--------------------------------------------------------------------------------
/res/values-fr-rBE/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - bing_nl_BE
27 | - yahoo
28 | - bing_fr_BE
29 |
30 |
31 |
--------------------------------------------------------------------------------
/res/values-nl-rBE/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - bing_nl_BE
27 | - yahoo
28 | - bing_fr_BE
29 |
30 |
31 |
--------------------------------------------------------------------------------
/res/values-nl-rNL/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - bing_nl_NL
27 | - yahoo_nl
28 | - ask_nl
29 |
30 |
31 |
--------------------------------------------------------------------------------
/res/drawable/stop_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
20 |
21 |
23 |
25 |
26 |
--------------------------------------------------------------------------------
/res/values-ko-rKR/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - naver
27 | - daum
28 | - yahoo_kr
29 | - nate
30 |
31 |
32 |
--------------------------------------------------------------------------------
/res/values-nb-rNO/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - bing_nb_NO
27 | - abcsok
28 | - yahoo_no
29 | - kvasir
30 |
31 |
32 |
--------------------------------------------------------------------------------
/res/values-cs-rCZ/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - seznam
27 | - bing_cs_CZ
28 | - centrum_cz
29 | - atlas_cz
30 |
31 |
32 |
--------------------------------------------------------------------------------
/res/values-pl-rPL/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - bing_pl_PL
27 | - netsprint
28 | - yahoo_uk
29 | - onet
30 | - wp
31 |
32 |
33 |
--------------------------------------------------------------------------------
/res/values-ru-rRU/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - yandex_ru
27 | - mail_ru
28 | - tut
29 | - rambler
30 | - bing_ru_RU
31 |
32 |
33 |
--------------------------------------------------------------------------------
/tests/Android.mk:
--------------------------------------------------------------------------------
1 | # Copyright 2008, The Android Open Source Project
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | LOCAL_PATH:= $(call my-dir)
16 | include $(CLEAR_VARS)
17 |
18 | # We only want this apk build for tests.
19 | LOCAL_MODULE_TAGS := tests
20 |
21 | LOCAL_JAVA_LIBRARIES := android.test.runner
22 |
23 | # Include all test java files.
24 | LOCAL_SRC_FILES := $(call all-java-files-under, src)
25 |
26 | # Notice that we don't have to include the src files of Browser because, by
27 | # running the tests using an instrumentation targeting Browser, we
28 | # automatically get all of its classes loaded into our environment.
29 |
30 | LOCAL_PACKAGE_NAME := BrowserTests
31 |
32 | LOCAL_INSTRUMENTATION_FOR := Browser
33 |
34 | include $(BUILD_PACKAGE)
35 |
--------------------------------------------------------------------------------
/res/menu/title_context.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
27 |
--------------------------------------------------------------------------------
/res/values-es-rES/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - ask_es
27 | - bing_es_ES
28 | - yahoo_es
29 | - terra_es
30 | - hispavista
31 |
32 |
33 |
--------------------------------------------------------------------------------
/res/values-it-rIT/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - ask_it
27 | - virgilio
28 | - bing_it_IT
29 | - yahoo_it
30 | - libero
31 |
32 |
33 |
--------------------------------------------------------------------------------
/res/values-sv-rSE/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - bing_sv_SE
27 | - yahoo_se
28 | - altavista_se
29 | - spray
30 | - eniro_se
31 |
32 |
33 |
--------------------------------------------------------------------------------
/res/values-de-rCH/donottranslate-search_engines.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
23 |
24 |
25 | - google
26 | - yahoo_ch
27 | - bing_de_CH
28 | - bing_fr_CH
29 | - search_de_CH
30 | - search_fr_CH
31 |
32 |
33 |
--------------------------------------------------------------------------------
/res/drawable/title_loading.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
20 |
21 |
23 |
24 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/res/xml/bookmarks_searchable.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
31 |
--------------------------------------------------------------------------------
/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
22 |
23 | #ffffffff
24 | #ff000000
25 |
26 | #ffffffff
27 | #ff000000
28 |
29 | #ffffffff
30 | #ffffffff
31 |
32 | #ffffffff
33 | #ff000000
34 |
35 |
36 |
37 | #ffdddddd
38 |
39 |
--------------------------------------------------------------------------------
/res/layout/tabs.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
20 |
21 |
25 |
26 |
30 |
31 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/tools/all_search_engines.template.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
27 |
28 |
32 |
33 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/res/xml/searchable.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
20 |
34 |
--------------------------------------------------------------------------------
/res/layout/custom_screen.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
24 |
27 |
28 |
32 |
33 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/res/menu/historycontext.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
33 |
--------------------------------------------------------------------------------
/src/com/android/browser/BookmarkSearch.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2009 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.android.browser;
18 |
19 | import android.app.Activity;
20 | import android.content.Intent;
21 | import android.os.Bundle;
22 |
23 | /**
24 | * This activity is never started from the browser. Its purpose is to provide bookmark suggestions
25 | * to global search (through its searchable meta-data), and to handle the intents produced
26 | * by clicking such suggestions.
27 | */
28 | public class BookmarkSearch extends Activity {
29 |
30 | @Override
31 | protected void onCreate(Bundle savedInstanceState) {
32 | super.onCreate(savedInstanceState);
33 | Intent intent = getIntent();
34 | if (intent != null) {
35 | String action = intent.getAction();
36 | if (Intent.ACTION_VIEW.equals(action)) {
37 | intent.setClass(this, BrowserActivity.class);
38 | startActivity(intent);
39 | }
40 | }
41 | finish();
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/res/layout/tab_view_add_tab.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
24 |
30 |
39 |
40 |
--------------------------------------------------------------------------------
/res/layout/video_loading_progress.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
29 |
30 |
36 |
--------------------------------------------------------------------------------
/res/layout/ssl_warning.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
22 |
23 |
24 |
29 |
30 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/res/layout/tab.xml:
--------------------------------------------------------------------------------
1 |
2 |
21 |
22 |
27 |
28 |
29 |
33 |
34 |
35 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/src/com/android/browser/widget/BookmarkWidgetProvider.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2010 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.android.browser.widget;
18 |
19 | import android.app.PendingIntent;
20 | import android.appwidget.AppWidgetManager;
21 | import android.appwidget.AppWidgetProvider;
22 | import android.content.Context;
23 | import android.content.Intent;
24 | import android.util.Log;
25 |
26 | /**
27 | * Widget that shows a preview of the user's bookmarks.
28 | */
29 | public class BookmarkWidgetProvider extends AppWidgetProvider {
30 |
31 | static final String TAG = "BookmarkWidgetProvider";
32 |
33 | @Override
34 | public void onUpdate(Context context, AppWidgetManager mngr, int[] ids) {
35 | context.startService(new Intent(BookmarkWidgetService.UPDATE, null,
36 | context, BookmarkWidgetService.class));
37 | }
38 |
39 | @Override
40 | public void onEnabled(Context context) {
41 | context.startService(new Intent(context, BookmarkWidgetService.class));
42 | }
43 |
44 | @Override
45 | public void onDisabled(Context context) {
46 | context.stopService(new Intent(context, BookmarkWidgetService.class));
47 | }
48 | }
49 |
50 |
--------------------------------------------------------------------------------
/res/layout/ssl_success.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
22 |
23 |
30 |
31 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/res/layout/active_tabs.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
28 |
37 |
38 |
44 |
45 |
--------------------------------------------------------------------------------
/res/menu/bookmarkscontext.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
41 |
--------------------------------------------------------------------------------
/src/com/android/browser/search/SearchEngine.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2010 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.android.browser.search;
17 |
18 | import android.content.Context;
19 | import android.database.Cursor;
20 | import android.os.Bundle;
21 |
22 | /**
23 | * Interface for search engines.
24 | */
25 | public interface SearchEngine {
26 |
27 | // Used if the search engine is Google
28 | static final String GOOGLE = "google";
29 |
30 | /**
31 | * Gets the unique name of this search engine.
32 | */
33 | public String getName();
34 |
35 | /**
36 | * Gets the human-readable name of this search engine.
37 | */
38 | public CharSequence getLabel();
39 |
40 | /**
41 | * Starts a search.
42 | */
43 | public void startSearch(Context context, String query, Bundle appData, String extraData);
44 |
45 | /**
46 | * Gets search suggestions.
47 | */
48 | public Cursor getSuggestions(Context context, String query);
49 |
50 | /**
51 | * Checks whether this search engine supports search suggestions.
52 | */
53 | public boolean supportsSuggestions();
54 |
55 | /**
56 | * Closes this search engine.
57 | */
58 | public void close();
59 |
60 | /**
61 | * Checks whether this search engine supports voice search.
62 | */
63 | public boolean supportsVoiceSearch();
64 | }
65 |
--------------------------------------------------------------------------------
/tests/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
20 |
21 |
24 |
25 |
26 |
27 |
28 |
33 |
36 |
37 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/res/layout/ssl_warnings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
22 |
23 |
27 |
28 |
29 |
40 |
41 |
42 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/src/com/android/browser/AddNewBookmark.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.android.browser;
18 |
19 | import android.content.Context;
20 | import android.view.LayoutInflater;
21 | import android.widget.ImageView;
22 | import android.widget.LinearLayout;
23 | import android.widget.TextView;
24 |
25 | /**
26 | * Custom layout for an item representing a bookmark in the browser.
27 | */
28 | // FIXME: Remove BrowserBookmarkItem
29 | class AddNewBookmark extends LinearLayout {
30 |
31 | private TextView mTextView;
32 | private TextView mUrlText;
33 | private ImageView mImageView;
34 |
35 | /**
36 | * Instantiate a bookmark item, including a default favicon.
37 | *
38 | * @param context The application context for the item.
39 | */
40 | AddNewBookmark(Context context) {
41 | super(context);
42 |
43 | setWillNotDraw(false);
44 | LayoutInflater factory = LayoutInflater.from(context);
45 | factory.inflate(R.layout.add_new_bookmark, this);
46 | mTextView = (TextView) findViewById(R.id.title);
47 | mUrlText = (TextView) findViewById(R.id.url);
48 | mImageView = (ImageView) findViewById(R.id.favicon);
49 | }
50 |
51 | /**
52 | * Set the new url for the bookmark item.
53 | * @param url The new url for the bookmark item.
54 | */
55 | /* package */ void setUrl(String url) {
56 | mUrlText.setText(url);
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/src/com/android/browser/LogTag.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2010 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.android.browser;
18 |
19 | import android.util.EventLog;
20 |
21 | public class LogTag {
22 |
23 | /**
24 | * Log when the user is adding a new bookmark.
25 | *
26 | * @param url the url of the new bookmark.
27 | * @param where the location from where the bookmark was added
28 | */
29 | public static void logBookmarkAdded(String url, String where) {
30 | EventLog.writeEvent(EventLogTags.BROWSER_BOOKMARK_ADDED, url + "|"
31 | + where);
32 | }
33 |
34 | /**
35 | * Log when a page has finished loading with how much
36 | * time the browser used to load the page.
37 | *
38 | * Note that a redirect will restart the timer, so this time is not
39 | * always how long it takes for the user to load a page.
40 | *
41 | * @param url the url of that page that finished loading.
42 | * @param duration the time the browser spent loading the page.
43 | */
44 | public static void logPageFinishedLoading(String url, long duration) {
45 | EventLog.writeEvent(EventLogTags.BROWSER_PAGE_LOADED, url + "|"
46 | + duration);
47 | }
48 |
49 | /**
50 | * log the time the user has spent on a webpage
51 | *
52 | * @param url the url of the page that is being logged (old page).
53 | * @param duration the time spent on the webpage.
54 | */
55 | public static void logTimeOnPage(String url, long duration) {
56 | EventLog.writeEvent(EventLogTags.BROWSER_TIMEONPAGE, url + "|"
57 | + duration);
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/CleanSpec.mk:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2007 The Android Open Source Project
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 | #
15 |
16 | # If you don't need to do a full clean build but would like to touch
17 | # a file or delete some intermediate files, add a clean step to the end
18 | # of the list. These steps will only be run once, if they haven't been
19 | # run before.
20 | #
21 | # E.g.:
22 | # $(call add-clean-step, touch -c external/sqlite/sqlite3.h)
23 | # $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates)
24 | #
25 | # Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with
26 | # files that are missing or have been moved.
27 | #
28 | # Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory.
29 | # Use $(OUT_DIR) to refer to the "out" directory.
30 | #
31 | # If you need to re-do something that's already mentioned, just copy
32 | # the command and add it to the bottom of the list. E.g., if a change
33 | # that you made last week required touching a file and a change you
34 | # made today requires touching the same file, just copy the old
35 | # touch step and add it to the end of the list.
36 | #
37 | # ************************************************
38 | # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
39 | # ************************************************
40 |
41 | # For example:
42 | #$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates)
43 | #$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates)
44 | #$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f)
45 | #$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*)
46 |
47 | # ************************************************
48 | # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
49 | # ************************************************
50 |
--------------------------------------------------------------------------------
/src/com/android/browser/Browser.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.android.browser;
18 |
19 | import android.util.Log;
20 |
21 | import android.app.Application;
22 | import android.content.Intent;
23 | import android.webkit.CookieManager;
24 | import android.webkit.CookieSyncManager;
25 |
26 | import dalvik.system.VMRuntime;
27 |
28 | public class Browser extends Application {
29 |
30 | private final static String LOGTAG = "browser";
31 |
32 | // Set to true to enable extra debugging.
33 | final static boolean DEBUG = false;
34 |
35 | // Set to true to enable verbose logging.
36 | final static boolean LOGV_ENABLED = DEBUG;
37 |
38 | // Set to true to enable extra debug logging.
39 | final static boolean LOGD_ENABLED = true;
40 |
41 | /**
42 | * Specifies a heap utilization ratio that works better
43 | * for the browser than the default ratio does.
44 | */
45 | private final static float TARGET_HEAP_UTILIZATION = 0.75f;
46 |
47 | public Browser() {
48 | }
49 |
50 | public void onCreate() {
51 | if (LOGV_ENABLED)
52 | Log.v(LOGTAG, "Browser.onCreate: this=" + this);
53 | // Fix heap utilization for better heap size characteristics.
54 | VMRuntime.getRuntime().setTargetHeapUtilization(
55 | TARGET_HEAP_UTILIZATION);
56 | // create CookieSyncManager with current Context
57 | CookieSyncManager.createInstance(this);
58 | // remove all expired cookies
59 | CookieManager.getInstance().removeExpiredCookie();
60 | BrowserSettings.getInstance().loadFromDb(this);
61 | }
62 |
63 | static Intent createBrowserViewIntent() {
64 | Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);
65 | return intent;
66 | }
67 | }
68 |
69 |
--------------------------------------------------------------------------------
/res/layout/browser_subwindow.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
25 |
31 |
37 |
38 |
39 |
45 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/res/layout/browser_select.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
26 |
32 |
33 |
39 |
40 |
46 |
47 |
53 |
54 |
59 |
60 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/src/com/android/browser/search/SearchEnginePreference.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2010 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.android.browser.search;
17 |
18 | import com.android.browser.R;
19 |
20 | import android.app.SearchManager;
21 | import android.content.ComponentName;
22 | import android.content.Context;
23 | import android.content.pm.ActivityInfo;
24 | import android.content.pm.PackageManager;
25 | import android.content.res.Resources;
26 | import android.preference.ListPreference;
27 | import android.util.AttributeSet;
28 | import android.util.Log;
29 |
30 | import java.util.ArrayList;
31 |
32 | class SearchEnginePreference extends ListPreference {
33 |
34 | private static final String TAG = "SearchEnginePreference";
35 |
36 | public SearchEnginePreference(Context context, AttributeSet attrs) {
37 | super(context, attrs);
38 |
39 | ArrayList entryValues = new ArrayList();
40 | ArrayList entries = new ArrayList();
41 |
42 | SearchEngine defaultSearchEngine = SearchEngines.getDefaultSearchEngine(context);
43 | String defaultSearchEngineName = null;
44 | if (defaultSearchEngine != null) {
45 | defaultSearchEngineName = defaultSearchEngine.getName();
46 | entryValues.add(defaultSearchEngineName);
47 | entries.add(defaultSearchEngine.getLabel());
48 | }
49 | for (SearchEngineInfo searchEngineInfo : SearchEngines.getSearchEngineInfos(context)) {
50 | String name = searchEngineInfo.getName();
51 | // Skip entry with same name as default provider
52 | if (!name.equals(defaultSearchEngineName)) {
53 | entryValues.add(name);
54 | entries.add(searchEngineInfo.getLabel());
55 | }
56 | }
57 |
58 | setEntryValues(entryValues.toArray(new CharSequence[entryValues.size()]));
59 | setEntries(entries.toArray(new CharSequence[entries.size()]));
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/res/layout/add_new_bookmark.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
28 |
37 |
42 |
50 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/src/com/android/browser/BrowserYesNoPreference.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.android.browser;
18 |
19 | import com.android.internal.preference.YesNoPreference;
20 |
21 | import android.content.Context;
22 | import android.util.AttributeSet;
23 |
24 | class BrowserYesNoPreference extends YesNoPreference {
25 |
26 | // This is the constructor called by the inflater
27 | public BrowserYesNoPreference(Context context, AttributeSet attrs) {
28 | super(context, attrs);
29 | }
30 |
31 | @Override
32 | protected void onDialogClosed(boolean positiveResult) {
33 | super.onDialogClosed(positiveResult);
34 |
35 | if (positiveResult) {
36 | setEnabled(false);
37 |
38 | Context context = getContext();
39 | if (BrowserSettings.PREF_CLEAR_CACHE.equals(getKey())) {
40 | BrowserSettings.getInstance().clearCache(context);
41 | BrowserSettings.getInstance().clearDatabases(context);
42 | } else if (BrowserSettings.PREF_CLEAR_COOKIES.equals(getKey())) {
43 | BrowserSettings.getInstance().clearCookies(context);
44 | } else if (BrowserSettings.PREF_CLEAR_HISTORY.equals(getKey())) {
45 | BrowserSettings.getInstance().clearHistory(context);
46 | } else if (BrowserSettings.PREF_CLEAR_FORM_DATA.equals(getKey())) {
47 | BrowserSettings.getInstance().clearFormData(context);
48 | } else if (BrowserSettings.PREF_CLEAR_PASSWORDS.equals(getKey())) {
49 | BrowserSettings.getInstance().clearPasswords(context);
50 | } else if (BrowserSettings.PREF_EXTRAS_RESET_DEFAULTS.equals(
51 | getKey())) {
52 | BrowserSettings.getInstance().resetDefaultPreferences(context);
53 | setEnabled(true);
54 | } else if (BrowserSettings.PREF_CLEAR_GEOLOCATION_ACCESS.equals(
55 | getKey())) {
56 | BrowserSettings.getInstance().clearLocationAccess(context);
57 | }
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/src/com/android/browser/WebDialog.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2010 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.android.browser;
18 |
19 | import android.content.Context;
20 | import android.view.View;
21 | import android.view.animation.AnimationUtils;
22 | import android.view.inputmethod.InputMethodManager;
23 | import android.webkit.WebView;
24 | import android.widget.LinearLayout;
25 |
26 | /* package */ class WebDialog extends LinearLayout {
27 | protected WebView mWebView;
28 | protected BrowserActivity mBrowserActivity;
29 | private boolean mIsVisible;
30 |
31 | /* package */ WebDialog(BrowserActivity context) {
32 | super(context);
33 | mBrowserActivity = context;
34 | }
35 |
36 | /* dialogs that have cancel buttons can optionally share code by including a
37 | * view with an id of 'done'.
38 | */
39 | protected void addCancel() {
40 | View button = findViewById(R.id.done);
41 | if (button != null) button.setOnClickListener(mCancelListener);
42 | }
43 |
44 | private View.OnClickListener mCancelListener = new View.OnClickListener() {
45 | public void onClick(View v) {
46 | mBrowserActivity.closeDialogs();
47 | }
48 | };
49 |
50 | protected void dismiss() {
51 | startAnimation(AnimationUtils.loadAnimation(mBrowserActivity,
52 | R.anim.dialog_exit));
53 | mIsVisible = false;
54 | }
55 |
56 | /*
57 | * Remove the soft keyboard from the screen.
58 | */
59 | protected void hideSoftInput() {
60 | InputMethodManager imm = (InputMethodManager)
61 | mBrowserActivity.getSystemService(Context.INPUT_METHOD_SERVICE);
62 | imm.hideSoftInputFromWindow(mWebView.getWindowToken(), 0);
63 | }
64 |
65 | protected boolean isVisible() {
66 | return mIsVisible;
67 | }
68 |
69 | /* package */ void setWebView(WebView webview) {
70 | mWebView = webview;
71 | }
72 |
73 | protected void show() {
74 | startAnimation(AnimationUtils.loadAnimation(mBrowserActivity,
75 | R.anim.dialog_enter));
76 | mIsVisible = true;
77 | }
78 |
79 | }
80 |
--------------------------------------------------------------------------------
/src/com/android/browser/Dots.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.android.browser;
18 |
19 | import android.content.Context;
20 | import android.util.AttributeSet;
21 | import android.view.Gravity;
22 | import android.widget.ImageView;
23 | import android.widget.LinearLayout;
24 |
25 | import java.util.Map;
26 |
27 | /**
28 | * Displays a series of dots. The selected one is highlighted.
29 | * No animations yet. Nothing fancy.
30 | */
31 | class Dots extends LinearLayout {
32 |
33 | private static final int MAX_DOTS = 8;
34 | private int mSelected = -1;
35 |
36 | public Dots(Context context) {
37 | this(context, null);
38 | }
39 |
40 | public Dots(Context context, AttributeSet attrs) {
41 | super(context, attrs);
42 |
43 | setGravity(Gravity.CENTER);
44 | setPadding(0, 4, 0, 4);
45 |
46 | LayoutParams lp =
47 | new LayoutParams(LayoutParams.WRAP_CONTENT,
48 | LayoutParams.WRAP_CONTENT);
49 |
50 | for (int i = 0; i < MAX_DOTS; i++) {
51 | ImageView dotView = new ImageView(mContext);
52 | dotView.setImageResource(R.drawable.page_indicator_unselected2);
53 | addView(dotView, lp);
54 | }
55 | }
56 |
57 | /**
58 | * @param dotCount if less than 1 or greater than MAX_DOTS, Dots
59 | * disappears
60 | */
61 | public void setDotCount(int dotCount) {
62 | if (dotCount > 1 && dotCount <= MAX_DOTS) {
63 | setVisibility(VISIBLE);
64 | for (int i = 0; i < MAX_DOTS; i++) {
65 | getChildAt(i).setVisibility(i < dotCount? VISIBLE : GONE);
66 | }
67 | } else {
68 | setVisibility(GONE);
69 | }
70 | }
71 |
72 | public void setSelected(int index) {
73 | if (index < 0 || index >= MAX_DOTS) return;
74 |
75 | if (mSelected >= 0) {
76 | // Unselect old
77 | ((ImageView)getChildAt(mSelected)).setImageResource(
78 | R.drawable.page_indicator_unselected2);
79 | }
80 | ((ImageView)getChildAt(index)).setImageResource(R.drawable.page_indicator);
81 | mSelected = index;
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/res/layout/error_console.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
17 |
18 |
24 |
25 |
35 |
36 |
44 |
45 |
50 |
51 |
60 |
61 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/res/layout/http_authentication.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
22 |
23 |
34 |
35 |
46 |
47 |
57 |
58 |
69 |
70 |
--------------------------------------------------------------------------------
/res/layout-land/page_info.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
22 |
23 |
27 |
28 |
29 |
40 |
41 |
42 |
47 |
48 |
49 |
57 |
58 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
--------------------------------------------------------------------------------
/res/layout/history_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
28 |
37 |
42 |
50 |
58 |
59 |
65 |
66 |
--------------------------------------------------------------------------------
/src/com/android/browser/search/SearchEngines.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2010 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.android.browser.search;
17 |
18 | import com.android.browser.R;
19 |
20 | import android.app.SearchManager;
21 | import android.content.ComponentName;
22 | import android.content.Context;
23 | import android.content.pm.ActivityInfo;
24 | import android.content.pm.PackageManager;
25 | import android.content.res.Resources;
26 | import android.text.TextUtils;
27 | import android.util.Log;
28 |
29 | import java.util.ArrayList;
30 | import java.util.List;
31 |
32 | public class SearchEngines {
33 |
34 | private static final String TAG = "SearchEngines";
35 |
36 | public static SearchEngine getDefaultSearchEngine(Context context) {
37 | return DefaultSearchEngine.create(context);
38 | }
39 |
40 | public static List getSearchEngineInfos(Context context) {
41 | ArrayList searchEngineInfos = new ArrayList();
42 | Resources res = context.getResources();
43 | String[] searchEngines = res.getStringArray(R.array.search_engines);
44 | for (int i = 0; i < searchEngines.length; i++) {
45 | String name = searchEngines[i];
46 | SearchEngineInfo info = new SearchEngineInfo(context, name);
47 | searchEngineInfos.add(info);
48 | }
49 | return searchEngineInfos;
50 | }
51 |
52 | public static SearchEngine get(Context context, String name) {
53 | // TODO: cache
54 | SearchEngine defaultSearchEngine = getDefaultSearchEngine(context);
55 | if (TextUtils.isEmpty(name)
56 | || (defaultSearchEngine != null && name.equals(defaultSearchEngine.getName()))) {
57 | return defaultSearchEngine;
58 | }
59 | SearchEngineInfo searchEngineInfo = getSearchEngineInfo(context, name);
60 | if (searchEngineInfo == null) return defaultSearchEngine;
61 | return new OpenSearchSearchEngine(context, searchEngineInfo);
62 | }
63 |
64 | private static SearchEngineInfo getSearchEngineInfo(Context context, String name) {
65 | try {
66 | return new SearchEngineInfo(context, name);
67 | } catch (IllegalArgumentException exception) {
68 | Log.e(TAG, "Cannot load search engine " + name, exception);
69 | return null;
70 | }
71 | }
72 |
73 | }
74 |
--------------------------------------------------------------------------------
/res/layout/page_info.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
22 |
23 |
27 |
28 |
29 |
40 |
41 |
42 |
46 |
47 |
58 |
59 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/res/layout/bookmarkwidget.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
28 |
29 |
35 |
36 |
46 |
47 |
53 |
54 |
55 |
56 |
64 |
65 |
71 |
72 |
76 |
77 |
78 |
79 |
80 |
--------------------------------------------------------------------------------
/res/menu/browsercontext.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
61 |
62 |
--------------------------------------------------------------------------------
/res/xml/debug_preferences.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
22 |
23 |
25 |
29 |
30 |
34 |
35 |
39 |
40 |
44 |
45 |
49 |
50 |
54 |
55 |
59 |
60 |
64 |
65 |
71 |
72 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/src/com/android/browser/HistoryItem.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 |
18 | package com.android.browser;
19 |
20 | import android.content.Context;
21 | import android.graphics.Bitmap;
22 | import android.provider.Browser;
23 | import android.view.View;
24 | import android.widget.CompoundButton;
25 | import android.widget.ImageView;
26 | import android.widget.TextView;
27 |
28 | /**
29 | * Layout representing a history item in the classic history viewer.
30 | */
31 | /* package */ class HistoryItem extends BookmarkItem {
32 |
33 | private CompoundButton mStar; // Star for bookmarking
34 | private CompoundButton.OnCheckedChangeListener mListener;
35 | /**
36 | * Create a new HistoryItem.
37 | * @param context Context for this HistoryItem.
38 | */
39 | /* package */ HistoryItem(Context context) {
40 | super(context);
41 |
42 | mStar = (CompoundButton) findViewById(R.id.star);
43 | mStar.setVisibility(View.VISIBLE);
44 | mListener = new CompoundButton.OnCheckedChangeListener() {
45 | public void onCheckedChanged(CompoundButton buttonView,
46 | boolean isChecked) {
47 | if (isChecked) {
48 | Bookmarks.addBookmark(mContext,
49 | mContext.getContentResolver(), mUrl, getName(), null, true);
50 | LogTag.logBookmarkAdded(mUrl, "history");
51 | } else {
52 | Bookmarks.removeFromBookmarks(mContext,
53 | mContext.getContentResolver(), mUrl, getName());
54 | }
55 | }
56 | };
57 | }
58 |
59 | /* package */ void copyTo(HistoryItem item) {
60 | item.mTextView.setText(mTextView.getText());
61 | item.mUrlText.setText(mUrlText.getText());
62 | item.setIsBookmark(mStar.isChecked());
63 | item.mImageView.setImageDrawable(mImageView.getDrawable());
64 | }
65 |
66 | /**
67 | * Whether or not this item represents a bookmarked site
68 | */
69 | /* package */ boolean isBookmark() {
70 | return mStar.isChecked();
71 | }
72 |
73 | /**
74 | * Set whether or not this represents a bookmark, and make sure the star
75 | * behaves appropriately.
76 | */
77 | /* package */ void setIsBookmark(boolean isBookmark) {
78 | mStar.setOnCheckedChangeListener(null);
79 | mStar.setChecked(isBookmark);
80 | mStar.setOnCheckedChangeListener(mListener);
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/res/layout/browser_find.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
26 |
32 |
33 |
39 |
40 |
47 |
54 |
61 |
68 |
69 |
70 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/res/layout-land/http_authentication.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
22 |
23 |
28 |
29 |
30 |
36 |
37 |
48 |
49 |
50 |
51 |
57 |
58 |
70 |
71 |
72 |
73 |
74 |
--------------------------------------------------------------------------------
/res/layout/tab_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
24 |
26 |
33 |
39 |
47 |
55 |
56 |
64 |
73 |
74 |
--------------------------------------------------------------------------------
/res/layout/bookmark_thumbnail.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
31 |
32 |
33 |
34 |
35 |
44 |
49 |
57 |
58 |
59 |
78 |
79 |
80 |
--------------------------------------------------------------------------------
/src/com/android/browser/SelectDialog.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2010 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.android.browser;
18 |
19 | import android.provider.Browser;
20 | import android.view.LayoutInflater;
21 | import android.view.View;
22 |
23 | /* package */ class SelectDialog extends WebDialog {
24 | private View mCopyButton;
25 | private View mSelectAllButton;
26 | private View mShareButton;
27 | private View mFindButton;
28 |
29 | SelectDialog(BrowserActivity context) {
30 | super(context);
31 | LayoutInflater factory = LayoutInflater.from(context);
32 | factory.inflate(R.layout.browser_select, this);
33 | addCancel();
34 |
35 | mCopyButton = findViewById(R.id.copy);
36 | mCopyButton.setOnClickListener(mCopyListener);
37 | mSelectAllButton = findViewById(R.id.select_all);
38 | mSelectAllButton.setOnClickListener(mSelectAllListener);
39 | mShareButton = findViewById(R.id.share);
40 | mShareButton.setOnClickListener(mShareListener);
41 | mFindButton = findViewById(R.id.find);
42 | mFindButton.setOnClickListener(mFindListener);
43 | }
44 |
45 | private View.OnClickListener mCopyListener = new View.OnClickListener() {
46 | public void onClick(View v) {
47 | mWebView.copySelection();
48 | mBrowserActivity.closeDialogs();
49 | }
50 | };
51 |
52 | private View.OnClickListener mSelectAllListener = new View.OnClickListener() {
53 | public void onClick(View v) {
54 | mWebView.selectAll();
55 | }
56 | };
57 |
58 | private View.OnClickListener mShareListener = new View.OnClickListener() {
59 | public void onClick(View v) {
60 | String selection = mWebView.getSelection();
61 | Browser.sendString(mBrowserActivity, selection);
62 | mBrowserActivity.closeDialogs();
63 | }
64 | };
65 |
66 | private View.OnClickListener mFindListener = new View.OnClickListener() {
67 | public void onClick(View v) {
68 | String selection = mWebView.getSelection();
69 | mBrowserActivity.closeDialogs();
70 | mBrowserActivity.showFindDialog();
71 | mBrowserActivity.setFindDialogText(selection);
72 | }
73 | };
74 |
75 | /**
76 | * Called by BrowserActivity.closeDialog. Start the animation to hide
77 | * the dialog, and inform the WebView that the dialog is being dismissed.
78 | */
79 | @Override
80 | public void dismiss() {
81 | super.dismiss();
82 | mWebView.notifySelectDialogDismissed();
83 | }
84 |
85 | }
86 |
--------------------------------------------------------------------------------
/res/layout/website_settings_row.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
32 |
33 |
42 |
43 |
47 |
48 |
52 |
53 |
60 |
61 |
62 |
70 |
71 |
77 |
78 |
85 |
86 |
87 |
--------------------------------------------------------------------------------