Merge mozilla-central and fx-team

This commit is contained in:
Ed Morley 2014-10-03 15:15:58 +01:00
commit e5f4173add
56 changed files with 76 additions and 16 deletions

View File

@ -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,

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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"

View File

Before

Width:  |  Height:  |  Size: 305 B

After

Width:  |  Height:  |  Size: 305 B

View File

Before

Width:  |  Height:  |  Size: 259 B

After

Width:  |  Height:  |  Size: 259 B

View File

Before

Width:  |  Height:  |  Size: 393 B

After

Width:  |  Height:  |  Size: 393 B

View File

@ -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"/>

View File

@ -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"/>

View File

@ -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"/>

View File

@ -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"/>

View File

@ -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>

View File

@ -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"/>

View File

@ -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>

View File

@ -7,5 +7,6 @@
<item type="id" name="guestNotification"/>
<item type="id" name="original_height"/>
<item type="id" name="menu_items"/>
</resources>

View File

@ -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>

View File

@ -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>

View File

@ -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() {

View File

@ -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