Commit Graph

264 Commits

Author SHA1 Message Date
James Willcox
c48baf9170 Bug 1182665 - Use a direct JNI call to determine screen size in nsScreenManagerAndroid r=jchen 2015-09-11 09:09:18 -05:00
Jim Chen
bfe908928a Bug 1195496 - Implement speculative connection method in GeckoThread; r=snorp
One thing we do in the Fennec CLH is to make a speculative connection
based on the URI that's passed in. However, by the time the CLH runs,
we're far along into startup, and the advantage of a speculative
connection is reduced. This patch implements making speculative
connection as a method in GeckoThread, so that Fennec can make a
speculative connection without relying on the Fennec CLH.
2015-08-19 18:14:47 -04:00
Jim Chen
eaad07e686 Bug 1195496 - Add PROFILE_READY Gecko state; r=snorp
Many Gecko operations depend on the profile being available. This
patch adds a PROFILE_READY Gecko state so that we can queue calls
until profile is loaded.
2015-08-19 18:14:47 -04:00
William Chen
8b4785e7f6 Bug 1131470 - Part 2: Update screen configuration HAL to report orientation angle. r=snorp,mwu 2015-08-18 14:55:15 -07:00
Kartikaya Gupta
f5ed3a019f Bug 1180295 - Implement seamless snapping to the stable state. r=rbarker 2015-08-18 14:27:20 -04:00
Kartikaya Gupta
ad9c5fec28 Bug 1180295 - Store the viewport width and height as integers instead of floats in ImmutableViewportMetrics. r=rbarker 2015-08-18 14:27:19 -04:00
Kartikaya Gupta
f8cac5f8c4 Bug 1180295 - Rip out the Fennec code to set the screen render offset. r=rbarker 2015-08-18 14:27:18 -04:00
Jim Chen
adaa3af91b Bug 1192082 - Iniialize/deinitialize JNI in nsAppShell; r=snorp
First we need to set the Gecko thread JNIEnv* in nsAndroidStartup, but
after that we can initialize and deinitialize the rest of JNI, including
AndroidBridge, in GeckoAppShell. This makes nsAppShell control the
AndroidBridge lifetime. Over time, parts of the AndroidBridge
functionality will be migrated to nsAppShell.
2015-08-13 00:53:40 -04:00
Jim Chen
e030b65317 Bug 1192082 - Expose AndroidBridge arguments through GeckoThread; r=snorp
AndroidBridge needed some arguments during its initialization. We'll
provide those arguments in GeckoThread, which AndroidBridge will access.
2015-08-13 00:53:39 -04:00
Jim Chen
66f815f56b Bug 1192082 - Expose GeckoThread states to C++; r=me 2015-08-13 00:53:39 -04:00
Jim Chen
1927d60093 Bug 1192079 - Update generated code; r=me 2015-08-13 00:53:39 -04:00
Jim Chen
3619ab253f Bug 1189995 - Move GeckoAppShell.pumpMessageLoop to GeckoThread; r=esawin
This method is used by Gecko to pump the Android message loop, and it's
also more suited to GeckoThread than GeckoAppShell.
2015-08-13 00:53:39 -04:00
Mark Capella
06cb43cef6 Bug 1191161 - p3 - Surprise update-generated-wrappers changes, r=jchen 2015-08-07 02:09:08 -04:00
Jim Chen
a25a7e22f2 Bug 1186467 - Update generated JNI bindings; r=me 2015-08-04 17:47:28 -04:00
Sebastian Kaspari
d90df4c4c0 Bug 1187260 - Simplify RestrictedProfiles class. r=ally
This patch transforms RestrictedProfiles to delegate isAllowed() and
canLoadUrl() calls to an object implementing the RestrictionConfiguration
interface.

DefaultConfiguration, GuestProfileConfiguration and
RestrictedProfileConfiguration are implementing RestrictionConfiguration
and will take care of handling the restrictions for the different types
of profiles.
2015-07-24 19:47:31 +02:00
Jim Chen
3fa6728766 Bug 1186517 - Adjust white spacing in generated files; r=me 2015-07-29 15:11:15 -04:00
Jim Chen
cb532a3a26 Bug 1182641 - Update autogenerated code; r=me 2015-07-29 15:11:15 -04:00
Qiang Lu
c95321bc51 Bug 1178069 - Check devices capability before enable use of vp8 hardware acceleration using android.media.MediaCodecList and android.media.MediaCodecInfo r=jrmuizel 2015-07-24 12:45:55 -07:00
Jim Chen
6de010385b Bug 1178850 - Update generated files; r=me 2015-07-10 23:41:36 -04:00
Wes Kocher
0f9c730ffe Backed out 5 changesets (bug 1178850) for android build bustage CLOSED TREE
Backed out changeset 79085d3894e8 (bug 1178850)
Backed out changeset c02b603104ea (bug 1178850)
Backed out changeset d6dab7810669 (bug 1178850)
Backed out changeset 8ee5809f349b (bug 1178850)
Backed out changeset 821b22ce79e1 (bug 1178850)
2015-07-10 14:17:53 -07:00
Jim Chen
1ec9bcda84 Bug 1178850 - Update generated files; r=me 2015-07-10 16:52:52 -04:00
Jim Chen
13969fb4ad Bug 1157908 - Optimize pumpMessageLoop call to use less JNI; r=snorp 2015-04-27 20:52:52 -04:00
Makoto Kato
cae2fd33d1 Bug 1149861 - Implement getMaxTouchPoints for Android. r=snorp 2015-04-24 18:43:31 +09:00
Jim Chen
dcb23a62f6 Bug 1152308 - Remove obsolete methods for exiting; r=snorp 2015-04-17 12:22:47 -04:00
dominique vincent
40e211f525 Bug 663803 - Zoomed view implementation using render document r=mcomella,snorp 2015-01-21 05:59:23 +01:00
Jim Chen
60b2a7d4b1 Bug 1116589 - Use templated JNI classes in generated bindings; r=snorp 2015-01-09 19:33:57 -05:00
James Willcox
26752de067 Bug 1086693 - Part 4: Add a lazy initialization mode to CodeGenerator, and use it for SDK bindings r=ckitching 2014-11-13 12:47:24 -06:00
Carsten "Tomcat" Book
3396e738cf Merge mozilla-central to mozilla-inbound 2014-10-21 15:55:25 +02:00
James Willcox
c3bcfc2143 Bug 1014614 - Fix JNI wrapper for registering SurfaceTexture listener callbacks r=blassey 2014-10-21 08:53:01 -05:00
Wes Johnston
291c164cc5 Bug 1070086 - Move download integration code to its own class. r=bnicholson 2014-10-20 12:24:49 -07:00
Chris Kitching
3cdc627b31 Bug 1067056: Remove JavaDomKeyLocation and GeneratorOptions annotation. r=jchen 2014-09-13 17:42:03 -07:00
Wes Johnston
6ba11ae36c Bug 1058150 - Use restricted profiles for guest mode. r=mfinkle 2014-09-09 15:08:37 -07:00
Vicamo Yang
8f14cfb13c Bug 878533 - 3/3: fix Fennec build bustage. r=blassey 2014-08-28 11:00:03 +08:00
Kartikaya Gupta
9bf8f64ac0 Bug 1049887 - Ensure we properly restore the scissor rect state in the GL context after running Java code. r=snorp
The C++ GLContext wrapper doesn't know about the changes to the GL state that the
Java code does, so Java must be careful to restore the GL state to the way
it was. The ScopedGLState RAII code doesn't quite accomplish this because of caching
in the C++ GLContext wrapper, so we have to do this directly from Java code.
2014-08-20 10:38:51 -04:00
Mark Finkle
a594f7839d Bug 1042715 - Add support for Restricted Profiles r=rnewman 2014-08-20 09:10:06 -04:00
Kartikaya Gupta
29230db1be Bug 1046344 - Unbitrot and rearrange the old APZ glue code in Fennec. r=snorp 2014-08-08 17:42:20 -04:00
Jim Chen
f29af5e64e Bug 886627 - Add AndroidBridge directory API; r=rbarker 2014-07-24 16:42:50 -04:00
Myk Melez
a20d143415 Bug 778279 - support multiple apps per origin in Android web runtime; r=mfinkle 2014-07-22 12:52:45 -07:00
Kartikaya Gupta
e4121fd891 Bug 1021085 - Fix up the Fennec code path as well. r=Cwiiis 2014-06-23 08:42:53 -04:00
Brad Lassey
9e68fd2c17 bug 1016747 - add android protocol handler to proxy input streams to Gecko r=snorp 2014-06-04 15:28:04 -04:00
Wes Johnston
c19dab1b79 Bug 996129 - Don't thumbnail sites with cache control headers set. r=kats 2014-05-05 22:33:29 -07:00
Ted Mielczarek
8115881654 bug 852935 - Add Android gamepad backend. r=snorp, rs=smaug 2014-04-22 10:53:48 -04:00
Chris Peterson
62602f7c8a Bug 990764 - Replace MOZ_ASSUME_UNREACHABLE with MOZ_CRASH in widget/android. r=blassey 2014-04-27 18:56:46 -07:00
Wes Kocher
fc6c88a0cd Backed out 9 changesets (bug 1014614) for Android mochitest bustage on a CLOSED TREE
Backed out changeset 40f99ba7f616 (bug 1014614)
Backed out changeset 8fbc3c85adfc (bug 1014614)
Backed out changeset 40dbd7c6ce65 (bug 1014614)
Backed out changeset f2b504bdd7c5 (bug 1014614)
Backed out changeset c878e29fbef9 (bug 1014614)
Backed out changeset 511dcc817f5d (bug 1014614)
Backed out changeset 2b72e71f1fdf (bug 1014614)
Backed out changeset 8b530a9a2f99 (bug 1014614)
Backed out changeset 7fa1b78de684 (bug 1014614)
2014-10-17 16:34:01 -07:00
James Willcox
c8af0d18f4 Bug 1014614 - Fix JNI wrapper for registering SurfaceTexture listener callbacks r=blassey 2014-10-17 10:35:11 -05:00
Jim Chen
1bcd51a8b8 Bug 989046 - a. Convert Gecko side messaging to use NativeJSContainer; r=blassey 2014-04-04 12:33:49 -04:00
Wes Johnston
c89afdba0a Bug 946344 - Remove GeckoEventResponder. r=mfinkle,blassey,kats 2014-02-11 09:16:00 -08:00
Jim Chen
cc60043f4a Bug 964813 - Make HandleUncaughtException JNI wrapper multithreaded; r=kats 2014-01-28 18:32:28 -06:00
Jim Chen
5e7c1ef7b1 Bug 958706 - Make generated JNI wrappers handle uncaught exceptions; r=blassey
This patch adds AndroidBridge::HandleUncaughtException calls to generated JNI wrappers. Also, the JNI annotation now accepts the noThrow flag to indicate that the JNI caller wishes to handle Exceptions manually.
2014-01-17 23:32:25 -06:00
Jim Chen
dc9f10714f Bug 958706 - Add ThrowException and HandleUncaughtException methods to AndroidBridge; r=blassey
ThrowException throws a new exception with the appropriate message, meant for native JNI methods that return to Java code (i.e. methods in AndroidJNI.cpp).

HandleUncaughtException will be called by the generated JNI stubs that C++ code uses. HandleUncaughtException calls the new GeckoAppShell.handleUncaughtException method, which behaves exactly like the normal uncaught exception handler (annotates the crash report and crashes). GeckoAppShell.handleUncaughtException has the noThrow annotation that will be seen by the generated code; as a result, its generated stub will not call HandleUncaughtException and result in a loop.
2014-01-17 23:32:24 -06:00