721 Commits

Author SHA1 Message Date
Miguel Beltran
d0c2418dfe
Add support for Increase Contrast on iOS (#15343) 2020-02-22 14:04:04 -08:00
Ryan Macnak
930a80ac86
Fix some compiler warnings in newer versions of Clang. (#16733) 2020-02-21 12:57:06 -08:00
xster
1b73784945
fix param (#16694) 2020-02-19 15:06:06 -08:00
Chris Yang
5fb0116d62
iOS platform view gesture blocking policy. (#15940) 2020-02-11 15:34:59 -08:00
Dan Field
d589ddea68
Fix text range logic for a11y (#16496)
Make sure that a text range at the end of the string is still valid.
2020-02-07 12:20:30 -08:00
gaaclarke
76b291a659
Added a plugin method that gets called when the engine is about to be deleted (#16336) 2020-02-05 16:12:16 -08:00
gaaclarke
036c370c34
Copied Apple's semantics for switches, made checkboxes the same. (#16211) 2020-02-05 10:13:31 -08:00
stuartmorgan
44f24bd980
Fix delete of entire selection in macOS text input (#16276)
Fixes a bug where deleteBackward was checking for being at the start of
the text before checking for a non-empty selection, breaking deletion
when the entire text field was selected.

Also removes an (incorrect) post-deletion position update that was
redundant with code in insertText:replacementRange:, and thus having no
effect.

Fixes https://github.com/flutter/flutter/issues/46150
2020-02-03 15:22:44 -08:00
Dan Field
447b022ae5
Change NSLog to FML_DLOG (#16331) 2020-02-03 10:07:59 -08:00
Chinmay Garde
f7b78e001d
Remove all uses of the redundant flutter_root variable. (#16311)
This was only necessary when the Engine had to build in multiple buildroots
where the sources where checked out at different paths relative to the
buildroot. This is no longer the case and there are already cases GN rules
have been written that mix and match variable usage with the direct
specification of the path to the Flutter sources relative to the sole buildroot.
2020-01-31 21:49:48 -08:00
gaaclarke
71de21c7e7
Started coalescing updates to viewport metrics after foregrounding the app. (#16270) 2020-01-31 09:31:27 -08:00
Chris Yang
ec32966e03
Revert "Always make gpu thread different from platform thread regardless of platform view (#16068)" (#16161)
This reverts commit 0889e97889c80adfc260ada8d0b3b78a8f63bc06.
2020-01-28 15:12:25 -08:00
Chris Yang
0889e97889
Always make gpu thread different from platform thread regardless of platform view (#16068) 2020-01-28 11:36:43 -08:00
Dan Field
89f3471fa7
the the fix (#15973) 2020-01-24 12:43:32 -08:00
Wu Zhong
45fe095d09 Fixes FlutterCallbackInfomation leaks (#15089)
See: flutter/flutter#46750
2020-01-23 16:33:26 -08:00
Wu Zhong
e9be397484 Fixes oc leaks in platform plugin (#15041)
Some objc objects are not released in the iOS embedder. This fixes a
subset of those leaks in FlutterPlatformPlugin.mm.
2020-01-23 16:32:31 -08:00
Wu Zhong
439a21816e Fixes labelPrefix memory leak in FlutterEngine (#14674) 2020-01-23 14:07:51 -08:00
Tan Jay Jun
81011362d3 Use iOS 13 dark content status bar style (#13119) 2020-01-15 11:07:28 -08:00
Wu Zhong
7ef88f85d5 Fixes leak of url in FlutterObservatoryPublisher (#14822) 2020-01-09 18:08:03 -08:00
Chris Bracken
23df3e6bcb
Revert "Add support for on/off switch labels when built on iOS 13. (#12467)" (#15370)
Broke a fake implementation of Accessibility features in the framework.
While this change is unlikely to break any users in the wild, this is a
breaking change by the standards set out in our documentation and
should follow the breaking change announcement process. Details can be
found at https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes.

The error in question:

    Missing concrete implementation of 'getter AccessibilityFeatures.onOffSwitchLabels' • packages/flutter_test/test/window_test.dart:252:7 • non_abstract_class_inherits_abstract_member

This reverts commit d12f2a609635d18ee89547131ff0a11eca59266c.
2020-01-09 10:33:51 -08:00
chunhtai
7a27e75c67
Add shell api to set default for windows data (#14002) 2020-01-08 19:36:10 -08:00
brandondiamond
d12f2a6096 Add support for on/off switch labels when built on iOS 13. (#12467) 2020-01-08 18:26:44 -08:00
Wu Zhong
9c1bd8aee6 Fixes Objective-C objects memory leaks (#14326)
Fixes CALayer memory leaks in file FlutterPlatformViews_Internal.mm,FlutterPlatformViews.mm

flutter/flutter#46750
2019-12-18 15:32:44 -08:00
Wu Zhong
d2923801bb Fix comments of iOS status bar height constant (#14496) 2019-12-15 12:34:21 -08:00
Justin McCandless
a7b6ee58a2
Smart quote/dash configuration support in iOS (#13863)
Support for UITextSmartDashesType and UITextSmartQuotesType in iOS
2019-12-12 10:54:31 -05:00
xster
fc8cafb3c6
objcdoc fix for some ambiguity (#14367) 2019-12-11 16:43:22 -08:00
Wu Zhong
9e4c6ad40c Fix CGMutablePathRef memory leaks when the path is invalid. (#14275) 2019-12-11 15:52:29 -08:00
Jim Graham
85953615eb
Conditionally use offscreen root surface only when needed
Currently helps primarily on iOS when no BackdropFilter is present by lowering energy usage
2019-12-11 15:10:55 -08:00
gaaclarke
84497ba495
Started setting the FlutterOverlayView's bounds when it gets added to its superview. (#14018) 2019-12-05 13:53:07 -08:00
liyuqian
84bf72917c
Revert PRs to unblock David and Jim's work (#14088)
* Revert "Add flow test fixtures and tests (#13986)"

This reverts commit 620f5281b819f304e8e9e945222e26b17b087cc3.

* Revert "Dynamically determine whether to use offscreen surface based on need (#13976)"

This reverts commit a86ef946563b020108320bbfb974bf7343284fd3.
2019-12-03 12:02:37 -08:00
stuartmorgan
063efce92b Report backing store changes in the macOS view (#13933) 2019-12-02 16:33:04 -08:00
Francisco Magdaleno
a68805bcf8
Listen to keyUp event on meta modified keys (#13984) 2019-12-02 16:17:19 -08:00
Jim Graham
a86ef94656
Dynamically determine whether to use offscreen surface based on need (#13976)
Only use an offscreen surface on iOS if a layer which reads back from the destination surface, such as BackdropFilter, is present.
2019-11-27 15:01:25 -08:00
Gary Qian
bcb826759d
Revert "Do not default to downstream affinity on iOS insertText (#13852)" (#14053)
This reverts commit 0d60e1a324c8f17617855f4cfe7287368e15f3dd.
2019-11-28 07:34:40 +09:00
神楽坂花火
f61bec8467 Pass "null" when copy data is null to iOS pasteboard.string (#14046) 2019-11-27 23:46:30 +09:00
Dan Field
c139def52f
Avoid retaining self in block (#14022) 2019-11-26 14:47:00 -08:00
gaaclarke
27fa60793b
Added docstring for FlutterOverlayView. (#14019) 2019-11-26 13:10:24 -08:00
Francisco Magdaleno
c0db9aa11f
Remove device independent mask (#14010) 2019-11-25 14:55:12 -08:00
gaaclarke
97a23a80e1
Made a way to turn off the OpenGL operations on the IO thread for backgrounded apps (#13908) 2019-11-22 14:08:33 -08:00
Gary Qian
0d60e1a324
Do not default to downstream affinity on iOS insertText (#13852) 2019-11-22 14:02:50 -08:00
chunhtai
132d38cd22
Moves pointer event sanitizing to engine. (#13697)
* Moves pointer event sanitizing to engine

* fix comment format

* fix formatting

* addressing comment

* fix format

* fix format

* addressing comment
2019-11-19 09:48:25 -08:00
Todd Volkert
762294cf2d
Revert "RendererContextSwitch guard flutter's gl context rework. (#13812)" (#13906)
This reverts commit f456423cfb820d07bb36e9a8979e3d75cc9d8d76.

This is being reverted because it caused flutter/flutter#45098
(images don't load on iOS).
2019-11-18 18:28:04 -08:00
Darren Austin
5b10fa35b1
Guard against orphaned semantic objects from referencing dead accessibility bridge on iOS (#13857)
* Guard against orphaned semantic objects trying to reference a dead bridge on iOS.

* Switched back to a function instead of a macro for checking the bridge.

* Fixed some formatting issues.
2019-11-14 12:16:02 -08:00
Chris Yang
f456423cfb
RendererContextSwitch guard flutter's gl context rework. (#13812) 2019-11-14 11:50:45 -08:00
chunhtai
1f1e2ba58e
reland add lifecycle enum (#13767)
This reverts commit 8ebb318401344793daa10c3bec97c34891cf7cc8.
2019-11-13 11:26:25 -08:00
Chris Yang
6d66993b1d
Revert "Reland "Guarding EAGLContext used by Flutter #13314" (#13759)" (#13788)
This reverts commit 2dcfaaeb5d3caee2bf7488e90abadf0456f43922.
2019-11-11 17:17:18 -08:00
Chris Yang
2dcfaaeb5d
Reland "Guarding EAGLContext used by Flutter #13314" (#13759) 2019-11-08 20:09:18 -08:00
Chris Yang
f5754357b6
Revert "Reland "Guarding EAGLContext used by Flutter #13314" (#13755)" (#13757)
This reverts commit 618e6666ced77bf497311876fbe968c6b9d72041.
2019-11-08 13:44:29 -08:00
Chris Yang
618e6666ce
Reland "Guarding EAGLContext used by Flutter #13314" (#13755) 2019-11-08 12:26:48 -08:00
Chris Yang
2036530c4d
Revert "Always use IOSGLContextSwitch to access EAGLContexts to prevent plugins from polluting Flutter's EAGLContext (#13314)" (#13753) 2019-11-08 10:59:45 -08:00