Commit Graph
23 Commits
Author SHA1 Message Date
Jim Chen 6cb1d852a2 Bug 1396951 - 1. Add and use HapticFeedbackDelegate; r=snorp
Instead of using `getLayerView()` to perform haptic feedback, this patch
adds a `HapticFeedbackDelegate`, which `GeckoApplication` implements to
call `performHapticFeedback()` on the active view. Also, use
HapticFeedbackDelegate elsewhere in the Fennec codebase where we want to
perform haptic feedback.

MozReview-Commit-ID: GAArA6yJFNF
2017-09-22 14:35:22 -04:00
Sebastian Hengst 8b34bd4818 Backed out changeset 5e5ce5633017 (bug 1396951) for frequently failing robocop's testSettingsPages. r=backout a=backout
MozReview-Commit-ID: AGZMQKL3eft
2017-09-22 11:49:14 +02:00
Jim Chen b7adf526fc Bug 1396951 - 1. Add and use HapticFeedbackDelegate; r=snorp
Instead of using `getLayerView()` to perform haptic feedback, this patch
adds a `HapticFeedbackDelegate`, which `GeckoApplication` implements to
call `performHapticFeedback()` on the active view. Also, use
HapticFeedbackDelegate elsewhere in the Fennec codebase where we want to
perform haptic feedback.

MozReview-Commit-ID: GAArA6yJFNF
2017-09-21 17:36:02 -04:00
Julian_Chu bb01530657 Bug 1391579 Part 2: Add MenuItemIcon r=jwu,sebastian
GeckoMenu always create view from MenuItemDefault. Now lets adding a
new type for MenuItem which will display a Drawable in right side.

MozReview-Commit-ID: F7zVDze0RaP
2017-08-24 01:15:22 -07:00
Julian_Chu acfd820112 Bug 1391579 Part 1: add attribute itemType to GeckoMenuItem r=jwu,sebastian
MozReview-Commit-ID: CelYcXveCvO
2017-08-24 01:15:04 -07:00
Julian_Chu af43021818 Bug 1353019: fix icon creation issue in GeckoMenuItem r=sebastian
If change icon via resource id, we should create mIcon as well. And
method `getIcon` should return the drawable which be used currently, but
not generating a new drawable via resource id.

Without this patch, we cannot change icon of a GeckoMenuItem until we
set the icon back. ie.

    Drawable icon = menuItem.getIcon();
    icon.setLevel(42); // does not work, cause the icon is new instance.

MozReview-Commit-ID: KxW66OgI9po
2017-04-19 15:39:14 +08:00
maliu b55e3e13ce Bug 1323763 - Revert setAutomirrored solution and provide drawable in ldrtl folder, r=ahunt
MozReview-Commit-ID: JwHTNbQ1HcN
2016-12-16 18:21:58 +08:00
maliu eb3d60e9dd Bug 1319302 - RTL support for Firefox for Android, r=sebastian
MozReview-Commit-ID: bKzW07YBDy
2016-11-11 16:10:21 +08:00
Andrzej Hunt a63bcaeb29 Bug 1312114 - Post: centralise AppCompatDrawableManager calls to allow easy replacement r=sebastian
We'll want to switch to AppCompatResources as soon as it's available (i.e. support library 24.2).
Keeping this call in one central location should make that upgrade slightly easier. (Especially
since there is a good chance we will expand VectorDrawable usage to other parts of the app
before we get round to upgrading the support library.)

MozReview-Commit-ID: CvnLzE0mbwz
2016-11-03 11:45:42 +01:00
Andrzej Hunt a71ff36c1d Bug 1312114 - Add VectorDrawable support to GeckoMenu r=sebastian
MozReview-Commit-ID: FDCerhozC1S
2016-10-21 14:43:06 -07:00
Sebastian Hengst faa4e03c25 Bug 1304829 - rename RELEASE_BUILD to RELEASE_OR_BETA: main part. r=ted,Mossop
MozReview-Commit-ID: 1lCt0xTMV5O
2016-10-08 11:14:49 +02:00
Tushar Saini (:shatur) 75462f42df Bug 1261041 - Remove feature11Plus-feature15Plus flags. r=sebastian
MozReview-Commit-ID: J4uXtUrjuKr
2016-09-22 21:20:23 +05:30
Andrzej Hunt 61b4b27ff7 Bug 1293790 - Pre: extract CardView corner workaround into FilledCardView r=sebastian
We'll need this workaround for all the other CardView's we use.

MozReview-Commit-ID: 1B96Y2ZNKrY
2016-08-23 13:35:46 -07:00
Andrzej Hunt 1cae7e1d0f Bug 1271428 - Use CardView for main menu r=sebastian
MozReview-Commit-ID: BCZ3tmgqY0z
2016-05-09 15:18:07 -07:00
Andrzej Hunt 18b7d82f7d Bug 1269774 - Show browser menu over the menu button r=sebastian
Note: this commit alone results in the menu looking slightly odd
due to different top and right paddings. These are fixed in the
next commit.

MozReview-Commit-ID: AWzYU067K0W
2016-05-10 20:25:12 -07:00
Andrzej Hunt 22aa4ee214 Bug 1269774 - Fix padding for context menu icons r=sebastian
The icons in the first row require more padding. In the second
row the share icons should have more padding, but only on phones,
and all other icons should remain the same size. (On tablets
the share icon can be shown beside the bookmark star, hence
we use an inset drawable to add padding on phones, and then
provide an alternative 0-inset on tablets to avoid any changes
there.)

MozReview-Commit-ID: 54NzYtUpzuV
2016-05-10 20:25:02 -07:00
Andrzej Hunt 6e1310e482 Bug 1265433 - Move bookmarks star into top bar of menu r=sebastian
We do this by showing history items in the "share" menu item, and
removing the existing "quickshare" item that showed history items.

We also need to shuffle our icon sizes around: our xhdpi icon size matches
the hdpi icon sizes of the other icons in the top bar (modulo padding, which
we need to add as part of this commit), similarly our xxhdpi icon is shifted to
xhdpi. We don't supply an xxhdpi icon at all for any of the icons in the top bar
of the menu, hence that size is removed (and reused for the xhdpi icon, see above).

MozReview-Commit-ID: 7fabPQ5Tyst
2016-04-27 19:29:54 +02:00
Andrzej Hunt 6a2a867eae Bug 1265433 - Pre: remove unnecessary v11 checks r=me
MozReview-Commit-ID: LHg1QcxpwIF
2016-04-27 12:13:52 +02:00
Jorick Caberio 386ee165ef Bug 1261040 - Remove code code guarded by AppConstants.Versions.preICS. r=sebastian
MozReview-Commit-ID: Jmwl6sfEdx0
2016-04-07 17:17:21 +08:00
Michael Comella acc0113162 Bug 1258789 - Add div* token for WhitespaceAround. r=grisha
Fix some cast issues while I was at it.

MozReview-Commit-ID: 53ANWpnIGwk
2016-04-13 11:15:00 -07:00
Jan Henning b7ca055f66 Bug 1229967 - Handle onKeyDown() for the menu key in GeckoMenu. r=sebastian
This restores the functionality to close the menu by pressing the hardware menu key.

MozReview-Commit-ID: EKCeALPvFoB
2016-04-11 12:42:21 +02:00
Michael Comella fb562480f3 Bug 1258794 - Add trailing whitespace checkstyle check & fix issues. r=nalexander
MozReview-Commit-ID: IUslNabcTHO
2016-04-06 10:08:46 -07:00
Nick Alexander c682759005 Bug 1107811 - Part 1: Move Java code. r=mfinkle
#!/bin/bash
set -x
pushd mobile/android/base
# Can't be present in glob below.
rm -rf java/org/mozilla/gecko
for i in */ ; do
# But is necessary to copy into.
mkdir -p java/org/mozilla/gecko
hg mv $i java/org/mozilla/gecko ;
done
hg mv *.java java/org/mozilla/gecko
# Move back stuff we didn't want to move.
hg mv java/org/mozilla/gecko/crashreporter crashreporter
hg mv java/org/mozilla/gecko/docs docs
hg mv java/org/mozilla/gecko/locales locales
hg mv java/org/mozilla/gecko/resources resources
popd
2015-12-04 11:51:34 -08:00