27 Commits

Author SHA1 Message Date
Yuhui Huang
f94cf140c5
Refactor FlRenderer to platform-independent implementation (#24011)
Refactor FlRenderer to platform-independent implementation
2021-02-03 11:31:51 +13:00
Robert Ancell
20991a5985
Add accessibility suport to Linux shell. (#19634)
Add accessibility support to the Linux shell
2021-01-13 13:49:48 +13:00
Robert Ancell
90d1f05686
Implement settings channel for the Linux shell (#22486)
Implement settings channel for the Linux shell

Fixes https://github.com/flutter/flutter/issues/65591
2021-01-05 12:28:43 +13:00
Greg Spencer
4b859cee93
Fix typos and fix some env var state leakage in tests (#22576)
This just fixes some typos, and a small state leak in some of the tests that set env variables.
2020-11-17 21:51:37 -08:00
stuartmorgan
bf259226b2
Switch Linux embedding to proc table embedder API (#22280)
Switches the Linux embedding from the standard C API to the new proctable version, to allow for unit testing of the embedding layer separately from the embedder APIs implementation.
2020-11-04 15:12:44 -08:00
Robert Ancell
8d3d953192
Fix warning when no entrypoing args provided. (#22136)
Fixes errors like:
GLib-CRITICAL **: 14:20:17.248: g_strv_length: assertion 'str_array != NULL' failed

Introduced in fc72bd2ada5d8d9b4ab2c1255d4f960cc44b5de0
2020-10-30 14:57:35 +13:00
Robert Ancell
382f5ccba5
Fix incorrect parameter used for self object (#22135)
Fix incorrect parameter used for self object

Rename the GWeakNotify function parameters.
This matches the prototype and makes it harder to accidentally use the object
parameter the wrong way.
2020-10-30 14:52:24 +13:00
George Wright
fc72bd2ada
Plumb through Dart entrypoint arguments on the Linux embedder (#21933) 2020-10-22 09:47:04 +13:00
stuartmorgan
042c7f0422
[linux] Allow engine flags via environment vars (#21497)
Adds the ability to pass engine switches temporarily at runtime via
environment variables. Uses the same approach recently added to
Windows and macOS.

This is enabled only for debug/profile to avoid potential issues with
tampering with released applications, but if there is a need for that in
the future it could be added (potentially with a whitelist, as is
currently used for Dart VM flags).

Fixes flutter/flutter#60393
2020-10-06 11:17:19 -07:00
Robert Ancell
e17cb83726
Fix segfault if engine is disposed with an uncompleted task. (#21234) 2020-09-24 11:29:38 +12:00
Damian Wrobel
21fd8917c0
Add missing <cstring> header for (strcmp, strrchr) (#21176)
Fixes the following compilation errors:
../../flutter/shell/platform/linux/fl_platform_plugin.cc:89:7: error: use of undeclared identifier 'strcmp'
  if (strcmp(format, kTextPlainFormat) != 0) {
      ^
../../flutter/shell/platform/linux/fl_platform_plugin.cc:127:7: error: use of undeclared identifier 'strcmp'
  if (strcmp(method, kSetClipboardDataMethod) == 0)
      ^
../../flutter/shell/platform/linux/fl_platform_plugin.cc:129:12: error: use of undeclared identifier 'strcmp'
  else if (strcmp(method, kGetClipboardDataMethod) == 0)
           ^
../../flutter/shell/platform/linux/fl_platform_plugin.cc:131:12: error: use of undeclared identifier 'strcmp'
  else if (strcmp(method, kSystemNavigatorPopMethod) == 0)
           ^
../../flutter/shell/platform/linux/fl_view.cc:194:7: error: use of undeclared identifier 'strcmp'
  if (strcmp(pspec->name, "scale-factor") == 0) {
      ^
../../flutter/shell/platform/linux/fl_engine.cc:67:18: error: use of undeclared identifier 'strrchr'
  gchar* match = strrchr(l, '@');
                 ^
../../flutter/shell/platform/linux/fl_engine.cc:75:11: error: use of undeclared identifier 'strrchr'
  match = strrchr(l, '.');
          ^
../../flutter/shell/platform/linux/fl_engine.cc:83:11: error: use of undeclared identifier 'strrchr'
  match = strrchr(l, '_');
          ^

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
2020-09-15 08:05:12 -07:00
William Wold
dcb9244c38
Consolidate FlRenderer initialization into fl_renderer_start() (#20763) 2020-08-28 09:57:14 +12:00
Robert Ancell
ab23dc3a74 Update code style to pass clang-tidy checks 2020-08-05 10:35:03 +12:00
Robert Ancell
160b268ef1
Set locale in Linux shell (#19470) 2020-07-10 11:16:50 +12:00
Robert Ancell
f267ef5837
Add a flag to enable dart:mirrors (#19112)
Fixes https://github.com/flutter/flutter/issues/59233
2020-06-26 11:17:15 +12:00
Robert Ancell
01e06ed3d9
Add support for headless mode (#19038) 2020-06-17 06:25:48 +12:00
Robert Ancell
b19a17d5d1
Implement an EGL resource context for the Linux shell. (#18918)
Fixes https://github.com/flutter/flutter/issues/54855
2020-06-11 12:31:06 +12:00
Robert Ancell
91d520986e
Add scroll event support (#18885) 2020-06-09 12:20:06 +12:00
Robert Ancell
dfdd88deb7
Support AOT mode in GTK shell (#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
a25d851edf
Don't call engine when not initialized. (#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
1b4d958f98
Add braces around multi-line branches to match code style (#18719) 2020-06-03 06:22:24 +12:00
Robert Ancell
6589dcb2d4
Add missing full stops on the end of comments. (#18634) 2020-06-03 06:21:46 +12:00
Robert Ancell
79b136534a
Add GDestroyNotify callbacks on handlers (#18546) 2020-05-27 13:38:45 +12:00
Robert Ancell
044f2542d4
Use the term 'handler' for registering callbacks. (#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
180a497ee5
Support platform messages in Linux shell (#17995) 2020-05-04 17:03:04 +12:00
Robert Ancell
fda26fc70f
Run Flutter platform tasks in GLib main loop (#17910)
Fixes https://github.com/flutter/flutter/issues/54856
2020-04-29 09:13:58 +12:00
Robert Ancell
12012f135c
Refactor FlutterEngine usage in Linux shell (#17363) 2020-04-24 10:30:41 +12:00