4164 Commits

Author SHA1 Message Date
Greg Spencer
3da07b7cfa Adjust some names for consistency (flutter/engine#32433)
This just changes some of the API names for consistency with the framework APIs (and themselves).
This is a very new method channel (it went in a couple of days ago), so it's not in use yet.

Matching framework PR is flutter/flutter#101378
2022-04-06 09:43:40 -07:00
Chris Yang
ede2fb5e11 Fix a crash when setting clipboardData to null on iOS (flutter/engine#32413) 2022-04-04 19:11:04 -07:00
Chris Bracken
9710156fe2 Fix SemanticsAction naming consistency (flutter/engine#32411)
Removes the `Index` suffix from kMoveCursorForwardByWord and
kMoveCursorBackwardByWord values in the SemanticsAction enum. These were
erroneously copied as-is from the private class members in the dart:ui
implementation in lib/ui/semantics/semantics.dart where the class
members refer to the enum index here. This removes the trailing `Index`
for consistency with the other enum members here.

This is also useful in the context of automated testing for API
consistency between these enums, the ones in dart:ui (native and web
implementations) and the embedder API.

Issue: https://github.com/flutter/flutter/issues/101217
2022-04-04 17:07:05 -07:00
Renzo Olivares
c53ab8fd7a Fix deltas when selection is active and composing begins on MacOS (flutter/engine#32412)
* Fix special character input on a selection

* Add test for composing when selection is active

Co-authored-by: Renzo Olivares <roliv@google.com>
2022-04-04 15:13:06 -07:00
Jason Simmons
a0b860283e Always initialize the _weakFactory in FlutterViewController (flutter/engine#32395)
Fixes https://github.com/flutter/flutter/issues/101209
2022-04-04 12:56:35 -07:00
Chris Yang
fc54e5ecac Set iOS default frame rate to screen max. (flutter/engine#29797) 2022-04-01 14:34:47 -07:00
Tong Mu
aa029368e5 [macOS, Keyboard] Derive keyboard layout using printable information from system (flutter/engine#32152)
* Impl

Remove log

add sync; clean code

Format

* Impl

* New Impl

* Fix dead key

* Rename to goals and clues

* CFRelease source

* Move to view controller

* No global

* First-phase

* No weak in dealloc

* Tests

* One more test

* Format

* Format

* Docs

* Tests

* Docs

* Format

* Fix compile

* Compile

* Add channel test

* Format

* Fix comments

* Fix keycodes

* Fix namespaces

* Format

* strlcpy
2022-04-01 11:57:21 -07:00
Kevin Lubick
cdd2946003 Fix includes of SkColorSpace et al (flutter/engine#32382) 2022-04-01 10:59:23 -07:00
Kaushik Iska
a0f03a0220 Refactor drawing to offscreen surface (flutter/engine#32338) 2022-04-01 05:40:36 -04:00
ColdPaleLight
8a886fa8a5 Let FlutterActivity/Fragment/FragmentActivity support dart entrypoint args (flutter/engine#30709) 2022-03-31 22:21:01 -07:00
ColdPaleLight
31e332ee32 Tuning resource cache max bytes in lightweight engine scenarios (flutter/engine#32156) 2022-03-31 21:11:05 -07:00
Tong Mu
60a3850cf5 [Linux, Keyboard] Make keyboard tests use unique_ptr and vector (flutter/engine#32372)
* Tester

* redispatched

* Correct events

* Format

* CallRecord

* nonnulaable call_records

* dispatch unique_ptr

* Remove print

* format

* Remove print

* Update shell/platform/linux/fl_keyboard_manager.h

Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>

Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>
2022-03-31 19:34:02 -07:00
Matej Knopp
190cee38d1 Specify clip alignment for partial repaint (flutter/engine#31359)
* Specify clip alignment for partial repaint
2022-03-31 23:53:42 +02:00
Renzo Olivares
9f1f275090 Macos deltas composing fix (flutter/engine#32345)
* send correct composing region when composing text - deltas

* Add composing test and fix existing test

Co-authored-by: Renzo Olivares <roliv@google.com>
2022-03-31 13:51:17 -07:00
utzcoz
35632b233b Replace TestUtil#setApiVersion with Robolectric's sdk in Config (flutter/engine#32137) 2022-03-31 13:50:04 -07:00
WenJingRui
15bc6bd60f [iOS] Ensure the keyboard bottom inset is zero when keyboard dismiss. (flutter/engine#31982) 2022-03-31 12:30:04 -07:00
Greg Spencer
b52c5a9fe5 Add Menu channel for rendering system menus with native APIs on macOS. (flutter/engine#32358) 2022-03-31 10:30:03 -07:00
Tamir Duberstein
419da59a4f Reference canonical fuchsia.io constants (flutter/engine#32336)
These aliases are in the process of being removed.
2022-03-31 08:29:15 -07:00
Emmanuel Garcia
34f36011c5 Fix reattachment of platform views after a device rotation (flutter/engine#32331) 2022-03-30 13:35:07 -07:00
Chinmay Garde
351494f717 Add support for images in display lists. (flutter/engine#32268) 2022-03-30 13:31:37 -07:00
Tong Mu
b0de1fa20e [macOS, Keyboard] Channel responder calls callback on duplicate modifiers (flutter/engine#32302) 2022-03-28 18:39:44 -07:00
godofredoc
c1b58c4c22 Targets to generate macos gen snapshot. (flutter/engine#31950) 2022-03-28 18:25:03 -07:00
Tong Mu
13e62bd9c7 [Linux, Keyboard] Convert duplicate down events to repeat events (flutter/engine#32261) 2022-03-25 16:36:08 -07:00
Tong Mu
9d800cc563 [macOS, Keyboard] Enqueue event processing (flutter/engine#32120)
* Impl

Remove log

add sync; clean code

Format

* Docs

* Tests

* Apply suggestions from code review

Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>

Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>
2022-03-25 15:23:27 -07:00
chunhtai
fadd742bfe ios text input plugin ignores selection calls when interactive selection is disabled (flutter/engine#32223)
* ios text input plugin ignores selection calls when interactive selection is disabled

* typo
2022-03-25 13:14:11 -07:00
Tamir Duberstein
ec3cbc1635 Explicitly cast fuchsia.io constants to uint32_t (flutter/engine#32250) 2022-03-24 15:35:03 -07:00
ColdPaleLight
5850d41dd0 Make sure that 'BeginFrame' and 'EndFrame' of the 'ExternalViewEmbedder' are paired (flutter/engine#32058) 2022-03-24 14:25:03 -07:00
Gary Qian
0422046115 Revert "Delete io.flutter.app android v1 embedding" (flutter/engine#32232) 2022-03-24 00:10:04 -07:00
Gary Qian
08cef2ee55 Delete io.flutter.app android v1 embedding (flutter/engine#32074) 2022-03-23 20:22:54 -07:00
Renzo Olivares
47fcfe0b21 Fix entering newline on deltas for windows (flutter/engine#32195)
* Fix entering newline

* utf8toutf16

* formatting

* Address reviews

* send *model“

* capture oldtext and selection before newline is added to model

* use model vs _active_model_ for consistency

* Formatting

* updates

Co-authored-by: Renzo Olivares <roliv@google.com>
2022-03-23 12:02:13 -07:00
Camille Simon
5b4339f41a Revert "Remove usages of Android's OnSystemUiVisibilityChangeListener (#30931)" (flutter/engine#32217)
This reverts commit b077eda4caae4f5efa402af88632cea6e7aaa0fe.
2022-03-23 10:47:15 -07:00
Chinmay Garde
3088a62e29 Allow surface implementations to control when the raster cache may be enabled. (flutter/engine#32213) 2022-03-23 10:23:14 -07:00
Emmanuel Garcia
eb5ac3144d Support software rendering when textures are used (flutter/engine#32178) 2022-03-22 14:10:10 -07:00
Camille Simon
b077eda4ca Remove usages of Android's OnSystemUiVisibilityChangeListener (flutter/engine#30931) 2022-03-22 14:00:11 -07:00
Renzo Olivares
0d9b02f227 Linux deltas double free and newline fix (flutter/engine#32168)
* Fix double free

* Fix entering a newline

* Formatting

Co-authored-by: Renzo Olivares <roliv@google.com>
2022-03-22 12:13:13 -07:00
ColdPaleLight
9af8b0bf05 Fix crash about 'SkiaUnrefQueue::Drain' is called after 'IOManager' reset (flutter/engine#32106) 2022-03-21 14:45:10 -07:00
Dan Field
f396ea98b7 Enable MSAA behind a flag for Android GL, add TODOs for other platforms (flutter/engine#32128) 2022-03-21 11:10:05 -07:00
Chris Yang
840af99590 Make Get GetVsyncWaiter return weak_ptr to prevent dangling pointer crash (flutter/engine#32121) 2022-03-21 11:05:05 -07:00
Zachary Anderson
1f2acee85b Adds a plist flag for Impeller (flutter/engine#32157) 2022-03-21 09:35:26 -07:00
ColdPaleLight
05bb17d606 Always update the latest frame target time when the 'Animator::Render' method is called (flutter/engine#31973) 2022-03-21 09:35:02 -07:00
Emmanuel Garcia
77ddaf3f09 Handle case where platform view getView() returns null (flutter/engine#32131) 2022-03-19 10:05:11 -07:00
LongCatIsLooong
ddadbbc372 [macOS TextInputPlugin] Reactivate input context on key event (flutter/engine#32117) 2022-03-18 15:10:10 -07:00
xiaoxiaowesley
24fd333ce6 Fix iOS keyboard physical keyboard doesn't work in add to app (flutter/engine#32098) 2022-03-18 07:10:09 -07:00
Wu Zhong
6b27162f6a [iOS] Fixes state restoration not work (flutter/engine#31511) 2022-03-17 21:55:07 -07:00
gaaclarke
eb45cf1c9d Fixed image generator registry usage with spawn. (flutter/engine#31622) 2022-03-17 13:10:11 -07:00
ColdPaleLight
4ea096162f Disable several tests due to flakiness (flutter/engine#32059) 2022-03-17 03:55:09 -07:00
LongCatIsLooong
8e2d6777d1 [macOS] Forward key events to NSTextInputContext when there's composing text (flutter/engine#32051) 2022-03-15 21:15:09 -07:00
Dan Field
57f4b8e838 Make tracing safe (flutter/engine#32042) 2022-03-15 21:10:11 -07:00
eggfly
f3efac3388 [windows] Support win_debug_x86 compilation target in engine (flutter/engine#30417) 2022-03-15 20:10:10 -07:00
Dan Field
3a0d0b6e36 Support stencil buffers on OpenGL for Windows and Android (flutter/engine#31967) 2022-03-15 16:50:07 -07:00