Commit Graph

86 Commits

Author SHA1 Message Date
Jim Chen
0516bbb465 Bug 1211704 - Let GeckoEditable call disposeNative; r=esawin
Right now we call disposeNative on GeckoEditable in the
nsWindow::Natives destructor. However, we may still have pending native
calls in the event queue at that point, and these events will cause
exceptions when handled. This patch makes GeckoEditable call
disposeNative, after ensuring there's no pending calls.
2015-10-22 17:45:47 -04:00
Jim Chen
0e7ee1df92 Bug 1211704 - Convert IME events to native calls; r=esawin
Remove IME events from GeckoEvent and use the newly added native calls
in GeckoEditable.
2015-10-22 17:45:46 -04:00
Jim Chen
aecd53254d Bug 1211704 - Add GeckoEditable native methods; r=esawin
These native methods will replace the IME events used by GeckoEditable.
2015-10-22 17:45:46 -04:00
Jim Chen
1b1fe2fdef 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
Jim Chen
2c8727a14d Bug 1209574 - Switch GeckoInputConnection for each new GeckoView; r=esawin
The GeckoEditable instance doesn't change for each nsWindow instance.
However, because a GeckoInputConnection is associated with a GeckoView,
when we create a new GeckoView, we need to attach a new
GeckoInputConnection to the existing nsWindow's GeckoEditable. This
patch makes us do that inside nsWindow::Natives::Open by calling
GeckoEditable.OnViewChange.
2015-10-08 15:25:49 -04:00
Jim Chen
7088159257 Bug 1209574 - Move GeckoEditable management to nsWindow; r=esawin
This patch removes the GeckoEditable code in GeckoAppShell, and make
nsWindow create a GeckoEditable for itself when opening a window.
Instead of calling GeckoAppShell, nsWindow can now call GeckoEditable
methods directly.
2015-10-08 15:25:49 -04:00
Jim Chen
22586fb101 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
cc75e4c5de Backed out changeset 3c7265546800 (bug 1209574) for Android Perma Failures 2015-10-08 10:06:35 +02:00
Carsten "Tomcat" Book
d2be5e93a8 Backed out changeset 161f9ab0c5e7 (bug 1209574) for Android Perma Failures 2015-10-08 10:06:19 +02:00
Carsten "Tomcat" Book
cb33e03f39 Backed out changeset 6763177287ca (bug 1209574) for Android perma failures 2015-10-08 10:05:44 +02:00
Jim Chen
d000162e61 Bug 1209574 - Switch GeckoInputConnection for each new GeckoView; r=esawin
The GeckoEditable instance doesn't change for each nsWindow instance.
However, because a GeckoInputConnection is associated with a GeckoView,
when we create a new GeckoView, we need to attach a new
GeckoInputConnection to the existing nsWindow's GeckoEditable. This
patch makes us do that inside nsWindow::Natives::Open by calling
GeckoEditable.OnViewChange.
2015-10-08 01:13:00 -04:00
Jim Chen
42c7f8215a Bug 1209574 - Move GeckoEditable management to nsWindow; r=esawin
This patch removes the GeckoEditable code in GeckoAppShell, and make
nsWindow create a GeckoEditable for itself when opening a window.
Instead of calling GeckoAppShell, nsWindow can now call GeckoEditable
methods directly.
2015-10-08 01:12:59 -04:00
Jim Chen
4204ec39a0 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
f12076ac2e 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
4e7741fcb4 Bug 1209574 - Switch GeckoInputConnection for each new GeckoView; r=esawin
The GeckoEditable instance doesn't change for each nsWindow instance.
However, because a GeckoInputConnection is associated with a GeckoView,
when we create a new GeckoView, we need to attach a new
GeckoInputConnection to the existing nsWindow's GeckoEditable. This
patch makes us do that inside nsWindow::Natives::Open by calling
GeckoEditable.OnViewChange.
2015-10-07 08:57:31 -04:00
Jim Chen
c430fa611d Bug 1209574 - Move GeckoEditable management to nsWindow; r=esawin
This patch removes the GeckoEditable code in GeckoAppShell, and make
nsWindow create a GeckoEditable for itself when opening a window.
Instead of calling GeckoAppShell, nsWindow can now call GeckoEditable
methods directly.
2015-10-07 08:57:31 -04:00
Jim Chen
d514a62034 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
Jim Chen
fb7e3dd2bd Bug 1152124 - Clear spans when initializing for newly-focused editor; r=esawin 2015-04-15 15:21:32 -04:00
Jim Chen
78dafdd131 Bug 1152123 - Handle commit/cancel composition events in GeckoEditable; r=esawin 2015-04-15 15:21:32 -04:00
Jim Chen
5d43c87b01 Bug 1151875 - Never mask text updates in nsWindow; r=esawin 2015-04-08 12:25:20 -04:00
Jim Chen
c2cb2a3e5c Bug 1151875 - Refactor GeckoEditable.ActionQueue methods; r=esawin 2015-04-08 12:25:20 -04:00
Jim Chen
a12a40c194 Bug 1149189 - Backout e75d824c730d "Force Gecko update on endBatchEdit for range updates"; r=esawin 2015-03-31 18:20:27 -04:00
Jim Chen
ccd74bbaee Bug 1149172 - Fix small bugs in IME focus handshake; r=esawin 2015-03-31 18:20:27 -04:00
Eugen Sawin
06acff4d0d Bug 1051556 - Simplify GeckoEditable exception messages. r=snorp
---
 mobile/android/base/GeckoEditable.java | 32 ++++++++++++++++++--------------
 1 file changed, 18 insertions(+), 14 deletions(-)

--HG--
extra : rebase_source : 2e3895fdccbfb8c9b2ca8fa0c35f4a71ae651d77
2015-03-04 23:15:14 +01:00
Eugen Sawin
350104004a Bug 1133802 - Force Gecko update on endBatchEdit for range updates. r=cpeterson 2015-02-24 00:22:07 +01:00
Chris Kitching
2425aa80a2 Bug 1081582: Fix spelling. r=rnewman 2014-10-12 00:28:29 +01:00
Chris Kitching
3a374dec2d Bug 1062112: Part 1.5: Move GeckoEditable interfaces to satisfy JDK 8. r=nalexander 2014-09-08 12:48:08 -07:00
Jim Chen
bbcdbef35e Bug 1058136 - Properly send text change notifications for composition text; r=cpeterson 2014-09-04 14:38:18 -04:00
Jim Chen
927986edb5 Bug 1058136 - Send separate compose event for composing text; r=cpeterson 2014-09-04 14:38:17 -04:00
Jim Chen
19212821a7 Bug 1058136 - Fix debug logging crash; r=cpeterson 2014-09-04 14:38:17 -04:00
Jim Chen
b73e9eb75f Bug 1058136 - Refactor GeckoEditable; r=cpeterson 2014-09-04 14:38:16 -04:00
Masayuki Nakano
93cf48640e Bug 826657 part.2 Implement NOTIFY_IME_OF_MOUSE_BUTTON_EVENT in XP part r=smaug+ehsan 2014-08-29 19:08:43 +09:00
Jim Chen
0b8d35ee8c Bug 1058127 - Properly implement removeSpan synchronization; r=cpeterson 2014-08-26 11:50:19 -04:00
Richard Newman
c1f48dce0b Bug 1042383 - Part 2: use optimizable build-time flags for SDK-dependent code. r=mfinkle 2014-07-30 08:19:35 -07:00
Jim Chen
0ff39eef3c Bug 1004073 - Refactor EventDispatcher usages; r=fennec-team 2014-05-02 14:34:40 -04:00
Mark Capella
735bae1fa6 Bug 895463 - (p3) Rename SelectionHandler dragging messages, r=jchen, margaret 2014-04-11 18:06:30 -04:00
Jim Chen
4f6e8707c8 Bug 989046 - f. Only unregister event in GeckoEditable if already registered; r=capella 2014-04-04 12:33:51 -04:00
Mark Capella
329f77a5a3 Bug 982608 - Geckoeditable data loss using Swift keyboard during Text Selection, r=jchen, margaret 2014-03-26 21:34:46 -04:00
Jim Chen
8e3a90b7bf Bug 984463 - Update GeckoEditableListener constants to match IMEMessage constants. r=masayuki 2014-03-21 13:44:59 -04:00
Richard Newman
1a78edd401 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
7622c24693 Backed out changeset 1e8fa32e8abd (bug 975838) 2014-03-17 22:42:34 -07:00
Richard Newman
fa4b306be0 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
e97edf2412 Bug 899233 - Don't restart IME when changing selection; r=cpeterson 2013-08-14 11:32:44 -04:00
Jim Chen
83438a2314 Bug 864040 - Send key events from the UI thread the right way; r=cpeterson 2013-06-26 17:28:21 -04:00
Jim Chen
d61b66bb9b Bug 837379 - Log better exception messages in GeckoEditable; r=cpeterson 2013-06-10 10:15:41 -04:00
Brad Lassey
f44d8af825 bug 867517 - Gecko-based WebView for Android, refactor patch r=mfinkle 2013-05-24 12:21:01 -04:00
Jim Chen
637363b741 Bug 846660 - Use default values for primitive types and fix setSelection for Samsung keyboards. r=cpeterson 2013-05-13 17:25:12 -04:00
ext:(%20brianecker%40gmail.com)
c7aa12cea2 Bug 852704: Created Java enums to encapsulate data formerly stored in int constants. r=cpeterson 2013-04-08 13:21:52 -07:00
Chris Peterson
e2995e53e3 Bug 859229 - Part 3: Fix order of Java imports. r=kats 2013-04-08 00:51:56 -07:00
Jim Chen
c64e638333 Bug 842013 - Buffer IME key events and dispatch them at once; r=cpeterson 2013-03-29 10:54:01 -04:00