1914 Commits

Author SHA1 Message Date
Michael Goderbauer
3c0932e7af Echo letters and words typed into TextField back (flutter/engine#4574)
Fixes https://github.com/flutter/flutter/issues/13392.
2018-01-22 11:14:12 -08:00
Ali Bitek
96ef7f6c1a Get active Context from the Registrar (flutter/engine#4523) 2018-01-20 08:46:40 +01:00
Alexander Aprelev
6b3e3c6184 Fix typo in main_win. This is follow up https://github.com/flutter/engine/pull/4564 (flutter/engine#4572) 2018-01-19 10:59:19 -08:00
Alexander Aprelev
a8e9231915 Accommodate flutter test --preview-dart-2 on windows and linux (flutter/engine#4564)
* Support .packages option in frontend_server, bundle_path in main_mac.

This is needed to be able to run  in  mode.

* Remove byte store tests

* Remove unused import

* Fix formatting

* Enable flutter test argument passing on win and linux.

* Fix formatting
2018-01-18 16:05:19 -08:00
Abhishek Amit
9cd77fd071 Add API for embedder clients to process platform events (flutter/engine#4549) 2018-01-17 16:59:36 -08:00
Michael Goderbauer
66fa83780d Announce when checked status changes on Android (flutter/engine#4557)
Fixes https://github.com/flutter/flutter/issues/14092
2018-01-16 23:10:17 -08:00
Sarah Zakarias
2ad5b735d0 Mark deprecated API in FlutterDartProject.h as unavailable (flutter/engine#4552) 2018-01-15 13:29:43 +01:00
Michael Goderbauer
2c53613b1f Properly identify CheckBox and RadioButton on Android (flutter/engine#4547) 2018-01-12 15:27:55 -08:00
Michael Goderbauer
0258b3a3a1 Fixes crash on Android when activating Now on Tap (flutter/engine#4536) 2018-01-12 10:22:55 -08:00
Alexander Aprelev
85d050ac98 When running on iOS deduce bundle path during engine initialization. (flutter/engine#4532) 2018-01-10 17:40:47 -08:00
Mikkel Nygaard Ravn
495f8f71f4 Deprecate support for big integers in standard message codec (flutter/engine#4528) 2018-01-09 23:58:45 +01:00
Mehmet Fidanboylu
3d611a011b Fix build break caused by https://github.com/flutter/engine/pull/4491 (flutter/engine#4524) 2018-01-07 07:51:46 -08:00
Mehmet Fidanboylu
354eeb0cf3 Add unwrap to JSONUtil (flutter/engine#4491)
We have a use for this for the internal messaging plugin. Instead of rolling our own, it made sense to add it here especially since it has the mirror functionality (wrap).
2018-01-06 14:32:00 -08:00
Jason Simmons
9ba9bfc0b2 API version check for AccessibilityNodeInfo.setEditable call (flutter/engine#4522)
Fixes https://github.com/flutter/flutter/issues/13896
2018-01-05 14:45:35 -08:00
Michael Goderbauer
ff69f13eb3 Split SemanticsFlags.isDisabled into two (flutter/engine#4517) 2018-01-04 15:15:54 -08:00
Alexander Aprelev
a6d6f56e67 Fix windows build by using lambda capture workaround (flutter/engine#4514)
* Fix windows build by using lambda capture workaround

* clang format, add todo

* clang-format again
2018-01-04 10:41:54 -08:00
Alexander Aprelev
a4ae031706 This adds RPC call to set asset path. (flutter/engine#4323)
* This adds rpc call to simply set asset path.

This is needed when doing hot reload to pick up updated assets.

* Move asset_directory fetch for after view_id. Clean up return. Fix formatting.

* Add SetAssetBundlePath methods implementations for mac and ios

* Fix mac mm

* Fix formatting

* Merge and use nullptr
2018-01-04 09:48:01 -08:00
Sigurd Meldgaard
45bc2a7837 Apply texture transform on Android (flutter/engine#4513)
* Apply transform to textures on android
2018-01-04 16:04:30 +01:00
Siva
04d910f0b1 Add support for --strong option in the engine, create a strong mode version of the platform file (flutter/engine#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
Alexander Aprelev
978613bc5f Revert "Apply transform to textures on android (#4486) (#4507)" (flutter/engine#4510)
This reverts commit 7fb2a833de92afe1d3f15efb5d5349432e2b24df.

This breaks Flutter external_ui test.
2018-01-03 12:37:39 -08:00
Sigurd Meldgaard
7fb2a833de Apply transform to textures on android (#4486) (flutter/engine#4507)
* Apply transform to textures on android
2018-01-03 11:45:28 +01:00
Michael Goderbauer
e863618c08 Add SemanticsFlag.isDisabled (flutter/engine#4503) 2018-01-02 15:57:52 -08:00
Alexander Aprelev
efc621079d Revert "Apply transform to textures on android (#4486)" (flutter/engine#4502)
This reverts commit b4c5318c5f414aa28a3b6a6d21766106b7fb387d.

Original commit caused external_ui integration test failure on Android.
2018-01-02 13:40:27 -08:00
Mikkel Nygaard Ravn
7ec61ad743 Fix API typo (flutter/engine#4487) 2018-01-02 15:32:53 +01:00
Zachary Anderson
5d14a2a64f Revert "Ensure language and country codes are not empty" (flutter/engine#4494) 2017-12-22 15:00:42 -08:00
Zachary Anderson
76a8903f01 Ensure language and country codes are not empty (flutter/engine#4492) 2017-12-22 10:09:02 -08:00
Sigurd Meldgaard
b4c5318c5f Apply transform to textures on android (flutter/engine#4486)
* Apply transform to textures on android

* Use RAII canvas save
2017-12-22 11:15:32 +01:00
Sarah Zakarias
9d4f7464fb Read FlutterAssetsDir from the Android manifest XML file (flutter/engine#4485) 2017-12-21 09:26:16 +01:00
Michael Goderbauer
82869d71a5 A11y nodes with only value or hint are focusable (flutter/engine#4481) 2017-12-20 11:15:10 -08:00
Brian Osman
0c2cf26813 Roll Skia and remove PngPixelSerializer (flutter/engine#4472)
* Roll Skia and remove PngPixelSerializer

* Update licenses
2017-12-18 15:44:54 -05:00
Sarah Zakarias
aedb6d58e5 Read platform kernel blob from asset directory instead of FLX (flutter/engine#4471) 2017-12-18 13:15:01 +01:00
Sarah Zakarias
d8a79eacf9 Select fonts from asset directory instead of FLX (flutter/engine#4464) 2017-12-18 09:01:56 +01:00
Ryan Macnak
dc5714d32b Fix spawnFunction on iOS in debug mode. (flutter/engine#4467)
Issue flutter/flutter#12939
2017-12-15 16:11:09 -08:00
Sarah Zakarias
5b8c89eaf0 Handle Flutter assets outside FLX (flutter/engine#4343) 2017-12-13 10:55:24 +01:00
Michael Goderbauer
9e95f34064 Roll forward: Parameters for SemanticActions; a11y text selection (flutter/engine#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
najeira
0c188ca473 Map iOS touches to Flutter view coordinate system (flutter/engine#4425)
This change ensures that touches are mapped to the Flutter view
co-ordinate system. In the case of a Flutter view that doesn't share the
same origin and orientation as the screen co-ordinate system, touches
were appled in the wrong location. This bug affected Flutter views whose
origin was not the screen origin and Flutter apps running with the
in-call status bar on iPhones other than the iPhone X.
2017-12-12 13:22:53 -08:00
Chris Bracken
7f0f66cf1a Model Android keyboard height as view inset (flutter/engine#4447)
Model top and side system insets as padding and bottom (keyboard) as a
view inset. This avoids applying system insets twice (once as an inset,
once as padding).
2017-12-12 11:04:42 -08:00
Michael Goderbauer
4cc04bfe16 Revert " Add parameters to SemanticActions; implement extend selection for a11y (#4444)" (flutter/engine#4448)
This reverts commit 4fc00d4735d43ef0ab9504111541928a3c2167ea.
2017-12-12 10:53:15 -08:00
Michael Goderbauer
4fc00d4735 Add parameters to SemanticActions; implement extend selection for a11y (flutter/engine#4444) 2017-12-12 10:06:04 -08:00
Jason Simmons
6e8a6af1f8 Check for a detached FlutterNativeView before sending messages (flutter/engine#4445)
Fixes https://github.com/flutter/flutter/issues/13481
2017-12-11 17:15:21 -08:00
Chris Bracken
fd36bd7b22 Support iOS scroll-to-top tap on iPhone X (flutter/engine#4436)
This adds support for scrolling the primary scroll view to the top on
status bar touches, on the iPhone X.

Notes:
1. The iPhone X status bar doesn't change height when in in-call/etc.
   mode, and unlike other iPhones, does scroll to top when in in-call mode.
2. No matter which model of iOS device, the top safe area inset doesn't
   change when in in-call mode. In in-call mode, the OS reduces the app
   view height by 20px off the top, and the double-height 'in-call' status
   bar covers this new inset (outside the view) and there continues to be a
   20px safe area in the app.

On iOS 11, rather than comparing status bar height to a hardcoded 20px
'standard height' we now compare to the top safe area inset (which is
always the standard status bar height, regardless of device). On iOS
versions prior to iOS 11, we use the previous logic.

Fixes flutter/flutter#13439
2017-12-08 19:36:53 -08:00
Chinmay Garde
003e3cce17 Add macros to mark APIs as being deprecated or unavailable. (flutter/engine#4401) 2017-12-08 13:30:45 -08:00
Ben Konyi
5ff8528682 Updated fml to build on Windows. (flutter/engine#4415) 2017-12-08 10:40:10 -08:00
Chris Bracken
34b9f8685b Expose keyboard height as view inset on iOS (flutter/engine#4428)
Keyboard height is now treated as a view inset, which could be used to
shrink the content area of the app as is done in the Material Scaffold,
rather than padding, which is used to indicate content areas where user
interaction should be avoided.
2017-12-07 18:37:46 -08:00
Jason Simmons
271d4be92e Do not report a cursor location if there is no active selection (flutter/engine#4427)
Fixes https://github.com/flutter/flutter/issues/13398
2017-12-07 17:43:51 -08:00
Michael Goderbauer
18e6fd711d A11y cursor movements for text fields on Android (flutter/engine#4419)
* a11y cursor movement by character

* focus fixes

* doc fixes
2017-12-06 15:46:35 -08:00
Chris Bracken
cfc2cf4c3a Set window.viewInsets.bottom to keyboard height on iOS (flutter/engine#4420)
This allows for us to start migrating framework classes (notably
Scaffold) to use window.viewInsets.bottom to get the keyboard height.
Once framework updates have landed, we will land an engine patch to
expose the iOS bottom safe area inset as padding.

This change is already landed for Android.

Related issue: flutter/flutter#12098
2017-12-06 15:06:12 -08:00
Chris Bracken
cac7eba5ea Update the iOS mark region on setTextInputState (flutter/engine#4418)
Previously, we failed to clear/update the mark text range on updates
from the framework. This resulted in a crash if the incoming text value
was shorter than the current mark range when iOS attempts to extract the
mark range substring from the text.

Fixes flutter/flutter#12585
2017-12-06 11:30:14 -08:00
Brian Osman
49808d7687 Disable linear blending on iOS simulator (flutter/engine#4413)
Fixes flutter/flutter#13308

Overlooked this case when I previously removed linear blending. MakeS32 creates a surface with a color space attached (triggering the linear blending behavior). MakeN32 creates a legacy surface (no color space), which matches what the other backend bindings do (including the GL surface factory, and the raster cache).
2017-12-05 08:38:53 -05:00
xster
9d2403ff10 Block image decoding on iOS in the background (flutter/engine#4384)
* Add synchronization to ResourceContext usage

* debug

* Use unique ptr factory

* formatting

* left more notes for future readers
2017-12-01 12:09:00 -08:00