111 Commits

Author SHA1 Message Date
Robert Ancell
9c0ac3ec0e Fix name of Flutter class in plugin docstrings (flutter/engine#18889) 2020-06-09 11:05:19 +12:00
Robert Ancell
1a82a8bf32 Support AOT mode in GTK shell (flutter/engine#18809)
Simplify FlDartProject by removing the path arguments - we'll assume that it's
in the standard bundle layout and add new methods later if we need to support
other cases.
2020-06-08 13:18:52 +12:00
Robert Ancell
4ba8e1220f Don't call engine when not initialized. (flutter/engine#18810)
This stops events and platform messages generating errors when the engine has
failed to initialize.
2020-06-05 13:27:56 +12:00
Robert Ancell
06eaeaeb82 Fix braces style (flutter/engine#18837) 2020-06-05 13:26:54 +12:00
Robert Ancell
f029e6f88c Mark symbols that should be public (flutter/engine#18802) 2020-06-04 14:31:35 +12:00
stuartmorgan
35814367f6 Don't export embedder API in desktop embeddings (flutter/engine#18735)
The embedder.h API layer is an implementation detail of the desktop
embeddings, not part of the public API surface, so should not be part of
the public symbol list for those libraries.
2020-06-03 18:13:59 -07:00
Robert Ancell
f7a846ef8e Add missing standard codec alignment bytes (flutter/engine#18724) 2020-06-03 06:22:52 +12:00
Robert Ancell
07ecd97754 Add braces around multi-line branches to match code style (flutter/engine#18719) 2020-06-03 06:22:24 +12:00
Robert Ancell
43de315eee Add missing full stops on the end of comments. (flutter/engine#18634) 2020-06-03 06:21:46 +12:00
Robert Ancell
486f8e4886 Don't show warnings when removing handlers. (flutter/engine#18633)
These are removed in destructors.
2020-06-02 11:32:57 +12:00
Robert Ancell
29a0d55666 Add tests for FlBinaryMessenger, FlBasicMessageChannel, FlMethodChannel (flutter/engine#18638) 2020-06-02 09:39:37 +12:00
Robert Ancell
61f0b14f9c Fix FlValue functions not marked for export (flutter/engine#18641) 2020-06-02 09:38:10 +12:00
Robert Ancell
567c770994 Revert "Add tests for FlBinaryMessenger, FlBasicMessageChannel, FlMethodChannel (#18597)"
This reverts commit 6b0417a1a19f69ec18c2176e3f5cde60aeb9b96d.
2020-05-28 13:32:26 +12:00
Robert Ancell
6b0417a1a1 Add tests for FlBinaryMessenger, FlBasicMessageChannel, FlMethodChannel (flutter/engine#18597)
* Add mock implementations of the Flutter embedding API and EGL
* Add tests for FlBinaryMessenger, FlBasicMessageChannel, FlMethodChannel
2020-05-28 13:13:32 +12:00
Robert Ancell
72181d1083 Add FlTextInputPlugin (flutter/engine#18314)
* Add FlTextInputPlugin
2020-05-28 13:11:16 +12:00
Robert Ancell
75f15f3460 Add FlPluginRegistry and FlPluginRegistrar (flutter/engine#18453)
* Add FlPluginRegistry and FlPluginRegistrar
2020-05-27 13:39:48 +12:00
Robert Ancell
3eb418ab72 Add GDestroyNotify callbacks on handlers (flutter/engine#18546) 2020-05-27 13:38:45 +12:00
Robert Ancell
3aa7e03711 Show error details in method channel response error messages (flutter/engine#18571) 2020-05-27 09:17:55 +12:00
Robert Ancell
9698ed7d38 Fix wrong method name - copy/paste error from FlBinaryMessenger (flutter/engine#18596) 2020-05-27 09:17:16 +12:00
Robert Ancell
2a813f032e Add fl_value_to_string (flutter/engine#18540) 2020-05-22 10:57:21 +12:00
Robert Ancell
5161b7eece Add FlKeyEventPlugin (flutter/engine#18313) 2020-05-21 16:08:56 +12:00
Robert Ancell
a12454646d Add FlMethodChannel, FlMethodCodec, FlStandardMethodCodec and FlJsonMethodCodec (flutter/engine#18220)
* Add FlMethodChannel, FlMethodCall, FlMethodResponse and FlMethodCodec

* Add FlJsonMethodCodec

* Add FlStandardMethodCodec
2020-05-21 12:53:15 +12:00
Robert Ancell
7b4840a4fc Make FlBasicMessageChannelResponseHandle a GObject to detect unresponded and double responded messages. (flutter/engine#18514) 2020-05-21 11:15:56 +12:00
Robert Ancell
933fcc1048 Update comments for grammar and content to required style (flutter/engine#18491) 2020-05-20 09:14:28 +12:00
Robert Ancell
cc5f6eb779 Rename NULL tests to Nullptr for consistency (flutter/engine#18359) 2020-05-15 15:00:11 +12:00
Robert Ancell
2167ccdded Fix incorrect header for #FlBasicMessageChannel::respond (flutter/engine#18365) 2020-05-15 09:19:00 +12:00
Robert Ancell
4433a1162a Add FlJsonMessageCodec (flutter/engine#18221) 2020-05-14 13:49:40 +12:00
Robert Ancell
e244dcbddf Add FlBasicMessageChannel (flutter/engine#18189) 2020-05-14 12:09:32 +12:00
Robert Ancell
5e242e26b4 Add guards on FlValue methods to check for NULL values (flutter/engine#18226) 2020-05-14 09:02:51 +12:00
Robert Ancell
33d8ec80b3 Use 'message' as the parameter name in FlMessageCodec::encode_message (flutter/engine#18253)
This is more consistent with the Dart code.
2020-05-13 16:55:20 +12:00
Robert Ancell
c617e2ecf5 Add FlStandardMessageCodec (flutter/engine#18213) 2020-05-12 11:09:21 +12:00
Robert Ancell
4058392714 Fix incorrect declaration of FlBinaryCodec (flutter/engine#18283) 2020-05-12 09:58:47 +12:00
Robert Ancell
b518809f2d Use the term 'handler' for registering callbacks. (flutter/engine#18269)
This is the term used in the Dart code and which callback is more commonly used
in GLib matching the Dart code will make developers life easier.
2020-05-12 09:01:10 +12:00
Robert Ancell
3e58d628c5 Fix grammar in FlBinaryCodec/FlStringCodec descriptions (flutter/engine#18268) 2020-05-12 09:00:36 +12:00
Robert Ancell
c23b125ec3 Add FlMessageCodec, FlBinaryCodec, FlStringCodec (flutter/engine#18186)
Classs for binary message encoding/decoding that matches the ones in the Flutter services library.
2020-05-08 16:13:54 +12:00
Robert Ancell
e85dbdde88 Add FlValue (flutter/engine#18185)
FlValue is a lightweight object used to contain the value types that Flutter
uses on platform channels.
2020-05-08 13:48:41 +12:00
Robert Ancell
2469d34922 Handle leak of message handle when no engine present (flutter/engine#18157)
* Handle leak of message handle when no engine present
* Move callback in wrong location
2020-05-08 09:05:20 +12:00
Robert Ancell
10cf694c5a Add first Linux shell tests (flutter/engine#18159) 2020-05-06 15:33:11 +12:00
Robert Ancell
984fddf8af Move G_END_DECLS that was in the wrong place (flutter/engine#18116) 2020-05-05 09:11:57 +12:00
Robert Ancell
af3071fe92 Support platform messages in Linux shell (flutter/engine#17995) 2020-05-04 17:03:04 +12:00
Robert Ancell
1523f9e550 Replace usage of NULL with nullptr to match coding style (flutter/engine#18023) 2020-04-29 13:26:27 -07:00
Robert Ancell
9d09f9ac4e Use g_warning instead of stderr (flutter/engine#17994) 2020-04-29 15:13:29 +12:00
Robert Ancell
c9b3285fa2 Run Flutter platform tasks in GLib main loop (flutter/engine#17910)
Fixes https://github.com/flutter/flutter/issues/54856
2020-04-29 09:13:58 +12:00
Robert Ancell
214641ff29 Fix units used in Linux shell timestamps. (flutter/engine#17912)
GTK uses timestamps in milliseconds, Flutter wants them in microseconds.
2020-04-24 13:30:34 +12:00
Robert Ancell
a643d8aa67 Refactor FlutterEngine usage in Linux shell (flutter/engine#17363) 2020-04-24 10:30:41 +12:00
Robert Ancell
d8cc8645bc Add pointer events to the Linux shell (flutter/engine#17304) 2020-04-21 11:27:13 +12:00
stuartmorgan
fb6e9d1c6f Adjust the GLFW build options (flutter/engine#17704)
- Adds an explicit option for not building the GLFW embedding.
- Disables GLFW by default on Windows, where it's no longer the
  uploaded embedding.
- Moves the X11 pkg-config, which is only used by the GLFW embedding,
  behind the GLFW build flag.
2020-04-14 12:45:21 -07:00
Robert Ancell
971f86d844 Move Linux shell docstrings to headers (flutter/engine#17410)
Update docstrings for typos and grammar style specified in the style guide.
2020-04-14 15:41:23 +12:00
stuartmorgan
f8d35c125d Always build GTK shell (flutter/engine#17634) 2020-04-11 11:50:03 -07:00
Robert Ancell
eda8501719 Update FlDartProject to new path format (flutter/engine#17302)
Matches the structure used on Windows of assuming a directory format.
2020-03-31 15:25:44 -07:00