diff --git a/browser/base/content/browser.css b/browser/base/content/browser.css index 9075ea02acf..f5aad31f2aa 100644 --- a/browser/base/content/browser.css +++ b/browser/base/content/browser.css @@ -252,6 +252,11 @@ toolbar[customizing] > .overflow-button { %endif +#main-window[inFullscreen] #global-notificationbox, +#main-window[inFullscreen] #high-priority-global-notificationbox { + visibility: collapse; +} + /* Rules to help integrate SDK widgets */ toolbaritem[sdkstylewidget="true"] > toolbarbutton, toolbarpaletteitem > toolbaritem[sdkstylewidget="true"] > iframe, diff --git a/configure.in b/configure.in index 117556ad6b7..3816dcb16e3 100644 --- a/configure.in +++ b/configure.in @@ -3849,6 +3849,7 @@ MOZ_ANDROID_SEARCH_ACTIVITY= MOZ_ANDROID_DOWNLOADS_INTEGRATION= MOZ_ANDROID_MLS_STUMBLER= MOZ_ANDROID_SHARE_OVERLAY= +MOZ_ANDROID_NEW_TABLET_UI= ACCESSIBILITY=1 MOZ_TIME_MANAGER= MOZ_PAY= @@ -4908,6 +4909,14 @@ if test -n "$MOZ_ANDROID_SHARE_OVERLAY"; then AC_DEFINE(MOZ_ANDROID_SHARE_OVERLAY) fi +dnl ======================================================== +dnl = Include New Tablet UI on Android +dnl = Temporary build flag to allow development in Nightly +dnl ======================================================== +if test -n "$MOZ_ANDROID_NEW_TABLET_UI"; then + AC_DEFINE(MOZ_ANDROID_NEW_TABLET_UI) +fi + dnl ======================================================== dnl = Enable IPDL's "expensive" unit tests dnl ======================================================== @@ -8517,6 +8526,7 @@ AC_SUBST(MOZ_LOCALE_SWITCHER) AC_SUBST(MOZ_DISABLE_GECKOVIEW) AC_SUBST(MOZ_ANDROID_SEARCH_ACTIVITY) AC_SUBST(MOZ_ANDROID_SHARE_OVERLAY) +AC_SUBST(MOZ_ANDROID_NEW_TABLET_UI) AC_SUBST(MOZ_ANDROID_MLS_STUMBLER) AC_SUBST(MOZ_ANDROID_DOWNLOADS_INTEGRATION) AC_SUBST(ENABLE_STRIP) diff --git a/mobile/android/base/favicons/Favicons.java b/mobile/android/base/favicons/Favicons.java index d2d9bf7f8e6..8a1cf8afc98 100644 --- a/mobile/android/base/favicons/Favicons.java +++ b/mobile/android/base/favicons/Favicons.java @@ -409,7 +409,7 @@ public class Favicons { // TODO: Remove this branch when old tablet is removed. final int defaultFaviconSizeDimenID = - isNewTabletEnabled ? R.dimen.tab_strip_favicon_size : R.dimen.favicon_bg; + isNewTabletEnabled ? R.dimen.new_tablet_tab_strip_favicon_size : R.dimen.favicon_bg; defaultFaviconSize = res.getDimensionPixelSize(defaultFaviconSizeDimenID); // Screen-density-adjusted upper limit on favicon size. Favicons larger than this are diff --git a/mobile/android/base/moz.build b/mobile/android/base/moz.build index bae34b8821c..8776f63fd64 100644 --- a/mobile/android/base/moz.build +++ b/mobile/android/base/moz.build @@ -400,10 +400,6 @@ gbjar.sources += [ 'tabs/TabsLayoutItemView.java', 'tabs/TabsListLayout.java', 'tabs/TabsPanel.java', - 'tabs/TabStrip.java', - 'tabs/TabStripAdapter.java', - 'tabs/TabStripItemView.java', - 'tabs/TabStripView.java', 'TabsAccessor.java', 'Telemetry.java', 'TelemetryContract.java', @@ -513,6 +509,20 @@ if CONFIG['MOZ_ANDROID_SHARE_OVERLAY']: 'overlays/ui/ShareDialog.java', ] +if (CONFIG['MOZ_ANDROID_MAX_SDK_VERSION']): + max_sdk_version = int(CONFIG['MOZ_ANDROID_MAX_SDK_VERSION']) +else: + max_sdk_version = 999 + +if CONFIG['MOZ_ANDROID_NEW_TABLET_UI'] and max_sdk_version >= 11: + gbjar.sources += [ + 'tabs/TabStrip.java', + 'tabs/TabStripAdapter.java', + 'tabs/TabStripItemView.java', + 'tabs/TabStripView.java' + ] + ANDROID_RES_DIRS += [ SRCDIR + '/newtablet/res' ] + gbjar.sources += sync_java_files gbjar.generated_sources += sync_generated_java_files gbjar.extra_jars = [ @@ -619,7 +629,8 @@ ANDROID_GENERATED_RESFILES += [ for var in ('MOZ_ANDROID_ANR_REPORTER', 'MOZ_LINKER_EXTRACT', 'MOZILLA_OFFICIAL', 'MOZ_DEBUG', 'MOZ_ANDROID_SEARCH_ACTIVITY', 'MOZ_NATIVE_DEVICES', 'MOZ_ANDROID_MLS_STUMBLER', - 'MOZ_ANDROID_SHARE_OVERLAY', 'MOZ_ANDROID_DOWNLOADS_INTEGRATION'): + 'MOZ_ANDROID_SHARE_OVERLAY', 'MOZ_ANDROID_DOWNLOADS_INTEGRATION', + 'MOZ_ANDROID_NEW_TABLET_UI'): if CONFIG[var]: DEFINES[var] = 1 diff --git a/mobile/android/base/resources/color-large-v11/new_tablet_tab_strip_item_title.xml b/mobile/android/base/newtablet/res/color-large-v11/new_tablet_tab_strip_item_title.xml similarity index 100% rename from mobile/android/base/resources/color-large-v11/new_tablet_tab_strip_item_title.xml rename to mobile/android/base/newtablet/res/color-large-v11/new_tablet_tab_strip_item_title.xml diff --git a/mobile/android/base/resources/drawable-large-hdpi-v11/new_tablet_default_favicon.png b/mobile/android/base/newtablet/res/drawable-large-hdpi-v11/new_tablet_default_favicon.png similarity index 100% rename from mobile/android/base/resources/drawable-large-hdpi-v11/new_tablet_default_favicon.png rename to mobile/android/base/newtablet/res/drawable-large-hdpi-v11/new_tablet_default_favicon.png diff --git a/mobile/android/base/resources/drawable-large-hdpi-v11/new_tablet_ic_menu_back.png b/mobile/android/base/newtablet/res/drawable-large-hdpi-v11/new_tablet_ic_menu_back.png similarity index 100% rename from mobile/android/base/resources/drawable-large-hdpi-v11/new_tablet_ic_menu_back.png rename to mobile/android/base/newtablet/res/drawable-large-hdpi-v11/new_tablet_ic_menu_back.png diff --git a/mobile/android/base/resources/drawable-large-hdpi-v11/new_tablet_ic_menu_forward.png b/mobile/android/base/newtablet/res/drawable-large-hdpi-v11/new_tablet_ic_menu_forward.png similarity index 100% rename from mobile/android/base/resources/drawable-large-hdpi-v11/new_tablet_ic_menu_forward.png rename to mobile/android/base/newtablet/res/drawable-large-hdpi-v11/new_tablet_ic_menu_forward.png diff --git a/mobile/android/base/resources/drawable-large-hdpi-v11/new_tablet_ic_menu_reload.png b/mobile/android/base/newtablet/res/drawable-large-hdpi-v11/new_tablet_ic_menu_reload.png similarity index 100% rename from mobile/android/base/resources/drawable-large-hdpi-v11/new_tablet_ic_menu_reload.png rename to mobile/android/base/newtablet/res/drawable-large-hdpi-v11/new_tablet_ic_menu_reload.png diff --git a/mobile/android/base/resources/drawable-large-hdpi-v11/new_tablet_menu.png b/mobile/android/base/newtablet/res/drawable-large-hdpi-v11/new_tablet_menu.png similarity index 100% rename from mobile/android/base/resources/drawable-large-hdpi-v11/new_tablet_menu.png rename to mobile/android/base/newtablet/res/drawable-large-hdpi-v11/new_tablet_menu.png diff --git a/mobile/android/base/resources/drawable-large-hdpi-v11/new_tablet_tabs_count.png b/mobile/android/base/newtablet/res/drawable-large-hdpi-v11/new_tablet_tabs_count.png similarity index 100% rename from mobile/android/base/resources/drawable-large-hdpi-v11/new_tablet_tabs_count.png rename to mobile/android/base/newtablet/res/drawable-large-hdpi-v11/new_tablet_tabs_count.png diff --git a/mobile/android/base/resources/drawable-large-hdpi-v11/new_tablet_tabs_count_foreground.png b/mobile/android/base/newtablet/res/drawable-large-hdpi-v11/new_tablet_tabs_count_foreground.png similarity index 100% rename from mobile/android/base/resources/drawable-large-hdpi-v11/new_tablet_tabs_count_foreground.png rename to mobile/android/base/newtablet/res/drawable-large-hdpi-v11/new_tablet_tabs_count_foreground.png diff --git a/mobile/android/base/resources/drawable-large-mdpi-v11/new_tablet_default_favicon.png b/mobile/android/base/newtablet/res/drawable-large-mdpi-v11/new_tablet_default_favicon.png similarity index 100% rename from mobile/android/base/resources/drawable-large-mdpi-v11/new_tablet_default_favicon.png rename to mobile/android/base/newtablet/res/drawable-large-mdpi-v11/new_tablet_default_favicon.png diff --git a/mobile/android/base/resources/drawable-large-mdpi-v11/new_tablet_ic_menu_back.png b/mobile/android/base/newtablet/res/drawable-large-mdpi-v11/new_tablet_ic_menu_back.png similarity index 100% rename from mobile/android/base/resources/drawable-large-mdpi-v11/new_tablet_ic_menu_back.png rename to mobile/android/base/newtablet/res/drawable-large-mdpi-v11/new_tablet_ic_menu_back.png diff --git a/mobile/android/base/resources/drawable-large-mdpi-v11/new_tablet_ic_menu_forward.png b/mobile/android/base/newtablet/res/drawable-large-mdpi-v11/new_tablet_ic_menu_forward.png similarity index 100% rename from mobile/android/base/resources/drawable-large-mdpi-v11/new_tablet_ic_menu_forward.png rename to mobile/android/base/newtablet/res/drawable-large-mdpi-v11/new_tablet_ic_menu_forward.png diff --git a/mobile/android/base/resources/drawable-large-mdpi-v11/new_tablet_ic_menu_reload.png b/mobile/android/base/newtablet/res/drawable-large-mdpi-v11/new_tablet_ic_menu_reload.png similarity index 100% rename from mobile/android/base/resources/drawable-large-mdpi-v11/new_tablet_ic_menu_reload.png rename to mobile/android/base/newtablet/res/drawable-large-mdpi-v11/new_tablet_ic_menu_reload.png diff --git a/mobile/android/base/resources/drawable-large-mdpi-v11/new_tablet_menu.png b/mobile/android/base/newtablet/res/drawable-large-mdpi-v11/new_tablet_menu.png similarity index 100% rename from mobile/android/base/resources/drawable-large-mdpi-v11/new_tablet_menu.png rename to mobile/android/base/newtablet/res/drawable-large-mdpi-v11/new_tablet_menu.png diff --git a/mobile/android/base/resources/drawable-large-mdpi-v11/new_tablet_tabs_count.png b/mobile/android/base/newtablet/res/drawable-large-mdpi-v11/new_tablet_tabs_count.png similarity index 100% rename from mobile/android/base/resources/drawable-large-mdpi-v11/new_tablet_tabs_count.png rename to mobile/android/base/newtablet/res/drawable-large-mdpi-v11/new_tablet_tabs_count.png diff --git a/mobile/android/base/resources/drawable-large-mdpi-v11/new_tablet_tabs_count_foreground.png b/mobile/android/base/newtablet/res/drawable-large-mdpi-v11/new_tablet_tabs_count_foreground.png similarity index 100% rename from mobile/android/base/resources/drawable-large-mdpi-v11/new_tablet_tabs_count_foreground.png rename to mobile/android/base/newtablet/res/drawable-large-mdpi-v11/new_tablet_tabs_count_foreground.png diff --git a/mobile/android/base/resources/drawable-large-v11/new_tablet_tab_strip_divider.xml b/mobile/android/base/newtablet/res/drawable-large-v11/new_tablet_tab_strip_divider.xml similarity index 100% rename from mobile/android/base/resources/drawable-large-v11/new_tablet_tab_strip_divider.xml rename to mobile/android/base/newtablet/res/drawable-large-v11/new_tablet_tab_strip_divider.xml diff --git a/mobile/android/base/resources/drawable-large-v11/new_tablet_tab_strip_item_bg.xml b/mobile/android/base/newtablet/res/drawable-large-v11/new_tablet_tab_strip_item_bg.xml similarity index 100% rename from mobile/android/base/resources/drawable-large-v11/new_tablet_tab_strip_item_bg.xml rename to mobile/android/base/newtablet/res/drawable-large-v11/new_tablet_tab_strip_item_bg.xml diff --git a/mobile/android/base/resources/drawable-large-xhdpi-v11/new_tablet_default_favicon.png b/mobile/android/base/newtablet/res/drawable-large-xhdpi-v11/new_tablet_default_favicon.png similarity index 100% rename from mobile/android/base/resources/drawable-large-xhdpi-v11/new_tablet_default_favicon.png rename to mobile/android/base/newtablet/res/drawable-large-xhdpi-v11/new_tablet_default_favicon.png diff --git a/mobile/android/base/resources/drawable-large-xhdpi-v11/new_tablet_ic_menu_back.png b/mobile/android/base/newtablet/res/drawable-large-xhdpi-v11/new_tablet_ic_menu_back.png similarity index 100% rename from mobile/android/base/resources/drawable-large-xhdpi-v11/new_tablet_ic_menu_back.png rename to mobile/android/base/newtablet/res/drawable-large-xhdpi-v11/new_tablet_ic_menu_back.png diff --git a/mobile/android/base/resources/drawable-large-xhdpi-v11/new_tablet_ic_menu_forward.png b/mobile/android/base/newtablet/res/drawable-large-xhdpi-v11/new_tablet_ic_menu_forward.png similarity index 100% rename from mobile/android/base/resources/drawable-large-xhdpi-v11/new_tablet_ic_menu_forward.png rename to mobile/android/base/newtablet/res/drawable-large-xhdpi-v11/new_tablet_ic_menu_forward.png diff --git a/mobile/android/base/resources/drawable-large-xhdpi-v11/new_tablet_ic_menu_reload.png b/mobile/android/base/newtablet/res/drawable-large-xhdpi-v11/new_tablet_ic_menu_reload.png similarity index 100% rename from mobile/android/base/resources/drawable-large-xhdpi-v11/new_tablet_ic_menu_reload.png rename to mobile/android/base/newtablet/res/drawable-large-xhdpi-v11/new_tablet_ic_menu_reload.png diff --git a/mobile/android/base/resources/drawable-large-xhdpi-v11/new_tablet_menu.png b/mobile/android/base/newtablet/res/drawable-large-xhdpi-v11/new_tablet_menu.png similarity index 100% rename from mobile/android/base/resources/drawable-large-xhdpi-v11/new_tablet_menu.png rename to mobile/android/base/newtablet/res/drawable-large-xhdpi-v11/new_tablet_menu.png diff --git a/mobile/android/base/resources/drawable-large-xhdpi-v11/new_tablet_tabs_count.png b/mobile/android/base/newtablet/res/drawable-large-xhdpi-v11/new_tablet_tabs_count.png similarity index 100% rename from mobile/android/base/resources/drawable-large-xhdpi-v11/new_tablet_tabs_count.png rename to mobile/android/base/newtablet/res/drawable-large-xhdpi-v11/new_tablet_tabs_count.png diff --git a/mobile/android/base/resources/drawable-large-xhdpi-v11/new_tablet_tabs_count_foreground.png b/mobile/android/base/newtablet/res/drawable-large-xhdpi-v11/new_tablet_tabs_count_foreground.png similarity index 100% rename from mobile/android/base/resources/drawable-large-xhdpi-v11/new_tablet_tabs_count_foreground.png rename to mobile/android/base/newtablet/res/drawable-large-xhdpi-v11/new_tablet_tabs_count_foreground.png diff --git a/mobile/android/base/resources/drawable-large-xxhdpi-v11/new_tablet_default_favicon.png b/mobile/android/base/newtablet/res/drawable-large-xxhdpi-v11/new_tablet_default_favicon.png similarity index 100% rename from mobile/android/base/resources/drawable-large-xxhdpi-v11/new_tablet_default_favicon.png rename to mobile/android/base/newtablet/res/drawable-large-xxhdpi-v11/new_tablet_default_favicon.png diff --git a/mobile/android/base/resources/drawable-large-xxhdpi-v11/new_tablet_ic_menu_back.png b/mobile/android/base/newtablet/res/drawable-large-xxhdpi-v11/new_tablet_ic_menu_back.png similarity index 100% rename from mobile/android/base/resources/drawable-large-xxhdpi-v11/new_tablet_ic_menu_back.png rename to mobile/android/base/newtablet/res/drawable-large-xxhdpi-v11/new_tablet_ic_menu_back.png diff --git a/mobile/android/base/resources/drawable-large-xxhdpi-v11/new_tablet_ic_menu_forward.png b/mobile/android/base/newtablet/res/drawable-large-xxhdpi-v11/new_tablet_ic_menu_forward.png similarity index 100% rename from mobile/android/base/resources/drawable-large-xxhdpi-v11/new_tablet_ic_menu_forward.png rename to mobile/android/base/newtablet/res/drawable-large-xxhdpi-v11/new_tablet_ic_menu_forward.png diff --git a/mobile/android/base/resources/drawable-large-xxhdpi-v11/new_tablet_ic_menu_reload.png b/mobile/android/base/newtablet/res/drawable-large-xxhdpi-v11/new_tablet_ic_menu_reload.png similarity index 100% rename from mobile/android/base/resources/drawable-large-xxhdpi-v11/new_tablet_ic_menu_reload.png rename to mobile/android/base/newtablet/res/drawable-large-xxhdpi-v11/new_tablet_ic_menu_reload.png diff --git a/mobile/android/base/resources/drawable-large-xxhdpi-v11/new_tablet_menu.png b/mobile/android/base/newtablet/res/drawable-large-xxhdpi-v11/new_tablet_menu.png similarity index 100% rename from mobile/android/base/resources/drawable-large-xxhdpi-v11/new_tablet_menu.png rename to mobile/android/base/newtablet/res/drawable-large-xxhdpi-v11/new_tablet_menu.png diff --git a/mobile/android/base/resources/drawable-large-xxhdpi-v11/new_tablet_tabs_count.png b/mobile/android/base/newtablet/res/drawable-large-xxhdpi-v11/new_tablet_tabs_count.png similarity index 100% rename from mobile/android/base/resources/drawable-large-xxhdpi-v11/new_tablet_tabs_count.png rename to mobile/android/base/newtablet/res/drawable-large-xxhdpi-v11/new_tablet_tabs_count.png diff --git a/mobile/android/base/resources/drawable-large-xxhdpi-v11/new_tablet_tabs_count_foreground.png b/mobile/android/base/newtablet/res/drawable-large-xxhdpi-v11/new_tablet_tabs_count_foreground.png similarity index 100% rename from mobile/android/base/resources/drawable-large-xxhdpi-v11/new_tablet_tabs_count_foreground.png rename to mobile/android/base/newtablet/res/drawable-large-xxhdpi-v11/new_tablet_tabs_count_foreground.png diff --git a/mobile/android/base/resources/layout-large-v11/new_tablet_browser_toolbar.xml b/mobile/android/base/newtablet/res/layout-large-v11/new_tablet_browser_toolbar.xml similarity index 100% rename from mobile/android/base/resources/layout-large-v11/new_tablet_browser_toolbar.xml rename to mobile/android/base/newtablet/res/layout-large-v11/new_tablet_browser_toolbar.xml diff --git a/mobile/android/base/resources/layout-large-v11/new_tablet_tab_strip.xml b/mobile/android/base/newtablet/res/layout-large-v11/new_tablet_tab_strip.xml similarity index 100% rename from mobile/android/base/resources/layout-large-v11/new_tablet_tab_strip.xml rename to mobile/android/base/newtablet/res/layout-large-v11/new_tablet_tab_strip.xml diff --git a/mobile/android/base/resources/layout-large-v11/new_tablet_tabs_counter.xml b/mobile/android/base/newtablet/res/layout-large-v11/new_tablet_tabs_counter.xml similarity index 100% rename from mobile/android/base/resources/layout-large-v11/new_tablet_tabs_counter.xml rename to mobile/android/base/newtablet/res/layout-large-v11/new_tablet_tabs_counter.xml diff --git a/mobile/android/base/resources/layout-large-v11/tab_strip.xml b/mobile/android/base/newtablet/res/layout-large-v11/tab_strip.xml similarity index 100% rename from mobile/android/base/resources/layout-large-v11/tab_strip.xml rename to mobile/android/base/newtablet/res/layout-large-v11/tab_strip.xml diff --git a/mobile/android/base/resources/layout-large-v11/tab_strip_item.xml b/mobile/android/base/newtablet/res/layout-large-v11/tab_strip_item.xml similarity index 100% rename from mobile/android/base/resources/layout-large-v11/tab_strip_item.xml rename to mobile/android/base/newtablet/res/layout-large-v11/tab_strip_item.xml diff --git a/mobile/android/base/resources/layout-large-v11/tab_strip_item_view.xml b/mobile/android/base/newtablet/res/layout-large-v11/tab_strip_item_view.xml similarity index 95% rename from mobile/android/base/resources/layout-large-v11/tab_strip_item_view.xml rename to mobile/android/base/newtablet/res/layout-large-v11/tab_strip_item_view.xml index fd64328f750..57106e9c5bf 100644 --- a/mobile/android/base/resources/layout-large-v11/tab_strip_item_view.xml +++ b/mobile/android/base/newtablet/res/layout-large-v11/tab_strip_item_view.xml @@ -8,7 +8,7 @@ + + + diff --git a/mobile/android/base/resources/drawable/new_tablet_ic_menu_forward.xml b/mobile/android/base/resources/drawable/new_tablet_ic_menu_forward.xml new file mode 100644 index 00000000000..d3e7c791725 --- /dev/null +++ b/mobile/android/base/resources/drawable/new_tablet_ic_menu_forward.xml @@ -0,0 +1,7 @@ + + + + diff --git a/mobile/android/base/resources/drawable/new_tablet_ic_menu_reload.xml b/mobile/android/base/resources/drawable/new_tablet_ic_menu_reload.xml new file mode 100644 index 00000000000..d3e7c791725 --- /dev/null +++ b/mobile/android/base/resources/drawable/new_tablet_ic_menu_reload.xml @@ -0,0 +1,7 @@ + + + + diff --git a/mobile/android/base/resources/drawable/new_tablet_tabs_count.xml b/mobile/android/base/resources/drawable/new_tablet_tabs_count.xml new file mode 100644 index 00000000000..d3e7c791725 --- /dev/null +++ b/mobile/android/base/resources/drawable/new_tablet_tabs_count.xml @@ -0,0 +1,7 @@ + + + + diff --git a/mobile/android/base/resources/values-large-v11/dimens.xml b/mobile/android/base/resources/values-large-v11/dimens.xml index 466d546804d..1b508753a89 100644 --- a/mobile/android/base/resources/values-large-v11/dimens.xml +++ b/mobile/android/base/resources/values-large-v11/dimens.xml @@ -12,14 +12,7 @@ 42dp 21dp - -13dip - -6dp - - 19dp - 26sp 200dp - 16dp - diff --git a/mobile/android/base/resources/values-large-v11/themes.xml b/mobile/android/base/resources/values-large-v11/themes.xml index f9a32b91ad0..b4a3fea5c2d 100644 --- a/mobile/android/base/resources/values-large-v11/themes.xml +++ b/mobile/android/base/resources/values-large-v11/themes.xml @@ -14,6 +14,7 @@ false true 400dp + @style/Widget.MenuItemActionBar.NewTablet