Commit Graph

607 Commits

Author SHA1 Message Date
James Willcox
751e8882c2 Bug 1182665 - Use a direct JNI call to determine screen size in nsScreenManagerAndroid r=jchen 2015-09-28 09:36:56 -05:00
Fabrice Desré
227145901a Bug 1204557 - Stop using base64 for native app icons in the application registry r=jchen 2015-09-24 11:53:05 -07:00
Mark Finkle
e3ddd7eb79 Bug 1078432 - Use Android print service to enable cloud printing r=sebastian 2015-08-31 17:54:23 -04:00
Kartikaya Gupta
5740126bd6 Bug 1196914 - Don't scroll to focused input unless the IME went away and came back. r=rbarker 2015-08-21 08:52:11 -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
Jim Chen
dfcf5a84c5 Bug 1192077 - Convert AndroidBridge JNIEnv calls; r=esawin 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
Jim Chen
bb1366b29c Bug 1189995 - Move GeckoAppShell.runGecko to GeckoThread; r=esawin
GeckoAppShell.runGecko really should be in GeckoThread because
GeckoThread already takes care of most of the preparation when running
Gecko. This patch merges runGecko into GeckoThread.run, but split the
argument-building code into its own method.
2015-08-13 00:53:39 -04:00
Jim Chen
cea34e4151 Bug 1191083 - Rename and expand GeckoThread.LaunchState; r=snorp
GeckoThread.LaunchState now covers the entire GeckoThread lifetime and
not just launch, so it's renamed to GeckoThread.State. More utility
methods are added to check for the current state.
2015-08-13 00:53:38 -04:00
Mark Capella
7800d0949d Bug 1191872 - Move annotations to org.mozilla.gecko.annotation package, r=jchen 2015-08-10 19:19:51 -04:00
Mark Capella
68e521a7af Bug 1191161 - p3 - Rename / Shorten WrapElementForJNI to WrapForJNI, r=jchen 2015-08-07 02:09:08 -04:00
Mark Capella
de4cb4a481 Bug 1191161 - p2 - Remove OptionalGeneratedParameter, which no longer has any meaning, r=jchen 2015-08-06 01:55:29 -04:00
Jim Chen
e60222057c Bug 1186467 - Make NativeJSContainer and NativeJSObject extend JNIObject; r=snorp
JNIObject is the base class for any class that wish to use per-instance
native methods. It encapsulates the long native pointer that used to be
in NativeJSContainer.
2015-08-04 17:47:28 -04:00
Michael Comella
e2723b95a2 Bug 1175532 - Only add CATEGORY_BROWSABLE to intent & android-app uris. r=margaret
This patch is originally from bug 1182328 and r+'d there.
2015-07-10 16:42:00 -07:00
Michael Comella
51997ff7c0 Bug 1175532 - Use Intent.parseUri for intent:// & android-app://. r=margaret
We now specify no flags to Intent.parseUri so it can accept and parse arbitrary
URIs.

This patch is originally from bug 1182328 and r+'d there.
2015-07-10 16:40:00 -07: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
Michael Comella
752619d94b Bug 1173200 - Open file uris w/ mimetype, all others without. r=wesj
Using my test page (https://people.mozilla.org/~mcomella/test/uri.html), I have
confirmed that the following schemes still work:
  * intent
  * android-app
  * custom schemes registered w/ Android (i.e. "mcomella")
  * tel
  * mailto

Additionally, I downloaded a PDF and successfully opened it via both the
notifications tray and about:downloads.

This gives me confidence that all links should work.
2015-07-13 16:30:42 -07:00
Michael Comella
fb554119ca Bug 1182328 - Backed out changeset 2e02ac7f87ab. r=me
Did not mean to land this WIP patch.
2015-07-13 17:14:41 -07:00
Michael Comella
7278ba7f6f Bug 1182328 - Only add Browsable to apps with schemes that are not file. r=margaret 2015-07-09 17:28:37 -07:00
Robert O'Callahan
a33364b916 Bug 1143575. Android's screenshotting code should invalidate the LayerManagerComposite to ensure composition will actually happen. r=nical
There is some ambiguity about whether ScheduleComposite will necessarily
trigger a composite all the way to nsWindow::DrawWindowUnderlay. Android
robocop tests assume it will, because they rely on DrawWindowOverlay
being called so they can take a screenshot and make progress,
but this is a very fragile assumption. They also rely on the entire
window being painted, which is also a fragile assumption.

This patch improves the situation by explicitly invalidating the current
window area when Android Java code needs to trigger a composite. This avoids
regressions from future patches in this series which make composition bail
out when there is nothing invalid.

The resulting setup is still a bit fragile for my taste but I'm not sure
what the ideal solution would be.
2015-06-12 03:20:04 +12:00
Michael Comella
f248c99a9d Bug 1168662 - Return AppConstants.ANDROID_PACKAGE_NAME w/ EXTRA_APPLICATION_ID. r=margaret
This is more appropriate than our internal org.mozilla.gecko package name as it
provides the distinction across channels and has more public facing names than
gecko.
2015-06-17 10:12:30 -07:00
Sebastian Kaspari
a90b240c63 Bug 1176018 - Do not set CATEGORY_BROWSABLE for Intents with file URI scheme. r=margaret 2015-06-29 18:38:40 +02:00
Richard Newman
dc47ce50ac Bug 1031569 - Don't query for non-exported activities, don't crash if we fail to launch one. r=mfinkle
Tested youtube.com, send tab, sharing menu.
2015-06-15 18:56:06 -07:00
Michael Comella
1122dffe5a Bug 1168662 - Add EXTRA_APPLICATION_ID to all outgoing Intents. r=margaret 2015-06-12 16:30:20 -07:00
Michael Comella
fd2c250814 Bug 1168662 - Modify all outgoing Intents with CATEGORY_BROWSABLE. r=margaret 2015-06-12 16:26:24 -07:00
Michael Comella
ed3729097e Bug 1170884 - Replace "new Integer" with "Integer.valueOf". r=nalexander 2015-06-11 12:25:27 -07:00
Michael Comella
73c39b4789 Bug 1164114 - Open Intent URIs without a specific package set. r?margaret
The Android Activity chooser dialog will appear.
2015-06-08 16:17:35 -07:00
Michael Comella
cc27e94e30 Bug 1168998 - Filter intent:// URIs. r?margaret 2015-06-08 13:56:17 -07:00
Youngsun Suh
9649e7d113 Bug 1170852 - Remove unused method, GeckoAppShell.decodeBase64 r=mcomella 2015-06-06 20:55:00 -07:00
Michael Comella
15eccb9974 Bug 851693 - Open Activity via Intent URI if it is installed. r=margaret 2015-05-07 16:32:37 -07:00
Nathan Toone
55b9d2c2a4 Bug 1161195 - Part 2: Rename variables. r=nalexander
Rename variables to be consistent with the name used in confvars.sh.
2015-05-05 20:11:15 -06: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
9a521edcaa Bug 1150693 - Avoid possible race condition when sending pending Gecko events; r=snorp 2015-04-22 11:30:13 -04:00
Jim Chen
dcb23a62f6 Bug 1152308 - Remove obsolete methods for exiting; r=snorp 2015-04-17 12:22:47 -04:00
Jim Chen
fb406b9fa1 Bug 1154952 - Don't wait for sync event when Gecko is shutting down; r=snorp 2015-04-17 12:22:47 -04:00
Jim Chen
ca630fc55f Bug 1072529 - Only create GeckoEditable once; r=esawin 2015-04-15 15:21:32 -04:00
Randall Barker
c2f98c668e Bug 1148149 - Support Android Presentation API. r=snorp, r=jgilbert 2015-04-10 22:14:00 -04:00
Ryan VanderMeulen
3ebe8fe436 Backed out changeset 9271d92ee0e2 (bug 1148149) for robocop crashes. 2015-04-10 14:52:50 -04:00
Randall Barker
842481bc9c Bug 1148149 - Support Android Presentation API. r=snorp, r=jgilbert 2015-04-08 16:00:00 -04:00
Michael Comella
585993bb90 Bug 1153193 - Add EXTRA_DEVICES_ONLY flag to share intents. r=rnewman
Before we only added this flag to the share intent used by the browser toolbar
menu.

Practically, this has the effect of having "Add to <current channel>" opening
the share overlay with *only* the device list wherever getShareIntent() is
used. Ideally, this method is used anywhere we use ACTION_SEND.

I've noticed this change makes both sharing from the long-press context menu
and about:reader to display *only* the device list.
2015-04-10 08:12:51 -07:00
Michael Comella
f99ab424e1 Bug 1106935 - Remove references to old tablet sidebar. r=mhaigh 2015-04-02 10:45:31 -07:00
Vladimir Vukicevic
d623ee04d0 Bug 1144674; Implement HAL support for ROTATION_VECTOR and GAME_ROTATION_VECTOR sensors; r=snorp 2015-04-01 16:02:20 -04:00
James Willcox
190f508bbe Bug 1118216 - Stop recycling Message instances, as it's unnecessary r=rnewman 2015-02-04 09:19:53 -06:00
James Kitchener
f3e2ed9bfd Bug 1100184 - Flatten netwerk/base/{public,src}/ directories. r=mcmanus, r=poiru 2015-01-20 03:58:00 -05:00
Richard Newman
d3135a3946 Bug 1077590 - Part 2: fix a bunch of imports. r=trivial 2015-01-11 20:45:44 -08:00
Richard Newman
62fa7b6eee Bug 1077590 - Part 1: make all per-profile DB access go through a profile. r=wesj
* * *
Bug 1077590 - Review comments.
2015-01-11 20:45:09 -08:00
Surabhi Anand
148224cfd7 Bug 1116633 - Use correct BufferedReader pattern in GeckoAppShell. r=rnewman 2015-01-12 13:22:54 -08:00
Jim Chen
60b2a7d4b1 Bug 1116589 - Use templated JNI classes in generated bindings; r=snorp 2015-01-09 19:33:57 -05:00
Wes Kocher
635e154f17 Merge m-c to fx-team a=merge 2014-12-29 17:35:54 -08:00