Commit Graph
68 Commits
Author SHA1 Message Date
Jim Chen a61dbca324 Bug 1219016 - Store application context in GeckoAppShell; r=snorp
This patch adds separate setter and getter for the application context
in GeckoAppShell. The existing getContext method is misused for both
application and activity context, so new methods are added to improve
consistency.
2015-11-11 21:28:59 -05:00
Jim Chen a73c805636 Bug 1215139 - Separate out nsWindow closing from disposeNative; r=snorp
This patch adds a separate close() call to nsWindow, and let the
GeckoView decide whether to make that call or not. This lets us use the
static version of disposeNative. If nsWindow is destroyed in the
meantime, we still want to call disposeNative, which would only be
possible using the static version of disposeNative.
2015-10-22 17:45:46 -04:00
Jim Chen 0d16143544 Bug 1211600 - Queue disposeNative call for GeckoView if Gecko is not ready; r=snorp
If Gecko is not ready, we should queue the disposeNative call in
GeckoView.onDetachedFromWindow instead of calling it right away. We use
the PROFILE_READY state here to correspond to
GeckoView.onAttachedToWindow, where we make the open call on
PROFILE_READY.
2015-10-15 15:49:49 -04:00
Jim Chen 59a51b10ff 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 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
Jim Chen 97ce5bbfa5 Bug 1200426 - Convert PROCESS_OBJECT GeckoEvent to native call; r=snorp
The PROCESS_OBJECT GeckoEvent is used to set the layer client object in
Gecko once Gecko is done loading. This patch converts it to a native
call in GeckoView.Window.
2015-10-08 15:25:49 -04:00
Carsten "Tomcat" Book a71f85c019 Backed out changeset 2e8206d7352e (bug 1200426) for Android Perma Failures 2015-10-08 10:07:11 +02:00
Carsten "Tomcat" Book f3ff86678f Backed out changeset 3c7265546800 (bug 1209574) for Android Perma Failures 2015-10-08 10:06:35 +02:00
Carsten "Tomcat" Book aef88befe4 Backed out changeset 6763177287ca (bug 1209574) for Android perma failures 2015-10-08 10:05:44 +02:00
Jim Chen 5f1d1a41fe 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 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
Jim Chen 5caa676144 Bug 1200426 - Convert PROCESS_OBJECT GeckoEvent to native call; r=snorp
The PROCESS_OBJECT GeckoEvent is used to set the layer client object in
Gecko once Gecko is done loading. This patch converts it to a native
call in GeckoView.Window.
2015-10-08 01:12:57 -04:00
Wes Kocher 453c13945d Backed out 2 changesets (bug 1200426) for android tpn bustage
Backed out changeset 4dcc2fb45208 (bug 1200426)
Backed out changeset 2dea192c7f33 (bug 1200426)
2015-10-07 09:05:01 -07: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 201d56a05b 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 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
Jim Chen 998f880062 Bug 1200426 - Convert PROCESS_OBJECT GeckoEvent to native call; r=snorp
The PROCESS_OBJECT GeckoEvent is used to set the layer client object in
Gecko once Gecko is done loading. This patch converts it to a native
call in GeckoView.Window.
2015-10-07 08:57:30 -04:00
Sebastian Kaspari 44bf004b40 Bug 1209871 - GeckoView: onDetachedFromWindow() should call its super method. r=jchen
Previously GeckoView.onDetachedFromWindow() accidentally called
super.onAttachedToWindow().
2015-10-01 09:57:23 +02:00
Sebastian Kaspari a78da1eb1e Bug 1202052 - Bypass cache on reload button long press. r=margaret 2015-09-24 15:27:56 +02:00
Jim Chen 29d7e30fb8 Bug 1197957 - Let GeckoView open the nsWindow instead of CLH; r=snorp
Currently, BrowserCLH opens a single new window on startup. Now that
GeckoView is able to open windows through GeckoView.Window, we should
make GeckoView open its own window, which we can do earlier in startup,
and will make it possible to support multiple GeckoView's down the road.
2015-09-21 10:13:32 -04:00
Jim Chen 3bedd655b1 Bug 1197957 - Introduce GeckoView.Window class; r=snorp
GeckoView.Window is a class that acts as the interface between
GeckoView in Java and nsWindow in C++. It will contain native methods
that GeckoView will use to interact with nsWindow.

On initialization, Window.open is called to create a nsWindow and
establish the JNI association between Window and the native nsWindow.
Then, whenever Window instance methods are called, the JNI stubs will
automatically call members of nsWindow.
2015-09-21 10:13:32 -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
Jim Chen 8ddabb4d9a Bug 1166309 - Set interface and don't load mozglue in GeckoView; r=snorp 2015-06-10 00:25:01 -04:00
Jim Chen 03f32740e6 Bug 1158309 - Initialize LayerView sooner; r=snorp 2015-04-30 13:01:01 -04:00
Jim Chen 13c9dceb1e Bug 1150693 - Initialize GeckoThread before registering GeckoApp events before launching Gecko; r=snorp 2015-04-22 11:30:13 -04: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
Jim Chen 35e2ad27cd Bug 1078304 - Call GeckoAppShell.setLayerView early; r=snorp a=topcrasher,tracking-firefox35 2014-10-22 12:51:43 -04:00
Chris Kitching 791227aa4f Bug 1081582: Fix spelling. r=rnewman 2014-10-12 00:28:29 +01:00
Mark Finkle c0280b15ff Bug 1035420 - [geckoview] Implement Java <-> Javascript messaging bridge r=bnicholson 2014-10-15 00:33:14 -04:00
Mark Finkle 82659404a3 Bug 1035420 - [geckoview] Implement chrome script injection r=bnicholson 2014-10-15 00:32:15 -04:00
Carsten "Tomcat" Book 6c4d46deb9 Backed out changeset b4bfcde216b9 (bug 1035420) for Android Bustage 2014-10-15 08:57:06 +02:00
Carsten "Tomcat" Book c865de9b12 Backed out changeset f7c918458900 (bug 1035420) for Android Bustage 2014-10-15 08:56:51 +02:00
Mark Finkle c2f67b4c82 Bug 1035420 - [geckoview] Implement Java <-> Javascript messaging bridge r=bnicholson 2014-10-15 00:33:14 -04:00
Mark Finkle 959d6519d7 Bug 1035420 - [geckoview] Implement chrome script injection r=bnicholson 2014-10-15 00:32:15 -04:00
Chris Kitching 1fe8ded355 Bug 1081388: Add missing @Override annotations. r=rnewman
* * *
Bug 1081388: Add missing @Override annotations. r=rnewman
* * *
Bug 1081388: Add missing @Override annotations. r=rnewman
2014-10-10 23:58:19 +01:00
Jim Chen a66b1501d1 Bug 888482 - Send event to set layer client; r=snorp 2014-09-30 18:20:58 -04:00
Brian Nicholson b9cc27949f Bug 1073052 - Use main looper to initialize UI thread and handler. r=rnewman 2014-09-25 13:27:03 -07:00
Frédéric Wang c9e049efd7 Bug 1059427 - Make GeckoViews ignore accessibility events when they are not "important for accessibility". r=mfinkle 2014-08-27 11:15:00 -04:00
Frédéric Wang 2104ed69f7 Bug 1042257 - Part 1: Integrate GeckoAccessibility into GeckoView. r=mfinkle 2014-08-20 17:37:36 -07:00
Brian Nicholson fe23d3d104 Bug 1052841 - Remove handleMessage from GeckoView. r=mfinkle 2014-08-14 12:52:51 -07:00
Richard Newman 41d84e3e79 Bug 1042984 - Add extensive logging and descriptive crash data for library load errors. r=mfinkle 2014-07-24 09:39:48 -07:00
Mark Finkle 027918a542 Bug 1033168 - GeckoView needs to use EventDispatcher.sendResponse r=wesj 2014-07-07 16:28:03 -04:00
Jim Chen e4d1c9a6fc Bug 1004073 - Refactor EventDispatcher usages; r=fennec-team 2014-05-02 14:34:40 -04:00
Kartikaya Gupta 446fee130d Bug 995316 - Make GeckoLayerClient package-scoped. r=snorp 2014-04-11 20:49:46 -04:00
Richard Newman dd3dd366fe Bug 969637 - NullPointerException in org.mozilla.gecko.GeckoConnectivityReceiver.start. r=wesj 2014-02-27 12:32:34 -08:00
Brad Lassey 2b320172f6 bug 944104 - support creating a GeckoView programmatically r=mfinkle 2013-11-27 17:58:41 -05:00
Richard Newman b677ff964c Bug 936756 - Switch locales via pref, not via system locale setting. r=mfinkle,sriram (relanded as one patch) 2013-12-03 15:05:43 -08:00
Mark Finkle 92472d585d Backout 9ebed437d78f, 606c4b4ab77f, 686b4b5a5be3, c46514ce6886, 9cbe6533c480 due to critical breakage in bug 945723 2013-12-03 10:15:26 -05:00
Richard Newman 718ad1b501 Bug 936756 - Part 0: refactor prefs access in GeckoApp. r=mfinkle 2013-12-01 21:53:16 -08:00
Brian Nicholson 89108fbaf1 Bug 911364 - Connect new GeckoView to Gecko after rotation. r=mfinkle 2013-11-07 11:38:00 -08:00