Jim Chen
1c8752c084
Bug 1303806 - 3. Update sources to reflect new bindings; r=snorp r=nalexander
...
Update #includes to use new headers if necessary. Also remove a couple
of functions in AndroidBridge to clean up the code.
2016-09-20 17:42:08 -04:00
Jim Chen
bf2169c56b
Bug 1291375 - 5. Use Fennec bindings where needed; r=snorp
...
Switch include statements from GeckoView bindings to Fennec bindings
where needed.
2016-09-16 15:13:48 -04:00
Alastor Wu
a30ae2afcf
Bug 1290467 - part2 : request audio focus for any media instead of audible one. r=snorp
...
Previous design is only to request audio focus for audible media, but now we
also request focus for non-audible media.
It's simple that the app should own the focus when users start watching media.
MozReview-Commit-ID: 3eJP26h4kh7
2016-09-09 09:49:25 +08:00
Jim Chen
6a689b7ead
Bug 1296744 - Make cameraCallbackBridge use new native JNI bindings; r=snorp
...
Make the GeckoAppShell.cameraCallbackBridge callback use the new native
JNI bindings. Also refactor the relevant code in GeckoAppShell and
CameraStreamImpl.
2016-08-26 12:26:46 -04:00
Randall Barker
db31614cf1
Bug 1297850 - part 1, Remove dead code left behind after JPZ removal. r=jchen
2016-08-25 17:26:42 -07:00
Wes Kocher
0003442039
Backed out 2 changesets (bug 1297850) for robocop bustage a=backout CLOSED TREE
...
Backed out changeset e83c9eb279a9 (bug 1297850)
Backed out changeset 979694026137 (bug 1297850)
2016-08-25 11:29:35 -07:00
Randall Barker
8ff0253575
Bug 1297850 - part 1, Remove dead code left behind after JPZ removal. r=jchen
2016-08-25 08:14:52 -07:00
Jim Chen
a1b7da4a5e
Bug 1294479 - Remove ANativeWindow methods from AndroidBridge; r=snorp
...
The ANativeWindow methods in AndroidBridge are just wrappers around
ANativeWindow calls in the NDK. We should just use those calls instead
of going through the wrappers.
2016-08-19 17:17:24 -04:00
Jim Chen
785255eac9
Bug 1294479 - Remove presentation methods from nsWindow/AndroidBridge; r=snorp
...
Remove the presentation methods from nsWindow/AndroidBridge now that
they are not used. This also eliminates gGeckoViewWindow from nsWindow.
NS_PRESENTATION_WINDOW and NS_PRESENTATION_SURFACE constants are added
for GetNativeData/SetNativeData to provide replacements that support
multiple GeckoViews/nsWindows.
2016-08-19 17:17:24 -04:00
Jim Chen
0f6e2b3262
Bug 1294710 - Move UI thread methods out of GeckoAppShell; r=snorp
...
Move methods to run callbacks on UI thread out of GeckoAppShell and into
GeckoThread.
2016-08-18 18:04:11 -04:00
Randall Barker
7045fbd83c
Bug 1291373 - [geckoview] part 4, Remove GeckoEvent and AndroidGeckoEvent r=jchen
2016-08-16 14:33:43 -07:00
Randall Barker
91a74382de
Bug 1291373 - [geckoview] part 1, Remove JavaPanZoomController (JPZ) from mobile/android r=snorp
2016-08-16 14:33:43 -07:00
Wes Kocher
924bec4dbe
Merge inbound to central, a=merge
2016-08-15 14:20:38 -07:00
Makoto Kato
13c84dbf83
Bug 1293585 - Remove more unused members in AndroidBridge after bug 1255628. r=snorp
...
MozReview-Commit-ID: C8W4dnY2his
2016-08-09 17:18:02 +09: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
f681b8818c
Bug 1292323 - Move Java UI thread registration to mozglue; r=snorp
...
We need to register the Java UI thread in native code very early in the
startup process, before libxul registers its JNI entry points. So it
makes sense to register the Java UI thread in mozglue.
2016-08-12 23:15:52 -04:00
Carsten "Tomcat" Book
93f24e51f4
merge mozilla-inboudn to mozilla-central a=merge
2016-08-05 12:01:14 +02:00
Jim Chen
923069e07d
Bug 1288821 - Refactor Java notification interface; r=snorp
...
Refactor the notification-related methods in GeckoAppShell. In
particular, combine showPersistentAlertNotification into
showAlertNotification, and move code out of AndroidBridge.
2016-08-04 09:17:54 -04:00
Jim Chen
ccf0b0d33a
Bug 1288834 - Remove ZOOMEDVIEW event from GeckoEvent; r=snorp
...
Remove the now-obsolete ZOOMEDVIEW event from GeckoEvent, and the
associated code in nsAppShell and AndroidBridge.
2016-08-04 09:15:17 -04:00
Jim Chen
80c1b393bc
Bug 1288834 - Implement native request method in ZoomedView; r=snorp
...
Add a native method in ZoomedView to request zoomed view data. The
native method is implemented in the ThumbnailHelper class on the C++
side because it shares a lot of code with the thumbnailing code.
2016-08-04 09:15:17 -04:00
James Willcox
3f1dd216e3
Bug 1255628 - Replace and/or remove some graphics-related calls in AndroidBridge with NDK equivalents r=jchen
2016-08-04 09:23:34 -05:00
Makoto Kato
e0e9aad13e
Bug 1288616 - Part 2. Remove unused ANativeWindow_fromSurfaceTexture and android_SurfaceTexture_getNativeWindow. r=snorp
...
MozReview-Commit-ID: 40rPBLzoLPO
2016-07-22 14:40:42 +09:00
Makoto Kato
0124e82fa3
Bug 1288616 - Part 1. Remove unused AcquireNativeWindowFromSurfaceTexture / ReleaseNativeWindowForSurfaceTexture. r=snorp
...
MozReview-Commit-ID: 15SfycJX9Wn
2016-07-22 14:39:09 +09:00
Jim Chen
e8f534d407
Bug 1287946 - Update existing code to use mozilla::java; r=me
2016-07-21 13:49:04 -04:00
Jim Chen
71996611fb
Bug 1286663 - Remove THUMBNAIL event from GeckoEvent; r=snorp
...
Remove the now-obsolete THUMBNAIL event from GeckoEvent, as well as its
implementations in nsAppShell and AndroidBridge.
2016-07-21 13:49:04 -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
Jim Chen
9e607e9dd3
Bug 1286663 - Update existing code using ByteBuffer; r=me
2016-07-21 13:49:04 -04:00
Carsten "Tomcat" Book
be31f19100
Backed out changeset 7cd055ed9366 (bug 1286663) for android bustage on a CLOSED TREE
2016-07-21 08:18:59 +02:00
Carsten "Tomcat" Book
b366a410a1
Backed out changeset 142caeafd119 (bug 1286663)
2016-07-21 08:18:23 +02:00
Carsten "Tomcat" Book
58f5467519
Backed out changeset 684888aeee81 (bug 1287946)
2016-07-21 08:07:12 +02:00
Carsten "Tomcat" Book
8cc058c83a
Backed out changeset d8a07729a34c (bug 1286663)
2016-07-21 08:04:52 +02:00
Jim Chen
0ea27022be
Bug 1287946 - Update existing code to use mozilla::java; r=me
2016-07-21 00:42:26 -04:00
Jim Chen
d5a351d0e4
Bug 1286663 - Remove THUMBNAIL event from GeckoEvent; r=snorp
...
Remove the now-obsolete THUMBNAIL event from GeckoEvent, as well as its
implementations in nsAppShell and AndroidBridge.
2016-07-21 00:41:13 -04: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
Jim Chen
3bd23d057b
Bug 1286663 - Update existing code using ByteBuffer; r=me
2016-07-21 00:41:13 -04:00
Makoto Kato
7afb6f496e
Bug 1287015 - Part 2. Remove unused AndroidBridge()::LockWindow/UnlockWindow. r=snorp
...
MozReview-Commit-ID: u5CDwNqt1g
2016-07-15 11:04:04 +09:00
Eugen Sawin
2ea06898be
Bug 1278574 - [2.2] Instantiate MediaPrefs on Android during AndroidBridge construction. r=jya
2016-06-23 15:26:11 +02:00
SUN Haitao
b7f76abfcb
Bug 1264815 - Add a 'showPersistentAlertNotification' method to GeckoAppShell. r=kcambridge
2016-04-17 21:18:20 +08:00
Nicholas Nethercote
a41e57a9b1
Bug 1276824 (part 1) - Rename gfxContext::ForDrawTarget{,WithTransform}(). r=milan.
...
The new names Create{,PreservingTransform}OrNull() better communicate that
these functions (a) do object creation, and (b) are fallible.
2016-06-07 09:39:56 +10:00
Alastor Wu
540e60ec11
Bug 1240423 - part4 : update audio playing window checking in AndroidBridge. r=snorp
...
MozReview-Commit-ID: CJCnyUtSduN
2016-06-01 10:26:14 +08:00
Alastor Wu
b2543fcbfc
Bug 1257738 - part2 : modify logic of requesting audio focus in Android.
...
MozReview-Commit-ID: AG095CIgnA5
2016-06-01 10:21:58 +08:00
Kyle Huey
f3e34e67b3
Bug 1266595: Replace Chromium Task with Runnable. r=froydnj
2016-04-27 17:06:05 -07:00
Kyle Huey
a9cf047227
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -07:00
Alastor Wu
efe0f4d1e4
Bug 1249579 - part1 : request audio focus on Fennec. r=snorp.
...
MozReview-Commit-ID: 45qW0Wjmnad
2016-04-18 18:48:19 +08:00
Milan Sreckovic
dd0830c93c
Bug 1259513: Make gfxContext constructor private, use a utility function that can return nullptr. r=bas,lsalzman
...
MozReview-Commit-ID: rHhLEDZEQt
2016-04-12 15:18:11 -04:00
David Anderson
7b7cd394cc
Rename PCompositor to PCompositorBridge. (bug 1258479 part 2, r=mattwoodrow)
2016-03-22 14:08:38 -04:00
Jim Chen
65eb0dbf73
Bug 1246788 - Properly synchronize and manage UI thread tasks; r=rbarker
...
Add proper synchronization to the UI thread task queue so we don't run
into race conditions. Also use UniquePtr to manage the contained task,
to fix a previous memory leak.
2016-02-10 18:54:55 -05:00
Jim Chen
82870a9c22
Bug 1244875 - Update JNI usages; r=snorp
...
Update JNI usages to match the changes in JNI templates.
2016-02-09 17:27:28 -05:00
Kyle Huey
e95edb30a9
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Jim Chen
1f403e6400
Bug 1235475 - Crash at the exception source when an exception is in native code; r=snorp
...
When we have a Java exception in native code, the Java stack in the
exception will not be very useful because the top frame is the native
entry point. In this case, the native stack is more useful. However,
currently we don't get a good native stack in this situation because we
go through Java when handling the exception, and the native stack we get
will have a lot of unknown frames inside libdvm or libart. This patch
makes us stay in native code when handling an uncaught exception from
native code, so that we get a good native stack.
2015-12-30 18:36:41 -05:00