Commit Graph
11 Commits
Author SHA1 Message Date
Andrzej Hunt e3c23ed365 Bug 1312114 - Post: cleanup imports r=ahunt
MozReview-Commit-ID: 7KaG5fUN4XQ
2016-10-21 14:49:27 -07:00
Andrzej Hunt b87a46c199 Bug 1312114 - Pre: Move getDrawable() from (geckoview) BitmapUtils into (fennec) MenuBitmapUtils to allow support library access r=nalexander
In order to use VectorDrawable's in this code we need to use AppCompatDrawableManager, which
is in the v7 appcompat support library. GeckoView cannot access that library, hence
we should move getDrawable() into the main Fennec jar in order to let us use
VectorDrawable's.

Similarly we need to move DrawableUtil for the same reasons.

(This commit only takes care of moving the code, the following code adds VectorDrawable support.)

MozReview-Commit-ID: CE2yTMLgBlJ
2016-10-21 15:51:38 -07:00
Jim Chen 5f31753209 Bug 1258470 - 3. Small optimizations in ThumbnailHelper; r=nalexander
This patch includes a small memory optimization of using ArrayList and
`volatile int` for storing the pending thumbnails list and pending
width, instead of using LinkedList and AtomicInteger, respectively.

The patch also fixes a possible race condition due to calling
processNextThumbnail outside of a lock. Now it must be called inside a
lock and its name is changed to reflect that.
2016-09-14 12:43:36 -04:00
Jim Chen 5063b8a9c4 Bug 1258470 - 2. Move thumbnail code out of BitmapUtils; r=nalexander
Move the "thumbnail:" handler out of BitmapUtils and into
ThumbnailHelper and PromptListItem.

The patch adds two overloads of the getAndProcessThumbnailFor method in
ThumbnailHelper, which handle the tasks of getting a thumbnail for a
specific tab and calling a given BitmapLoader.

Because only PromptListItem makes use of the "thumbnail:" convention,
the actual handling of "thumbnail:" is moved to PromptListItem, which
calls ThumbnailHelper to get the thumbnail.
2016-09-14 12:43:36 -04:00
Jim Chen 7db9a1b7e6 Bug 1292323 - Update WrapForJNI usages; r=snorp
Replace old flags in WrapForJNI usages with new flags. The calledFrom
and dispatchTo flags are set based on whether the method is native or
non-native, and how the method is used.

Also fix testEventDipatcher to respect NativeJSObject's calledFrom =
"gekco" flag, by moving a test to Gecko thread.
2016-08-12 23:15:52 -04:00
Jim Chen ff426cafa9 Bug 1286663 - Add request thumbnail native method to ThumbnailHelper; r=snorp
Add and use a request thumbnail native method call in ThumbnailHelper,
instead of using the THUMBNAIL event in GeckoEvent.
2016-07-21 13:49:04 -04:00
Carsten "Tomcat" Book b366a410a1 Backed out changeset 142caeafd119 (bug 1286663) 2016-07-21 08:18:23 +02:00
Jim Chen e58d307fbe Bug 1286663 - Add request thumbnail native method to ThumbnailHelper; r=snorp
Add and use a request thumbnail native method call in ThumbnailHelper,
instead of using the THUMBNAIL event in GeckoEvent.
2016-07-21 00:41:13 -04:00
Dylan Roeh 04f244cfae Bug 1257454 - Remove shouldUpdateThumbnail() entirely, always call processThumbnail(). r=snorp 2016-06-24 09:25:29 -05:00
Dylan Roeh e06cc25b16 Bug 1257454: Capture thumbnails for tabs even if tab overview is not currently shown. r=snorp 2016-06-17 16:00:45 +01: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