Merge mozilla-central and fx-team
@ -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,
|
||||
|
10
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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Before Width: | Height: | Size: 242 B After Width: | Height: | Size: 242 B |
Before Width: | Height: | Size: 822 B After Width: | Height: | Size: 822 B |
Before Width: | Height: | Size: 669 B After Width: | Height: | Size: 669 B |
Before Width: | Height: | Size: 989 B After Width: | Height: | Size: 989 B |
Before Width: | Height: | Size: 137 B After Width: | Height: | Size: 137 B |
Before Width: | Height: | Size: 172 B After Width: | Height: | Size: 172 B |
Before Width: | Height: | Size: 145 B After Width: | Height: | Size: 145 B |
Before Width: | Height: | Size: 148 B After Width: | Height: | Size: 148 B |
Before Width: | Height: | Size: 593 B After Width: | Height: | Size: 593 B |
Before Width: | Height: | Size: 408 B After Width: | Height: | Size: 408 B |
Before Width: | Height: | Size: 676 B After Width: | Height: | Size: 676 B |
Before Width: | Height: | Size: 132 B After Width: | Height: | Size: 132 B |
Before Width: | Height: | Size: 147 B After Width: | Height: | Size: 147 B |
Before Width: | Height: | Size: 129 B After Width: | Height: | Size: 129 B |
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 282 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 806 B After Width: | Height: | Size: 806 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 139 B After Width: | Height: | Size: 139 B |
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 164 B After Width: | Height: | Size: 164 B |
Before Width: | Height: | Size: 470 B After Width: | Height: | Size: 470 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 163 B After Width: | Height: | Size: 163 B |
Before Width: | Height: | Size: 232 B After Width: | Height: | Size: 232 B |
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 197 B |
@ -8,7 +8,7 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/favicon"
|
||||
android:layout_width="@dimen/tab_strip_favicon_size"
|
||||
android:layout_width="@dimen/new_tablet_tab_strip_favicon_size"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginRight="9dp"
|
||||
android:scaleType="centerInside"
|
Before Width: | Height: | Size: 305 B After Width: | Height: | Size: 305 B |
Before Width: | Height: | Size: 259 B After Width: | Height: | Size: 259 B |
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 393 B |
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@null"/>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@null"/>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@null"/>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@null"/>
|
@ -12,14 +12,7 @@
|
||||
<dimen name="back_button_width">42dp</dimen>
|
||||
<dimen name="back_button_width_half">21dp</dimen>
|
||||
|
||||
<dimen name="forward_default_offset">-13dip</dimen>
|
||||
<dimen name="new_tablet_forward_default_offset">-6dp</dimen>
|
||||
|
||||
<dimen name="new_tablet_browser_toolbar_menu_item_padding">19dp</dimen>
|
||||
|
||||
<dimen name="tabs_counter_size">26sp</dimen>
|
||||
<dimen name="panel_grid_view_column_width">200dp</dimen>
|
||||
|
||||
<dimen name="tab_strip_favicon_size">16dp</dimen>
|
||||
|
||||
</resources>
|
||||
|
@ -14,6 +14,7 @@
|
||||
<item name="android:windowActionBar">false</item>
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
<item name="arrowPopupWidth">400dp</item>
|
||||
<item name="menuItemActionBarStyleNewTablet">@style/Widget.MenuItemActionBar.NewTablet</item>
|
||||
</style>
|
||||
|
||||
<style name="GeckoStartPane" parent="Gecko.Dialog"/>
|
||||
|
@ -20,6 +20,10 @@
|
||||
<dimen name="new_tablet_tab_strip_height">48dp</dimen>
|
||||
<dimen name="new_tablet_tab_strip_item_width">250dp</dimen>
|
||||
<dimen name="new_tablet_tab_strip_item_margin">-30dp</dimen>
|
||||
<dimen name="new_tablet_tab_strip_favicon_size">-30dp</dimen>
|
||||
<dimen name="new_tablet_forward_default_offset">-6dp</dimen>
|
||||
<dimen name="new_tablet_browser_toolbar_menu_item_padding">19dp</dimen>
|
||||
<dimen name="forward_default_offset">-13dip</dimen>
|
||||
|
||||
<!-- Dimensions used by Favicons and FaviconView -->
|
||||
<dimen name="favicon_size_small">16dp</dimen>
|
||||
|
@ -7,5 +7,6 @@
|
||||
|
||||
<item type="id" name="guestNotification"/>
|
||||
<item type="id" name="original_height"/>
|
||||
<item type="id" name="menu_items"/>
|
||||
|
||||
</resources>
|
||||
|
@ -5,4 +5,6 @@
|
||||
|
||||
<resources>
|
||||
<item type="layout" name="tabs_layout_item_view">@layout/tabs_item_row</item>
|
||||
<item type="layout" name="new_tablet_browser_toolbar">@null</item>
|
||||
<item type="layout" name="new_tablet_tab_strip">@null</item>
|
||||
</resources>
|
||||
|
@ -93,7 +93,6 @@
|
||||
<item name="geckoMenuListViewStyle">@style/Widget.GeckoMenuListView</item>
|
||||
<item name="homeListViewStyle">@style/Widget.HomeListView</item>
|
||||
<item name="menuItemActionBarStyle">@style/Widget.MenuItemActionBar</item>
|
||||
<item name="menuItemActionBarStyleNewTablet">@style/Widget.MenuItemActionBar.NewTablet</item>
|
||||
<item name="menuItemActionModeStyle">@style/GeckoActionBar.Button</item>
|
||||
<item name="menuItemShareActionButtonStyle">@style/Widget.MenuItemSecondaryActionBar</item>
|
||||
<item name="panelGridViewStyle">@style/Widget.PanelGridView</item>
|
||||
|
@ -69,7 +69,7 @@ public class TabStripItemView extends ThemedLinearLayout
|
||||
tabPaint.setStrokeWidth(0.0f);
|
||||
tabPaint.setXfermode(new PorterDuffXfermode(Mode.DST_IN));
|
||||
|
||||
faviconSize = getResources().getDimensionPixelSize(R.dimen.tab_strip_favicon_size);
|
||||
faviconSize = getResources().getDimensionPixelSize(R.dimen.new_tablet_tab_strip_favicon_size);
|
||||
|
||||
LayoutInflater.from(context).inflate(R.layout.tab_strip_item_view, this);
|
||||
setOnClickListener(new View.OnClickListener() {
|
||||
|
@ -81,6 +81,12 @@ else
|
||||
MOZ_ANDROID_SEARCH_ACTIVITY=
|
||||
fi
|
||||
|
||||
# Enable the new tablet UI in pre-release builds
|
||||
# if the max Android sdk is undefined or at least 11.
|
||||
if test ! "$RELEASE_BUILD"; then
|
||||
MOZ_ANDROID_NEW_TABLET_UI=1
|
||||
fi
|
||||
|
||||
# Enable the share handler in pre-release builds.
|
||||
if test ! "$RELEASE_BUILD"; then
|
||||
MOZ_ANDROID_SHARE_OVERLAY=1
|
||||
|