341 Commits

Author SHA1 Message Date
Zachary Anderson
3b4d0378f3
Fix SemanticsUpdate.dispose() native (#4708) 2018-02-26 08:32:40 -08:00
reed-at-google
85a7d603c8 remote tilemode count check, so Skia can add another one (#4692) 2018-02-20 14:05:08 -05:00
Vyacheslav Egorov
03a598358f
Make Paragraph methods really return List<int> if they are declared as such. (#4676)
Changed methods _getPositionForOffset and getWordBoundary to use
Dart_NewListOf(Dart_CoreType_Int, ...).
2018-02-14 19:07:05 +01:00
Jason Simmons
99319a3917
Roll Topaz/Tonic and call Dart_NewListOfType for TextBox lists (#4667)
Fixes https://github.com/flutter/flutter/issues/14555
2018-02-13 15:02:57 -08:00
Michael Goderbauer
36a9c343b7
Add nextId to traversal order (#4666) 2018-02-13 14:27:23 -08:00
Jason Simmons
50f375c359
libtxt: disable font fallback when test font mode is enabled (#4661) 2018-02-13 09:37:48 -08:00
Ryan Macnak
e5a597fb7e
[fuchsia] Decouple common packages from the core snapshot. (#4660) 2018-02-12 14:55:11 -08:00
Greg Spencer
f5a4a93787
Swap setTraversalBefore to setTraversalAfter, since setTraversalBefore is broken. (#4656)
It seems that setTraversalBefore doesn't work as well as setTraversalAfter for some reason, although I'm using them the same way. Some apps would lock up TalkBack when traversing if setTraversalBefore was set, but not with the equivalent setTraversalAfter.

It's not entirely clear why this is, but I'm going with this to at least get it fixed for apps we know about.

Addresses flutter/flutter#14600

See also flutter/flutter#14607
2018-02-12 10:02:25 -08:00
Michael Goderbauer
a00f94582b
Add accessibilityFocus and loseAccessibilityFocus as a11y actions (#4655) 2018-02-09 17:47:52 -08:00
Michael Goderbauer
8ac6f6efa1
Encode scrolling status into tree (#4647) 2018-02-09 15:39:58 -08:00
Alexander Markov
04933f61e9
Make native wrapper classes non-abstract (#4607)
* Make native wrapper classes non-abstract as they are instantiated from native code
* Make constructors of native wrapper classes private
2018-02-09 12:17:36 -08:00
Brian Salomon
58e6c23ece Modernize GrContext creation (#4640) 2018-02-06 13:45:31 -08:00
Zachary Anderson
76d4928b05
Reland: [fuchsia] Enable running from source packages (#4634)
This relands https://github.com/flutter/engine/pull/4629 with a
tonic roll to fix the build.
2018-02-06 10:08:24 -08:00
Ryan Macnak
638af1532a
Some cleanups for building platform.dill. (#4635) 2018-02-05 15:33:55 -08:00
Yegor
6dd49f0695
iOS a11y text entry (~70% of it) (#4575)
* implement iOS text field editing in a11y mode

* address Chinmay's comments

* replace node in child list when changing type
2018-02-05 15:14:13 -08:00
Alexander Aprelev
9bc2efdf47
Roll dart, remove patched_sdk from flutter now that frontend handles patching (#4633)
* Fixes to make https://dart-review.googlesource.com/c/sdk/+/36641 work with Flutter

* Roll dart

* Update license

* Roll dart

* Update license

* Add libraries.json to dependencies
2018-02-05 13:44:16 -08:00
Zachary Anderson
151bb37435
Revert "[fuchsia] Enable running from source packages (#4629)" (#4632)
This reverts commit 8f638591e97b350962001f5af38d2464421ec3dc.
2018-02-02 22:38:49 -08:00
Zachary Anderson
8f638591e9
[fuchsia] Enable running from source packages (#4629) 2018-02-02 15:43:21 -08:00
Greg Spencer
96acd1a383
Adding semantics traversal order support (#4540)
This adds support for semantics traversal ordering.

It is a companion to flutter/flutter#14060, adding support for a sortIndex in the semantics data passed to the engine.

Addresses flutter/flutter#12187
2018-01-30 13:42:12 -08:00
Michael Goderbauer
a1e4f2f991
Add semantic actions for copy, cut, and paste (#4592) 2018-01-26 12:11:38 -08:00
Michael Goderbauer
7c34dfafc9
Adds a11y action for selecting text (and moving cursor) (#4589)
See https://github.com/flutter/flutter/pull/14275 for framework side change.

Also includes some minor clean-ups for consistency. 

Required for https://github.com/flutter/flutter/issues/13469.
2018-01-25 15:00:29 -08:00
Michael Goderbauer
4c82c566ed
a11y: Announce changes to cursor position on Android (#4587) 2018-01-24 16:54:14 -08:00
Michael Goderbauer
e4cabae56f
Add a11y support for selected text (#4584) 2018-01-24 15:08:29 -08:00
Jason Simmons
f458d99e16
Wrapper for matrix image filters (#4567)
Fixes https://github.com/flutter/flutter/issues/14082
2018-01-19 10:01:57 -08:00
Ian Hickson
f7b7506d05
Explain Window metrics better. (#4555) 2018-01-18 20:22:06 -08:00
Ian Hickson
f3f005c457
Analysis cleanup of the Dart in the Engine repo (#4554)
* Analysis cleanup of the Dart in the Engine repo

* Update painting.dart

* Update painting.dart
2018-01-17 09:48:56 -08:00
Ian Hickson
6fee2654f1
Make Canvas cullRect optional and make Rect.largest a static field. (#4551)
Fixes https://github.com/flutter/flutter/issues/7201.

The change from `new Rect.largest()` to `Rect.largest` saves a few
allocations since we'll be using these with every Canvas.
2018-01-16 10:08:08 -08:00
Michael Goderbauer
e7e94c6307
Properly identify CheckBox and RadioButton on Android (#4547) 2018-01-12 15:27:55 -08:00
Brian Osman
e6c117d0fb
When blurring, clamp to image's edge pixels, not to black (#4546) 2018-01-12 16:27:17 -05:00
Ian Hickson
26c3ab08d9
Convert MaskFilter to pure-Dart. (#4534) 2018-01-11 23:25:18 -08:00
amirh
05fe72d068
Revive always using SkPath for physical models (#4537) 2018-01-11 15:11:00 -08:00
Ian Hickson
9536b80781
Offset.direction (#4530)
Since we've got a vector class, and it has a getter for the magnitude,
why not also a getter for the angle.
2018-01-09 22:17:57 -08:00
Michael Goderbauer
16e365e722
Rename SemanticsFlags to SemanticsFlag (#4526)
To align with `SemanticsAction`.
2018-01-09 09:25:52 -08:00
amirh
b7d99da3e2
Revert "Delete the SkPath/SkRRect code duplication in for physical model layers. (#4519)" (#4527)
This reverts commit d8740c70a58ada74aff5b773e2bec9d622c42a97.
2018-01-08 19:25:56 -08:00
amirh
d8740c70a5
Delete the SkPath/SkRRect code duplication in for physical model layers. (#4519) 2018-01-08 16:13:15 -08:00
Jason Simmons
bbefdf1980
Add a Rect.largest constructor equivalent to SkRect::MakeLargest (#4520) 2018-01-05 13:37:23 -08:00
Michael Goderbauer
12e0e38a8b
Split SemanticsFlags.isDisabled into two (#4517) 2018-01-04 15:15:54 -08:00
Siva
0f0b144b03
Add support for --strong option in the engine, create a strong mode version of the platform file (#4504)
* Add a --strong option to the front end server so we can use strong mode with preview-dart-2.

* Plumb the --strong option through the dart controller into the VM.

* - Build a strong version of platform.dill for use with the engine.
- Fix a strong mode static error in the assert statement

* Enable asserts when running debug version even in strong mode.

* Use the correct platform dill file for linking when doing the aot builds.

* Fix formatting issue.
2018-01-03 16:52:24 -08:00
Ian Hickson
fb0cfcd33c
Further improve painting.dart documentation. (#4505) 2018-01-03 16:34:09 -08:00
Michael Goderbauer
26010cf483
Add SemanticsFlag.isDisabled (#4503) 2018-01-02 15:57:52 -08:00
amirh
0b158a6bc4
Engine support for arbitrary shape physical layers (#4488)
* Adjust PhysicalModelLayer to use an abstract shape, and provide concrete RRect and Path shape implementations

* add a pushPhysicalShape to scene_builder and compositing.dart
2017-12-21 15:57:10 -08:00
Ian Hickson
e7a2947700
Specify what image formats are supported in the API docs. (#4483) 2017-12-21 15:07:17 -08:00
Ian Hickson
d8f5797cf7
Clean up lerp() methods and their documentation. (#4478)
Fixes https://github.com/flutter/flutter/issues/12377.
2017-12-20 14:08:37 -08:00
Sarah Zakarias
0545882650
Select fonts from asset directory instead of FLX (#4464) 2017-12-18 09:01:56 +01:00
Zachary Anderson
df18819048
Fix Platform.localeName by setting _Platform._localeClosure (#4450) 2017-12-12 15:01:13 -08:00
Michael Goderbauer
e07eafae1d
Roll forward: Parameters for SemanticActions; a11y text selection (#4452)
Reverts the revert in #4448 with fixes to pass on the bot.

This change will require framework changes in flutter/flutter#13490.
2017-12-12 14:25:45 -08:00
Michael Goderbauer
056fd4597f
Revert " Add parameters to SemanticActions; implement extend selection for a11y (#4444)" (#4448)
This reverts commit 59c3a37e6436d60381d9708113228c83ccc6b7f9.
2017-12-12 10:53:15 -08:00
Michael Goderbauer
59c3a37e64
Add parameters to SemanticActions; implement extend selection for a11y (#4444) 2017-12-12 10:06:04 -08:00
Michael Goderbauer
9d5cd4b12e
Fix typo (#4424) 2017-12-06 16:14:04 -08:00
Michael Goderbauer
fb44dce8c2
A11y cursor movements for text fields on Android (#4419)
* a11y cursor movement by character

* focus fixes

* doc fixes
2017-12-06 15:46:35 -08:00