2789 Commits

Author SHA1 Message Date
David Worsham
2c3fc4aae0
embedder: Exclude GL code (#21544) 2020-10-01 12:20:10 -07:00
Yilong Li
995965d36b
fuchsia: Remove display device availability check from Flutter. (#21495)
When Flutter engine connects to Scenic, Scenic has already
checked the display and graphics device availability before
Scenic starts; so it is guaranteed that display devices are
available and surface is valid when it is created.

Thus this change removes the device watching details from
flutter surface on Fuchsia so that it doesn't need to do
duplicated checks and hides the device-specific details.
2020-10-01 10:08:25 -07:00
stuartmorgan
870b093a0a
Add missing returns in system channels handlers (#21523)
The Windows and GLFW embeddings both had cases of missing returns after
calling `Error` on a method channel result object, leading to incorrect
double-calls on the result if the error paths were ever hit.
2020-09-30 14:34:50 -07:00
Ren You
83b9df9df5
Revert "Use dispatchKeyEventPreIme, and handle keys sent to InputConnection.sendKeyEvent on Android (#21163)" (#21513)
This reverts commit 539034ae850d422a5449edcb36c60ad90ac91905.
2020-09-30 09:34:05 -07:00
Felipe Archondo
3268278834
[fuchsia] fix typo (#21488) 2020-09-29 15:48:52 -05:00
Greg Spencer
539034ae85
Use dispatchKeyEventPreIme, and handle keys sent to InputConnection.sendKeyEvent on Android (#21163)
This switches from using dispatchKeyEvent to using dispatchKeyEventPreIme so that keys can be intercepted before they reach the IME and be handled by the framework.

It also now intercepts key events sent to InputConnection.sendKeyEvent, as some IMEs do (e.g. the Hacker's Keyboard), and sends the to Flutter before sending them to the IME (which it now only does if they are not handled by the framework).

This fixes the problem where pressing TAB on a hardware keyboard sends the tab to both the text field and to the focus traversal system.

Note that we still can't intercept all keystrokes given to a soft keyboard, only those which the soft keyboard decides to send to InputConnection.sendKeyEvent.
2020-09-29 12:46:29 -07:00
lucasradaelli
20be778250
[fuchsia][a11y] Don't populate hidden state. (#21484) 2020-09-29 10:07:01 -07:00
bungeman
a6a6fd163b
Replace kLegacyFontHost_InitType with kUnknown_SkPixelGeometry. (#21474)
Skia is removing the deprecated legacy display setting globals and
associated kLegacyFontHost_InitType. This change replaces all such uses
with default surface properties with no special flags and an unknown
pixel geometry. Flutter never set the associated globals, leaving them
with their initial default values, which were no special flags and
horizontal RGB pixel geometry. The values used here are different but
this change should make no difference as Flutter never mentions
SkFont::kSubpixelAntiAlias to take advantage of the pixel geometry.
2020-09-29 12:46:08 -04:00
stuartmorgan
41ce791926
[macos] Allow engine flags via environment vars (#21468)
Replaces the (temporary) compile-time option to pass engine switches
with the ability to pass them temporarily at runtime via environment
variables. This moves the recently-added code for doing this on Windows
to a shared location for use by all desktop embeddings.

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).

Temporarily adds a way to enable mirrors as a compile time option,
as is already provided in the Linux embedding, to provide a migration
path for the one remaining known need for compile-time options
that has been raised in flutter/flutter#38569.
2020-09-29 09:36:30 -07:00
chunhtai
70f7ef0c05
Reland Apply dpr transform to fuchsia accessibility bridge (#21459)
* Reland "Apply dpr transform to fuchsia accessibility bridge (#21364)"

This reverts commit 9db9a57a24ebb749f6372d2380db97d303191ce4.

* fix test
2020-09-28 12:50:53 -07:00
Kaushik Iska
149df4318d
Reland multiple display support for embedder API (#21464) 2020-09-28 12:35:34 -07:00
Jason Simmons
e3bb787fb8
Do not pass invalid platform view rendering surfaces to the rasterizer (#21259) 2020-09-28 11:57:01 -07:00
George Wright
ab2b0111f7
Enable embedder_unittests on Fuchsia (#21418) 2020-09-28 11:12:02 -07:00
Kaushik Iska
8d165faca1
Revert multiple display support for embedder API (#21456)
This reverts commits
- 67fdd7ededcbb161a857cc187619ae115c8c8e7f.
- 854943d5c8670a241524b71945b2c8ca77246556.

See: https://github.com/flutter/flutter/issues/66829
2020-09-28 09:46:46 -07:00
Zachary Anderson
9db9a57a24
Revert "Apply dpr transform to fuchsia accessibility bridge (#21364)" (#21458)
This reverts commit cf1fbf27195a8ee62758483898e0903622d091a3.
2020-09-28 09:42:50 -07:00
chunhtai
cf1fbf2719
Apply dpr transform to fuchsia accessibility bridge (#21364)
* Apply dpr transform to fuchsia accessibility bridge

* fix format

* addressing comment

* fix typo
2020-09-28 09:24:02 -07:00
Kaushik Iska
2917a65011
[ios] Remove unused is_valid_ from IOS Metal Context (#21432) 2020-09-28 08:05:48 -07:00
Kaushik Iska
854943d5c8
[macOS] Set the display refresh rate (#21095)
Fixes: https://github.com/flutter/flutter/issues/49222
2020-09-26 06:47:26 -07:00
Emmanuel Garcia
db9991279d
Support dragging native platform views (#21396) 2020-09-25 17:46:34 -07:00
Jenn Magder
c9b40c67fc
Remove ASCII art from mDNS error log (#21397) 2020-09-25 11:34:26 -07:00
Alexander Brusher
de5f2b48fb
Revert "Revert "Adds fuchsia node roles to accessibility bridge updates. (#20385)" (#20936)" (#21367)
This reverts commit 96efe39272a2850092c9a1445dc5406dbe1fb645.
2020-09-25 11:07:10 -07:00
Kaushik Iska
67fdd7eded
Embedder API Support for display settings (#21355)
Embedders can now notify shell during startup about the various displays and their corresponding settings.
Adds a notion of Display update type which can later include chages to displays during runtime such as addition / removal / reconfiguration of displays.

We also remove the responsibility of providing the refresh rate from `vsync_waiter` to `DisplayManager`.
Rewires existing platform implementations of the said API to use `Shell::OnDisplayUpdate` to notify the display manager of the startup configuration.

DisplayManager is also thread-safe to account for rasterizer and UI thread accesses.
2020-09-25 11:04:10 -07:00
Dan Field
aa8d5d4b9b
Avoid sending a 0 DPR to framework (#21389)
* Avoid sending a 0 DPR to framework

* check width and height as well
2020-09-25 10:35:57 -07:00
George Wright
19a1f77948
Split out embedder_unittests test cases into GL and non-GL tests (#21386) 2020-09-24 17:02:01 -07:00
Robert Ancell
5e9b235b8e
Detect errors encoding method channel responses (#21314) 2020-09-25 10:33:38 +12:00
stuartmorgan
ad36b4064a
Remove legacy C++ EncodableValue (#21359)
When the EncodableValue implementation changed, the old version was
temporarily kept behind an #ifdef to allow temporarily using the old
version, so that the roll would not be blocked. All known existing
clients have migrated, so the legacy version is no longer necessary.
2020-09-24 15:14:12 -07:00
Gary Qian
de3db5db92
Locale -> LanguageRange conversion to be more general in Android platformResolvedLocale (#21350) 2020-09-23 21:52:02 -07:00
Jason Simmons
1345359642
Fix boolean value checks in StandardMessageCodec (#21270)
Fixes https://github.com/flutter/flutter/issues/65619
2020-09-23 16:31:07 -07:00
Robert Ancell
e17cb83726
Fix segfault if engine is disposed with an uncompleted task. (#21234) 2020-09-24 11:29:38 +12:00
Tim Sneath
dd35b5b659
Update FlutterViewController.mm (#21362)
Tweaked the label here a little for style ("apps", not "application" -- plural and shorter); and "launching" rather than "re-launching"?
2020-09-23 13:52:52 -07:00
xster
caa8e6dd9f
Re-land deprecate Android v1 embedding classes (#21347) 2020-09-23 11:25:20 -07:00
Jason Simmons
034ab2e18e
Retain the WindowInsetsAnimation callback if code shrinking is enabled (#21330) 2020-09-23 09:17:02 -07:00
Mehmet Fidanboylu
2de96a2d5d
Remove spurious semicolon (#21333) 2020-09-22 22:53:53 -07:00
Zachary Anderson
c62d665299
Revert "Deprecate Android v1 embedding classes (#20868)" (#21338)
This reverts commit 3011b14a25ea5c9fd54ecffc2e154e587c4a6b1a.
2020-09-22 14:38:18 -07:00
lucasradaelli
9371aabe33
[a11y] Flutter sends node roles as part of Fuchsia semantics updates. (#21329) 2020-09-22 13:57:02 -07:00
Felipe Archondo
b160f971d2
[fuchsia] add frames_in_flight info to trace events (#21302)
No tests needed, since there is no change in functionality expected.
2020-09-22 16:02:49 -04:00
stuartmorgan
6eacdce880
[windows] Allow engine flags via environment vars (#21161)
Replaces the (temporary) compile-time option to pass engine switches
with the ability to pass them temporarily at runtime via environment
variables.

This is enabled only for debug/profile to avoid potential issues with
tampering with released applicaitons, 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).

Windows portion of:
https://github.com/flutter/flutter/issues/38569
https://github.com/flutter/flutter/issues/60393
2020-09-22 12:34:24 -07:00
xster
88e53777d1
Enforce exclusivity for activity and fragments attached to the FlutterEngine (#21272) 2020-09-22 10:34:52 -07:00
Dan Field
6b62443ddf
Relax test around a11y updates (#21311) 2020-09-22 01:32:02 -07:00
Jason Simmons
11befe419e
Disconnect the view's AndroidKeyProcessor when detaching from the engine (#21307) 2020-09-21 17:42:02 -07:00
George Wright
978371fd1e
[manual roll] Roll Fuchsia Linux SDK from K2Oiy-AYh... to 2rXyLF0YK (#21308) 2020-09-21 16:37:02 -07:00
LongCatIsLooong
3f27800f5b
[iOS TextInput] Avoid Unnecessary UndateEditingClient Calls (#21303) 2020-09-21 15:27:02 -07:00
Chris Yang
678653bfb6
Fix iOS platform view's mask view blocking touch events. (#21286) 2020-09-21 15:22:47 -07:00
George Wright
f5ee86e73d
Do not create a TestGLSurface for software-only rendering in EmbedderTest (#21301) 2020-09-21 15:22:03 -07:00
Jenn Magder
8360b13471
Dark mode friendly iOS debugging message (#21277) 2020-09-21 15:07:02 -07:00
xster
3011b14a25
Deprecate Android v1 embedding classes (#20868) 2020-09-21 15:02:02 -07:00
George Wright
7dc2ec2fbf
Split out EmbedderTest{Context,Compositor} to handle software and GL separately (#20962) 2020-09-18 15:37:02 -07:00
LongCatIsLooong
aa96b1ab75
Implement iOS [UITextInput firstRectForRange:] with markedText (#19929) 2020-09-18 14:31:36 -07:00
Matej Knopp
5c9dddc376
Discard wrong size layer tree instead of rendering it (#21179) 2020-09-18 12:37:02 -07:00
Dan Field
fa33c76e01
set old_gen_heap_size to half of available memory on iOS (#20472) 2020-09-18 12:32:02 -07:00