3022 Commits

Author SHA1 Message Date
Kaushik Iska
12750e2e95 [fuchsia] Cleanup unused method in dart:zircon handle (flutter/engine#27330) 2021-07-12 11:40:42 -07:00
Tong Mu
1bdcf5501f Windows: Fix AltGr key causing CtrlLeft to hang (flutter/engine#27266)
Fixes an issue where pressing AltGr key (on supporting layouts such as Spanish) on Windows causes CtrlLeft to hang pressed for both Flutter and Windows.

Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>
2021-07-11 21:38:22 -07:00
Chase Latta
d7a4148d62 [fuchsia] make dart_runner work with cfv2 (flutter/engine#27226)
Adds support for running the dart runner as a CFv2 component.
The runner has been refactored to launch in both a v1 environemnt
as well as a v2 environment.
2021-07-08 15:19:21 -07:00
Wyte Krongapiradee
1997318121 Avoid unintended clipboard access (flutter/engine#27215) 2021-07-08 12:56:02 -07:00
Greg Spencer
185d8601c5 Hardware Keyboard: iOS (flutter/engine#25961)
Implement new keyboard event system for iOS.
2021-07-07 16:52:04 -07:00
Matej Knopp
3502f849a5 Remove unnecessary variable assignment (flutter/engine#27227) 2021-07-08 01:31:51 +02:00
chunhtai
65f82199cb Hides the scroll bar from UIScrollView (flutter/engine#27214)
* Hides the scroll bar from UIScrollView

* fix test
2021-07-07 11:59:41 -07:00
Maurice Parrish
36d3a6c062 Create flag to enable/disable FlutterView render surface conversion (flutter/engine#27038) 2021-07-07 11:01:02 -07:00
Matej Knopp
b3fb01c80b MacOS (metal): Block raster thread instead of platform thread. (flutter/engine#27191) 2021-07-07 08:56:02 -07:00
Matej Knopp
a0cd9e9785 Do not expect WM_CHAR if control or windows key is pressed (flutter/engine#27064) 2021-07-07 08:46:02 -07:00
David Worsham
32cded5dcd fuchsia: Handle clips on platform views (flutter/engine#27149) 2021-07-06 13:00:05 -07:00
Hunter Freyer
34b8a2b930 Replace flutter_runner::Thread with fml::Thread (flutter/engine#26783)
* Move task_observers.{cc,h} into fml.

This is a preparatory CL. The next CL will cause task_observers.h to
be included from both shell/platform/fuchsia _and_
fml/platform/fuchsia. I imagine it might be gauche for a single file
to be used from both those directories, but it seems way worse for fml
to depend on shell, rather than the other way around.

* Replace flutter_runner::Thread with fml::Thread.

This CL makes the treading logic in Fuchsia's flutter_runner more
consistent with fml expectations, but it still has quirks. Notably:

- Not all async work get posted to a fml::TaskRunner. Some work done
  by Fuchsia libraries gets posted directly to
  async_get_default_dispatcher(). This work doesn't trigger the
  fml::MessageLoop's task observers. As a result, we continue to have
  Fuchsia-specific task observers which fire for all async work,
  regardless of which way it was posted.

- There's awkwardness when trying to run Fuchsia code on a specific
  fml::TaskRunner if that fuchsia code accepts an
  async_dispatcher_t. Since you can no longer get an
  async_dispatcher_t for a given thread, you instead must post a
  closure to the fml::TaskRunner that calls
  async_get_default_dispatcher(), and then calls the fuchsia library
  with the default dispatcher.

- Some tests still use task_runner_adapter.h because async::Loop
  offers more control in unit tests than fml::MessageLoop does.

- If this successfully lands, there will be some cosmetic follow-up
  changes to make, like using ThreadHost instead of an array of
  fml::Threads.

* Increase stack size in flutter runner.

The previous change removes our custom 1MiB limit on the stack of
newly created threads, so these threads revert to the Fuchsia
default. google-internal tests were failing (without any particular
error in the logs) after this change, so here we just set the default
stack size to 1MiB.

Co-authored-by: Hunter Freyer <hjfreyer@google.com>
2021-07-06 10:04:08 -07:00
Callum Moffat
764f2e1137 Support right-clicking on iPadOS (flutter/engine#27019) 2021-07-02 13:52:24 -07:00
chunhtai
594a24a318 Fixes inset padding in android accessibility bridge (flutter/engine#27083) 2021-07-01 14:21:01 -07:00
Lau Ching Jun
f64df660b4 Windows: Allow win32 apps to initialize with different assets path or AOT filename (flutter/engine#27098) 2021-07-01 13:54:34 -07:00
chunhtai
7ab00f0c0b Make scrollable unfocusable when voiceover is running (flutter/engine#27118) 2021-07-01 13:30:09 -07:00
Michael Hoisie
68f9f6c1ab Remove built-in shadows from the @Config annotation (flutter/engine#26823) 2021-07-01 13:16:02 -07:00
Darren Chan
cc3f93e26d Prepare for cfv2 unittests. (flutter/engine#27036) 2021-07-01 13:11:01 -07:00
Dan Field
72d7ac4ba4 Remove unnecessary experiment flag (flutter/engine#27072)
* Remove unnecessary experiment flag

* add explicit --no-sound-null-safety
2021-07-01 12:27:42 -07:00
Angjie Li
bd172e1971 Update include path in FlutterDarwinContextMetal.mm (flutter/engine#27088) 2021-07-01 11:51:01 -07:00
David Worsham
5e5fe01dd2 Reland "fuchsia: Delete all the legacy code! (#26422)" (flutter/engine#27075)
This reverts commit bb3c49a9c3edf931a5601f0245faa85f5e077cb4.
2021-06-30 15:43:21 -07:00
Matej Knopp
09345c76b4 Windows: Resize synchronization shouldn't wait for vsync if window is hidden (flutter/engine#26857)
* Resize synchronization shouldn't wait for vsync if window is hidden
2021-06-30 12:56:14 +02:00
Emmanuel Garcia
277ee46c46 Give FlutterView a view ID (flutter/engine#27052) 2021-06-29 21:02:06 -07:00
Darren Chan
19e8b949e4 Fix use-after-free. (flutter/engine#27053)
Switch from `fml::NonOwnedMapping` to `fml::DataMapping`.

All other uses of `fml::NonOwnedMapping` are not in `PlatformView` and do not access data after references are out of scope.

This fixes https://fxbug.dev/77924.
2021-06-29 19:42:52 -04:00
Chinmay Garde
8867a5c405 Temporarily opt out of reduced shaders variants till roll issues are resolved. (flutter/engine#27048) 2021-06-29 15:11:02 -07:00
Hrishikesh Kadam
be091e0d43 Minor correction of hyperlinks in FlutterFragment.java (flutter/engine#26993) 2021-06-29 13:21:14 -07:00
LongCatIsLooong
fe8267a049 [iOS TextInput] Disables system keyboard for TextInputType.none (flutter/engine#26979) 2021-06-29 09:56:02 -07:00
J-P Nurmi
ab0e02d988 Android: add support for TextInputType.none (flutter/engine#26585) 2021-06-29 09:51:01 -07:00
Darren Chan
9e3b487842 [refactor] Migrate to View.focus.*. (flutter/engine#27005) 2021-06-29 09:41:01 -07:00
Darren Chan
a554250813 Always complete platform message requests. (flutter/engine#26994)
Functions/methods registered in `platform_message_handlers_` should return true or false, indicating whether the response was handled by them.
This makes it more explicit whether a platform message handler will asynchronously complete a response, versus if there was malformed/invalid request.

If the response was not handled, `CompleteEmpty` in `PlatformView::HandlePlatformMessage` to avoid hanging `Future`s in dart.

This fixes https://fxbug.dev/79056.
2021-06-29 09:58:31 -04:00
Kate Lovett
ae993b94fe Re-land Android fullscreen support (flutter/engine#27018) 2021-06-28 18:31:02 -07:00
Chinmay Garde
7cfb375a5e Configure contexts to reduce shader variations. (flutter/engine#27016)
Context creation options for each backend were spread across multiple
translation units. This makes setting options common across all backends hard to
configure. I have moved the creation of such common options into a separate
translation unit.

Fixes https://github.com/flutter/flutter/issues/84213
2021-06-28 15:37:14 -07:00
Chase Latta
38cc5181d8 Allow fuchsia_archive to accept a cml file and cmx file (flutter/engine#27012)
This adds support for adding a cml file to a fuchsia package. The
cml file will be compiled to a cm file and included in the archive.
2021-06-28 13:48:21 -07:00
Angjie Li
242a5501d8 Revert "[Engine] Support for Android Fullscreen Modes (#25785)" (flutter/engine#27014)
This reverts commit ea1ff8ab3b1b15b6dd4497dccd0afd081bfa09db.
2021-06-28 13:00:03 -07:00
Dan Field
844fa85973 Fix Fuchsia build on Mac (flutter/engine#27007) 2021-06-28 10:36:01 -07:00
George Wright
f4aa3aad88 Add unit tests for Dart entrypoint arguments on Linux (flutter/engine#26951) 2021-06-25 11:05:24 -07:00
Arjunsinh Jadeja
3cbfde36c2 Fix splash screen with theme references crash on Android API 21 (flutter/engine#26083) 2021-06-24 13:21:02 -07:00
Ben Hagen
e6966a545d Remove invalid texture error message (flutter/engine#26816)
This unifies the behaviour with other embedders.

Fixes flutter/flutter#84855
2021-06-24 13:08:37 -07:00
Rafal Walczyna
6024e186a2 Initialize EventChannel state (flutter/engine#26761)
OnCancel was firing randomly on event channel registering
because of uninitialized is_listening_ variable.

This PR fixes: flutter/flutter#84632
2021-06-24 13:07:56 -07:00
Robert Ancell
3fa5f09847 Re-enable non-smooth scrolling. (flutter/engine#26549)
Since 0561c75b4d events are now handled in a GtkEventBox and the duplicate
scroll events no longer occur.

Fixes https://github.com/flutter/flutter/issues/73823
2021-06-24 13:06:05 -07:00
Darren Chan
7a203330e1 Emit viewRefFocused events in the flutter runner. (flutter/engine#26791)
Fulfill HostView.getCurrentFocusState and HostView.getNextFocusState platform message requests to deliver focus-related events to dart code.

Consolidate focus functionality (including requestFocus handling) to a new "FocusDelegate" class.

See https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.views/view_ref_focused.fidl for details about focus state transitions and their meanings.

See https://fxbug.dev/77481.
2021-06-24 14:48:10 -04:00
Kate Lovett
ea1ff8ab3b [Engine] Support for Android Fullscreen Modes (flutter/engine#25785) 2021-06-24 10:56:01 -07:00
chunhtai
9cca57abef Reland ios accessibility scrolling support (flutter/engine#26860) 2021-06-23 13:36:16 -07:00
Martin Kustermann
fde57f1f1d Remove usages of --no-causal-async-stacks (flutter/engine#26877)
Passing the --causal-async-stacks flag to the VM will cause it to error
on VM startup. The VM will remove the flag entirely, but before doing so
we'll have to remove usages of the negated version of the flag, namely
--no-causal-async-stacks.
2021-06-23 14:30:26 +02:00
Dan Field
42ef4abc81 fix javadoc (flutter/engine#26892) 2021-06-22 23:01:01 -07:00
chunhtai
2a526b317d Revert "Issues/80711 reland (#26813)" (flutter/engine#26859)
This reverts commit d03313b7b3f97d2083e3977d9e62974687760a33.
2021-06-21 10:21:04 -07:00
Dan Field
e6a9345f19 Remove outdated annotations from fixtures (flutter/engine#26828) 2021-06-19 10:09:02 -07:00
chunhtai
d03313b7b3 Issues/80711 reland (flutter/engine#26813) 2021-06-18 12:34:02 -07:00
Adlai Holler
3aaa10d762 Disable Skia reduceOpsTaskSplitting option (flutter/engine#26568)
This option will be the default in Skia soon. Per discussion in #26067, let’s be explicit about disabling it for the time being, and we can revisit the flag in the future if desirable.
2021-06-17 13:11:40 -07:00
chunhtai
29ea8111ac Revert "Support scrolling in iOS accessibility (#26671)" (flutter/engine#26803)
This reverts commit e933c9ab3e24dfa9e19da5d764edecec45ad19b4.
2021-06-17 10:59:46 -07:00