270 Commits

Author SHA1 Message Date
Michael Goderbauer
248cd2ba83 Add isTextField and isFocused flags for iOS (flutter/engine#4316) 2017-11-02 16:02:16 -07:00
Zachary Anderson
9365d7465e Reland: [GN] Don't set dart_host_toolchain (flutter/engine#4314) 2017-11-02 10:04:06 -07:00
Chinmay Garde
d0ec6228a5 Add texture support (eg video, camera) (flutter/engine#4159) 2017-11-02 10:57:29 +01:00
Mikkel Nygaard Ravn
a802554df1 Revert "[GN] Don't set dart_host_toolchain (#4308)" (flutter/engine#4310)
This reverts commit 3dc8394e2ac88cd2bc48ea5b234655017991ff73.
2017-11-02 09:09:15 +01:00
Zachary Anderson
3dc8394e2a [GN] Don't set dart_host_toolchain (flutter/engine#4308) 2017-11-01 13:36:18 -07:00
Michael Goderbauer
dcec1fed2c Identify text fields as such to a11y on Android (flutter/engine#4299)
* Identify text fields as such to a11y on Android

* Add focus flag
2017-11-01 12:59:03 -07:00
Jason Simmons
89290a0c46 Validate UTF-16 input in ParagraphBuilder::addText (flutter/engine#4300)
Fixes https://github.com/flutter/flutter/issues/12772
2017-11-01 11:26:01 -07:00
Ian Hickson
7b19e9157d Add TextPosition.== and hashCode, and some text API docs (flutter/engine#4283) 2017-10-31 10:39:44 -07:00
Michael Goderbauer
49200487c9 Announce the correct new value after increase/decrease has been performed on iOS (flutter/engine#4282) 2017-10-25 16:02:43 -07:00
P.Y. Laligand
277e27cba0 [fuchsia] Account for the new Dart toolchain. (flutter/engine#4271) 2017-10-24 21:30:40 -07:00
xster
6618c30371 Add luminance getter to Color (flutter/engine#4252)
* add luminance getter to color

* tests

* nit
2017-10-24 18:39:54 -07:00
Jason Simmons
7382709eed libtxt: some cleanup (flutter/engine#4268)
* rename glyph_position_x to glyph_lines
* use round instead of roundf
* return a range start/end struct in Paragraph::GetWordBoundary
2017-10-23 17:18:00 -07:00
Michael Goderbauer
88b2b4b5aa Support for accessibility label and hint (flutter/engine#4264)
* Support for accessibility label and hint

* review comments
2017-10-23 16:46:01 -07:00
P.Y. Laligand
3a943b12c3 Update the location of Flutter packages. (flutter/engine#4257) 2017-10-20 14:25:49 -07:00
amirh
34003d8e06 Add isButton to SemanticsFlags.values (flutter/engine#4258) 2017-10-20 14:23:40 -07:00
amirh
db17cfc053 Add a semantic isButton flag (flutter/engine#4254)
https://github.com/flutter/flutter/issues/11992
2017-10-20 13:15:20 -07:00
Ian Hickson
73a218a980 Document the Porter-Duff operators. (flutter/engine#4250) 2017-10-20 10:03:19 -07:00
Ian Hickson
a12cafee59 Documentation improvements - RTL and others (flutter/engine#4248) 2017-10-19 17:30:30 -07:00
P.Y. Laligand
0768d0714e Move //dart to //third_party/dart. (flutter/engine#4245) 2017-10-19 01:20:38 -07:00
Jason Simmons
212249cd2b Export the SkClipOp argument in Canvas.clipRect (flutter/engine#4243) 2017-10-18 16:39:19 -07:00
Yegor
db7ec2ce7e Add alwaysUse24HourFormat and textScaleFactor (flutter/engine#4202)
* systems/settings channel split

* merge textScaleFactor and alwaysUse24HourFormat into flutter/settings channel

* add debugOverrideAlwaysUse24HourFormat

* implement textScaleFactor on iOS

* address comments

* remove debugOverrideAlwaysUse24HourFormat

* clang-format
2017-10-18 16:13:43 -07:00
Siva
a07fffd551 Fix for issue 12526 (flutter/engine#4218)
* Fix for issue 12526

Ensure that child isolates do not clear the dart_ui_state_ field present in the dart controller.

The commit 093a8a4dfd implemented code to reset the dart_ui_state_ back to null when an isolate was being shutdown to ensure there was no use after free issues when the main isolate exeutes Isolate.current.kill() it however it was also clearning the field when a child isolate was shutdown causing SEGVs later.

* Address code format issues.
2017-10-17 14:47:09 -07:00
Chinmay Garde
e10720e089 Expose SkPath::arcTo and SkPath::rArcTo to Dart. (flutter/engine#4222) 2017-10-17 13:53:12 -07:00
P.Y. Laligand
235f07742a Allow the project to be mapped to a location other than //flutter. (flutter/engine#4203)
This is for Fuchsia where we would like it to be located at //third_party/flutter.
2017-10-13 17:00:58 -07:00
Jason Simmons
fc6cd2ae23 libtxt: support the use_test_font flag required by framework tests (flutter/engine#4216)
This registers a test font manager that maps all fonts to the Ahem font
2017-10-13 11:31:35 -07:00
Jason Simmons
b32aaf2510 Remove unnecessary assert in drawAtlas (flutter/engine#4213)
Fixes https://github.com/flutter/flutter/issues/12513
2017-10-13 11:31:24 -07:00
Jason Simmons
224d4abc83 Remove use of a SceneBuilder member after deletion (flutter/engine#4209)
ClearDartWrapper will delete this SceneBuilder, causing deletion of the
LayerBuilder
2017-10-12 13:50:17 -07:00
Jason Simmons
4419ecfa91 libtxt: fix some typos (flutter/engine#4206) 2017-10-12 11:51:50 -07:00
Chinmay Garde
5020651ee0 Make flow::LayerBuilder virtual and plug in the default layer builder. (flutter/engine#4199) 2017-10-11 16:26:18 -07:00
Jason Simmons
0f67acda39 libtxt: support right-to-left text (flutter/engine#4198) 2017-10-11 16:15:57 -07:00
Chinmay Garde
adaa3a0303 Move layer tree construction into flow::LayerBuilder so alternate builders can be plugged in. (flutter/engine#4197) 2017-10-11 12:25:55 -07:00
Alexander Aprelev
582a87b957 Revert "Change kernel platform generation dependency name (#4189)" (flutter/engine#4192)
This reverts commit 9d4e4ace0f57f691d7bde2a3af25b115bb3d8ccb.
2017-10-10 13:34:28 -07:00
Alexander Aprelev
9d4e4ace0f Change kernel platform generation dependency name (flutter/engine#4189)
* Change kernel platform generation dependency name

* Include vmservice which is needed by gen_snapshot for Flutter release build
2017-10-10 13:24:04 -07:00
Alexander Aprelev
d4ab705952 Revert "Revert "Roll dart to pick up change where platform.dill was removed (#4180)" (#4185)" (flutter/engine#4186)
This reverts commit 45eaf7a0ce073d5d830c589b5df0a54ec9902072.

Doing the synchronized roll of Dart into engine as well as into Fuchsia
to prevent Fuchsia breakage.
2017-10-09 11:18:59 -07:00
Adam Barth
45eaf7a0ce Revert "Roll dart to pick up change where platform.dill was removed (#4180)" (flutter/engine#4185)
This reverts commit 1ede0f7c9f2b2e928bdaf8f2a8fd942a764fe581.
2017-10-09 09:13:13 -07:00
Alexander Aprelev
1ede0f7c9f Roll dart to pick up change where platform.dill was removed (flutter/engine#4180)
* Roll dart to pick up change where platform.dill was removed

* Fix flutter patch sdk generation

* Update license hash. No changes to license text.

* Roll dart to pick up a fix for zero-rebuild problem

* Update license hash
2017-10-09 07:29:21 -07:00
Zachary Anderson
95b0e0bc7f Remove daed --assert_initializer flag (flutter/engine#4181) 2017-10-06 14:54:08 -07:00
Jason Simmons
ca07b0046b Provide an entropy source to the Dart engine (flutter/engine#4161)
This is required by the _CryptoUtils class used by the recently repackaged
Dart HTTP libraries
2017-10-02 12:40:29 -07:00
gspencergoog
b29baaed16 Add support for system text scale factor. (flutter/engine#4124)
Adds support for system text scale factor, including hooks for Android system settings changes.  iOS hooks will be added in another PR.
2017-09-29 13:19:06 -07:00
Michael Goderbauer
c1441946b1 Add overlaps method to Rect (flutter/engine#4150)
* Add overlaps method to Rect

* review comment
2017-09-27 17:42:44 -07:00
Adam Barth
80b35ebe57 Update paths to Fuchsia libraries (flutter/engine#4147)
These libraries are in Topaz now.
2017-09-27 13:45:49 -07:00
Ian Hickson
56b4eb63d3 Clamp overflows in Color.lerp. (flutter/engine#4141)
Previously, cases like:

```dart
Color.lerp(const Color(0xFF00FF7F), const Color(0xFF00FFFF), 1.1)
```

...would result in unexpected effects (in this instance, lerping
between these colors with a curve that overshoots would take what
should be a simple animation from pale green to blue and add some
flickering bright green whenever it overshoots).
2017-09-26 11:11:09 -07:00
Jason Simmons
5bd27070dc libtxt: refactor glyph position calculation (flutter/engine#4134)
* Remove padding values in line_heights and glyph_position_x.  Each value
  in glyph_position_x now represents an actual glyph in the layout.

* Remove code intended to handle extra characters beyond the end of the
  last line.  The LineBreaker should ensure that the end of the last run
  matches the end of the last line.

* Return the upstream/downstream affinity of the cursor position in
  GetGlyphPositionAtCoordinate.

* Account for the space at the end of a word wrapped line in
  GetGlyphPositionAtCoordinate / GetCoordinatesForGlyphPosition
2017-09-22 15:15:59 -07:00
P.Y. Laligand
f7307b60cb Adjust to new location of lib/tonic. (flutter/engine#4132) 2017-09-21 14:30:28 -07:00
Ian McKellar
093a8a4dfd Support cleaner Dart isolate shutdown handling. (flutter/engine#4121)
If an isolate shuts down (for example if an app calls
Isolate.current.kill()), the UIDartState* on DartController will refer
to a freed object. This wires through notification that the is shutting
down through to the DartController so it can clean up appropriately.

This also makes gives the vm-service isolate an UIDartState* so that
the shutdown callback can behave correctly.
2017-09-19 12:11:05 -07:00
Ian Hickson
3af1533e03 Add operators to Radius (flutter/engine#4117)
This will make it easier to implement BorderRadius RTL in a manner consistent with EdgeInsets.
2017-09-15 14:52:38 -07:00
George Kulakowski
fb411f977b Rename Magenta to Zircon, along with associated abbreviations (flutter/engine#4114) 2017-09-14 22:49:46 -07:00
Alexander Aprelev
dbf765e81a Reverting to unblock engine roll (flutter/engine#4109)
* Revert "Make Travis happy again (#4101)"

This reverts commit ba1577ac9b10734cdfd4d047dc8c7da88045c15e.

* Revert "Support cleaner Dart isolate shutdown handling. (#4096)"

This reverts commit b8e222f45c183a76a8c4a3f3971ba471a1a139c0.
2017-09-14 12:10:11 -07:00
Ian McKellar
b8e222f45c Support cleaner Dart isolate shutdown handling. (flutter/engine#4096)
If an isolate shuts down (for example if an app calls
Isolate.current.kill()), the UIDartState* on DartController will refer
to a freed object. This wires through notification that the is shutting
down through to the DartController so it can clean up appropriately.
2017-09-13 10:29:21 -07:00
Michael Goderbauer
ac24af87f0 Format all c-like sources with clang-format (flutter/engine#4088)
* format

* license script adaptions

* updated licenses

* review comments
2017-09-12 15:36:20 -07:00