Commit Graph

3034 Commits

Author SHA1 Message Date
Chinmay Garde
848dc59f89 Setup GN rules to package embedder dylib as a Mac framework where supported. (flutter/engine#4270) 2017-10-24 12:50:13 -07:00
Chris Bracken
a8b5631035 Eliminate dependency on chromium build tools repo (flutter/engine#4269)
The hermetic Xcode tooling in that repo is not yet easily usable for
Xcode 9. There are two main issues:

1. The tooling currently assumes that macOS host builds should use
   Xcode 8, whereas iOS builds should use Xcode 9. Flutter builds should
   use Xcode 9 in all cases.
2. The tooling currently includes a bail-out condition for iOS builds
   that exits non-zero immediately (Chrome hasn't yet migrated its iOS
   build to this tooling).

In the meantime, I've manually updated the bot infra with Xcode 9 and
we'll continue to use the current find_xcode.py tooling until Chrome's
new Mac/iOS tooling is ready.
2017-10-24 10:17:35 -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
Alexander Aprelev
20493aaa5e Roll dart to pick up fix for diagnostic server (flutter/engine#4266)
* Roll dart to pick up fix for diagnostic server

* Fix runUnaryGuarded, runBinaryGuarded calls

* Revert changes to runUnaryGuarded, runBinaryGuarded as they seem to be local-only, perhaps dependent on version of analyzer

* Update third_party license hash. No changes to licenses
2017-10-23 16:02:24 -07:00
Jason Simmons
506f2285e0 Add _updateUserSettingsData to the Dart entry points (flutter/engine#4261) 2017-10-23 09:40:35 -07:00
Zachary Anderson
8f1fbe7481 Pass missing parameter. (flutter/engine#4260) 2017-10-23 07:47:37 -07:00
Jason Simmons
87a0a52941 libtxt: record metrics for each font used within a run (flutter/engine#4259) 2017-10-20 14:45:52 -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
Jason Simmons
65a33037ac libtxt: better accuracy for text justification (flutter/engine#4255)
* do not reset the justify offset after each run within a line
* track word start/end ranges relative to the start of the text instead of the line
2017-10-20 11:50:21 -07:00
amirh
dfcfcd96e9 Revert "Move channel and codec related files to common" (flutter/engine#4256)
* Revert "Pass option to reuse an existing runtime controller (#4253)"

This reverts commit c281542231.

* Revert "Document the Porter-Duff operators. (#4250)"

This reverts commit 73a218a980.

* Revert "Move channel and codec related files to common (#4225)"

This reverts commit 8a687cb332.
2017-10-20 11:44:56 -07:00
Zachary Anderson
c281542231 Pass option to reuse an existing runtime controller (flutter/engine#4253) 2017-10-20 10:17:21 -07:00
Ian Hickson
73a218a980 Document the Porter-Duff operators. (flutter/engine#4250) 2017-10-20 10:03:19 -07:00
krisgiesing
8a687cb332 Move channel and codec related files to common (flutter/engine#4225)
* Move channel and codec related files to common

This is in preparation for implementing channel and plugin support
for macOS desktop builds.
2017-10-20 09:57:14 -07:00
Ian Hickson
a12cafee59 Documentation improvements - RTL and others (flutter/engine#4248) 2017-10-19 17:30:30 -07:00
Michael Goderbauer
e8ca737328 Set AccessibilityFocus (flutter/engine#4249)
This ensures that accessibility hints are played properly.
2017-10-19 15:09:37 -07:00
5u3it
afbc193bde Native keyboard behavior update for multiline input (flutter/engine#4234)
Use sentence capitalization for non-obscuretext fields of TextInputType.text
and TextInputType.multiline on iOS and Android.
2017-10-19 13:56:35 -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
amirh
22b9ed16b5 Support accessibility announcements in the iOS accessibility_bridge (flutter/engine#4244) 2017-10-18 16:37:52 -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
Zachary Anderson
268fa25fff Allow a non-main entrypoint (flutter/engine#4238) 2017-10-18 14:19:28 -07:00
Jason Simmons
aeb54d46dc libtxt: handle newlines during invocation of the minikin line breaker (flutter/engine#4237)
minikin::LineBreaker does not convert newline characters into line breaks
in its output.  Previously libtxt's version of LineBreaker container a patch
that added a large width offset for a newline in order to force wrapping to
the next line.  This works if the offset exceeds the paragraph's width
constraint.  But if the paragraph is laid out with infinite width, then the
text after the newline will continue on the current output line.

This change separates the paragraph's text into newline delimited blocks and
feeds each block separately to the minikin LineBreaker.

Also, libtxt was breaking the input styled text runs at newline boundaries.
This is no longer necessary.
2017-10-18 14:14:02 -07:00
Adam Barth
898f5afa3e Make flutter_app's output_name work like other templates (flutter/engine#4236)
The output_name property of a template is typically relative to the
root_build_dir rather than the target_gen_dir. This patch makes flutter_app
consistent with this pattern.
2017-10-18 14:11:48 -07:00
Chris Bracken
1591262717 Manually specify iphonesimulator SDK in xcodebuild-arguments (flutter/engine#4242) 2017-10-18 13:34:38 -07:00
amirh
897c86bce9 make AccessibilityBridge#mOwner final (flutter/engine#4235) 2017-10-18 13:25:07 -07:00
Chris Bracken
e6c37be181 Use iphonesimulator SDK for Obj-C doc generation (flutter/engine#4241)
See: https://github.com/realm/jazzy/issues/791
2017-10-18 13:23:13 -07:00
Chris Bracken
91ce24e23e Specify iOS SDK when generating Obj-C docs (flutter/engine#4240) 2017-10-18 13:04:33 -07:00
Adam Barth
559466199d Add Fuchsia package() declaration (flutter/engine#4239)
This declaration makes it easier for Fuchsia to include Flutter in the system
image.
2017-10-18 11:23:46 -07:00
amirh
faa7964af3 Support accessibility announcements in the Android AccessibilityBridge (flutter/engine#4232) 2017-10-18 11:10:14 -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
Zachary Anderson
b4193daaf9 Make Engine::RunBundle* reuse an existing RuntimeController (flutter/engine#4229) 2017-10-17 13:44:09 -07:00
Chris Bracken
b1614258dc Add dependency on chromium/src/build for Mac/iOS build (flutter/engine#4224)
* Add dependency on chromium/src/build for Mac/iOS build

Preparation for migrating to mac_toolchain.py for installing/configuring
Xcode versions on the Mac build bots.

* Exclude third_party/chromium_build from licence script

It's used only at build time to fetch and install the correct Xcode
version.
2017-10-17 11:07:54 -07:00
Sarah Zakarias
f7660f8d9c Read snapshot directly from data dir instead of FLX (flutter/engine#4214) 2017-10-17 15:06:03 +02:00
Chinmay Garde
0226fef0e6 Fix build breakage in the iOS software backend due to Skia update. (flutter/engine#4223) 2017-10-16 16:43:43 -07:00
Jason Simmons
df55d4f337 libtxt: make the min/max intrinsic width calculations match expectations of the framework (flutter/engine#4220)
maxIntrinsicWidth is the sum of the width of all lines in the input
(if the width were any smaller, the renderer might have to wrap a line)

minIntrinsicWidth is the maximum width of a word (if the paragraph were
any narrower, the renderer would have to truncate a word)
2017-10-16 15:31:15 -07:00
Alexander Aprelev
16934d4f9e Put back ConfigureBundle. (flutter/engine#4219)
It was accidently removed in 948a60c83d.
2017-10-15 11:31:26 -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
Zachary Anderson
9b1c0f80f4 [Android] Lazily create the rasterizer and platform surface (flutter/engine#4207) 2017-10-12 15:38:28 -07:00
P.Y. Laligand
281c792527 Add empty pubspec.yaml files. (flutter/engine#4212)
They help the analysis service identify packages and are now mandatory on Fuchsia.
2017-10-12 14:46:51 -07:00
Jason Simmons
a0b633145f Remove obsolete text_align header from the libtxt benchmarks (flutter/engine#4211) 2017-10-12 13:50:27 -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
e069095af0 Remove AndroidSurface::SetFlutterView (flutter/engine#4208)
This was used by AndroidSurfaceSoftware but is now obsolete
2017-10-12 13:49:56 -07:00
Alexander Aprelev
dcdf709491 Make sure we await for the file writing to complete before reporting that compilation is done. (flutter/engine#4210) 2017-10-12 13:39:19 -07:00
Jason Simmons
4419ecfa91 libtxt: fix some typos (flutter/engine#4206) 2017-10-12 11:51:50 -07:00