Commit Graph
185 Commits
Author SHA1 Message Date
Jim Chen ece29bfe87 Bug 1216666 - Update composition as part of replacing text or changing span; r=esawin
Currently, GeckoEditable periodically fires update composition events to
update the Gecko composition styling. To make the code more efficient
and more robust in dealing with content JS code, this patch merges these
events into events like replacing text, setting span, and removing span.
As a result, a setComposingText call now results in one replacing text
event instead of a replacing text event plus an update composition event.
2015-11-03 11:53:58 -05:00
Jim Chen 80b3e03ddf Bug 1216666 - Separate out Gecko selection from Java selection; r=esawin
Currently, the Gecko-side selection tries to mirror the Java-side
selection, but this is difficult because the Gecko selection has some
subtle but important behavior differences from the Java selection.
This patch separates out Gecko selection from Java selection so that
they're only loosely coupled. The two selections will periodically
synchronize through events and notifications, but at certain times they
may fall out-of-sync, for example when a composition is active. This
shouldn't affect functionality in a major way, and it's an acceptable
trade-off.
2015-11-03 11:53:57 -05:00
Jim Chen 8d4b7ebfac Bug 1199658 - Add test for text duplication when JS resets input value; r=esawin
Add a test to testInputConnection that reproduces this bug. Because this
bug involves JS running during editing, another input field is used on
the test page. Additional code was added to testInputConnection,
GeckoInputConnection, and GeckoViewComponent in order to reproduce the
bug in the new input field.
2015-10-27 14:22:05 -04:00
Carsten "Tomcat" Book 577ed639d4 Merge m-c to fx-team 2015-10-23 11:51:27 +02:00
Sebastian Kaspari dcdc508428 Bug 1215950 - GeckoInputConnection: Run re-focus workaround on the UI thread. r=jchen 2015-10-23 10:05:40 +02:00
Jim Chen b1217e02f6 Bug 1210585 - Add native calls for key events; r=esawin
This patch adds a native call to GeckoEditable that will handle key
events instead of using GeckoEvent.KEY_EVENT.
2015-10-22 17:45:46 -04:00
Sebastian Kaspari ff408c3f57 Bug 1211848 - GeckoInputConnection: Re-request focus if GeckoView is not active view for the input method. r=jchen
On (at least) Android 6.0 it can happen that GeckoView has focus but is not the active view for the input
method. As a consequence InputMethodManager will ignore the call to showSoftInput().
2015-10-13 13:57:43 +02:00
Jim Chen 89c212b5ad Bug 1209574 - Move InputConnectionHandler out of gfx package; r=esawin
InputConnectionHandler really doesn't belong in the gfx package, and
the code to call key event handlers really doesn't belong in LayerView.
This patch refactors things, so that InputConnectionHandler is renamed
to org.mozilla.gecko.InputConnectionListener, and the interface is now
used by GeckoView instead of by LayerView.
2015-10-08 15:25:49 -04:00
Carsten "Tomcat" Book f3ff86678f Backed out changeset 3c7265546800 (bug 1209574) for Android Perma Failures 2015-10-08 10:06:35 +02:00
Jim Chen 1abaacc48b Bug 1209574 - Move InputConnectionHandler out of gfx package; r=esawin
InputConnectionHandler really doesn't belong in the gfx package, and
the code to call key event handlers really doesn't belong in LayerView.
This patch refactors things, so that InputConnectionHandler is renamed
to org.mozilla.gecko.InputConnectionListener, and the interface is now
used by GeckoView instead of by LayerView.
2015-10-08 01:12:58 -04:00
Wes Kocher e26872cd09 Backed out 5 changesets (bug 1209574) for android tpn bustage
Backed out changeset fb1f06793a67 (bug 1209574)
Backed out changeset 5f0b32b1acc4 (bug 1209574)
Backed out changeset 657332ea4f59 (bug 1209574)
Backed out changeset 9d2c7ed9cd87 (bug 1209574)
Backed out changeset 8376124b6a0c (bug 1209574)
2015-10-07 09:04:39 -07:00
Jim Chen 9b364c9f49 Bug 1209574 - Move InputConnectionHandler out of gfx package; r=esawin
InputConnectionHandler really doesn't belong in the gfx package, and
the code to call key event handlers really doesn't belong in LayerView.
This patch refactors things, so that InputConnectionHandler is renamed
to org.mozilla.gecko.InputConnectionListener, and the interface is now
used by GeckoView instead of by LayerView.
2015-10-07 08:57:30 -04:00
Dylan Roeh 0936dade6e Bug 860305 - Catch possible RuntimeException in GeckoInputConnection.restartInput. r=snorp 2015-08-18 08:43:50 -05:00
Jim Chen b83da2ceb9 Bug 1112212 - Send key events in onKeyMultiple; r=cpeterson 2015-06-16 19:02:39 -04:00
Michael Comella 50beb21b0a Bug 1170884 - Use fully qualified android.R.*. r?nalexander 2015-06-02 18:21:38 -07:00
Jim Chen 03941b6645 Bug 1152123 - Handle commit/cancel composition events in GeckoEditable; r=esawin 2015-04-15 15:21:32 -04:00
Jim Chen 549a78e653 Bug 1149189 - Backout e75d824c730d "Force Gecko update on endBatchEdit for range updates"; r=esawin 2015-03-31 18:20:27 -04:00
Eugen Sawin cb6e71d41c Bug 1133802 - Force Gecko update on endBatchEdit for range updates. r=cpeterson 2015-02-24 00:22:07 +01:00
Kartikaya Gupta 50b263a3c8 Bug 1121430 - Back out 4 csets from bug 1112212 for breaking backspace on Android. r=backout 2015-01-15 10:52:05 -05:00
Jim Chen d0c9706778 Bug 1112212 - Send key events in onKeyMultiple; r=cpeterson 2015-01-10 12:41:58 -05:00
Jim Chen 4b1f160b46 Bug 1112212 - Implement key-events-only mode for Android; r=cpeterson 2015-01-10 12:41:58 -05:00
Manu Jain dec44d18c1 Bug 1092471 - Username capitalised when entering in bank logon screen; r=jchen 2014-12-04 02:33:00 +01:00
Chris Kitching 5d126e171c Bug 1081397: Finalise large numbers of fields. r=rnewman
* * *
Bug 1081397: Finalise large numbers of fields. r=rnewman
2014-10-11 00:17:01 +01:00
Chris Kitching 279f8c0cda Bug 1062112: Part 1: Fix generics in DebugGeckoInputConnection. r=nalexander 2014-09-03 23:44:49 -07:00
Jim Chen a0c4b5fdd3 Bug 1058136 - Send separate compose event for composing text; r=cpeterson 2014-09-04 14:38:17 -04:00
Jim Chen f12f4ca421 Bug 1058136 - Fix debug logging crash; r=cpeterson 2014-09-04 14:38:17 -04:00
Jim Chen 176a9b18eb Bug 1041082 - Don't perform double-checked locking in GeckoInputConnection; r=rnewman 2014-08-05 12:41:09 -04:00
Richard Newman 5042e5ec9c Bug 1042383 - Part 2: use optimizable build-time flags for SDK-dependent code. r=mfinkle 2014-07-30 08:19:35 -07:00
Richard Newman 074ed80355 Bug 975838 - Part 1: add methods to log or throw if called on the wrong thread, pepper GeckoMenu with thread affinities. r=wesj 2014-03-17 19:39:40 -07:00
Richard Newman 70e7e5c2ea Backed out changeset 1e8fa32e8abd (bug 975838) 2014-03-17 22:42:34 -07:00
Richard Newman bc894466fd Bug 975838 - Part 1: add methods to log or throw if called on the wrong thread, pepper GeckoMenu with thread affinities. r=wesj 2014-03-17 19:39:40 -07:00
Jim Chen 498410fce5 Bug 968409 - Run InputConnection tests on IC thread; r=cpeterson r=mcomella 2014-02-27 16:17:56 -05:00
Jacob Liebert 3fa6b03ab9 Bug 871884 - Change text input default in Android browser to capitalize first character in a sentence; r=jchen 2013-11-21 14:57:47 -05:00
Jim Chen 70cf2d11ff Bug 906506 - Properly commit onKeyMultiple() keys with unknown code. r=cpeterson 2013-08-22 09:58:00 -04:00
Jim Chen d7d9f32722 Bug 899233 - Don't restart IME when changing selection; r=cpeterson 2013-08-14 11:32:44 -04:00
Jim Chen 303b4cb46f Bug 899233 - Notify InputMethodManager of selection when not in extracted mode; r=cpeterson 2013-08-14 11:32:44 -04:00
Jim Chen 38f900c293 Bug 864040 - Send key events from the UI thread the right way; r=cpeterson 2013-06-26 17:28:21 -04:00
Jim Chen 57b6f91bf4 Bug 876739 - restart and show/hide IME for input types with native widgets; r=cpeterson 2013-06-10 10:13:31 -04:00
Jim Chen bf175f8944 Bug 876739 - Reset extracted text request in notifyIMEContext; r=cpeterson 2013-06-10 10:13:31 -04:00
Federico Paolinelli bb58986a88 Bug 876485 - Moved clipboard code from GeckoAppShell to a separate Clipboard class. Changed jni calls to new methods. r=cpeterson 2013-06-07 13:39:37 -07:00
Brad Lassey 4a30f2fe9c bug 867517 - Gecko-based WebView for Android, refactor patch r=mfinkle 2013-05-24 12:21:01 -04:00
Shane Tully a18aac9348 Bug 790775 - Sony Ericsson Xperia Play's "circle" and "cross" D-pad buttons generate unexpected keycodes. r=cpeterson 2013-05-22 14:07:29 -07:00
Jim Chen 0b05082bfa Bug 846660 - Use default values for primitive types and fix setSelection for Samsung keyboards. r=cpeterson 2013-05-13 17:25:12 -04:00
Jim Chen fd060e1bd7 Bug 864666 - Replace composing span when committing char as key. r=cpeterson 2013-04-29 16:48:26 -04:00
Jim Chen 11e4545d2a Bug 859452 - Send characters as keys when using HTC Touch Input. r=cpeterson 2013-04-18 12:39:09 -04:00
Jim Chen 4bd8dd948a Bug 857413 - Use only one copy of GeckoInputConnection.InputThreadUtils; r=cpeterson 2013-04-11 10:54:14 -04:00
Jim Chen 77d5485b3f Bug 844573 - Detect textarea; r=cpeterson 2013-04-01 18:52:39 -04:00
Jim Chen 2462bd0e5e Bug 856755 - Return SpannableString or String in extracted text; r=cpeterson 2013-04-02 11:24:40 -04:00
Jim Chen 0f05de471c Bug 842013 - Suppress key up events during key down event; r=cpeterson 2013-03-29 10:54:01 -04:00
Jim Chen 3ed2e861ad Bug 847823 - Clean up NotifyIME to use the Gecko NotificationToIME enum; r=cpeterson 2013-03-19 16:54:49 -04:00