1482 Commits

Author SHA1 Message Date
Yuqian Li
0c645869e3 Revert "Migration to PlatformDispatcher and multi-window #20496" (flutter/engine#21792)
* Revert "Fix documentation build for window changes. (#21780)"

This reverts commit a539d91840d2fbbb4aa07eeed6a92d654db167ab.

* Revert "Migration to PlatformDispatcher and multi-window (#20496)"

This reverts commit a58fec63f196175eedfc5fbaedce9336dab5c508.
2020-10-12 19:26:41 -07:00
nturgut
e73acfbe6e E2e screenshot tests2 (flutter/engine#21383)
* carrying code

* more changes for carrying the code

* rebase changes onto ios-screenshot tests

* adding screenshot capability to text_editing e2e test

* address some comments

* change enable flag for isUnitTestsScreenshotsAvailable

* addressing the reviewer comments

* change the dependency for path

* add to licencense file

* changing goldens commit no. the new commit has the screenshot goldens

* update readme file

* firefox tests needs LUCI changes

* change to release mode since screenshots were taken in release mode

* change window size

* some argument changes

* small comment change

* test the chrome linux tests again

* use roboto font instead of default font

* addressing reviewer comments

* change commit for goldens
2020-10-12 16:25:57 -07:00
Greg Spencer
a539d91840 Fix documentation build for window changes. (flutter/engine#21780)
* Fix documentation build for window changes.

* Add missing interfaces for web_ui
2020-10-12 16:04:05 -07:00
Greg Spencer
a58fec63f1 Migration to PlatformDispatcher and multi-window (flutter/engine#20496)
This is a PR for converting the dart:ui code in the engine to use a multi-window API. The goal here is to convert from the window singleton to an API that has the concept of multiple windows. Also, I'm matching up the new PlatformDispatcher class to talk directly to the PlatformConfiguration class in the engine. I'm not attempting to actually enable creating multiple windows here, just migrate to an API that has a concept of multiple windows. The multi-window API in this PR currently only ever creates one window.

The design doc for this change is here.

The major changes in this PR:

Move the platfom-specific attributes out of Window, and into the new PlatformDispatcher class that holds all of the platform state, so that the platform code need only update the configuration on this class.
Create FlutterView, FlutterWindow, and SingletonFlutterWindow classes to separate out the concepts of a view (of which there may be multiple in a window), a window (of which there may be multiple on a screen, and they host views), and a window where there is only ever expected to be one (this hosts the entire API of the former Window class, and will eventually be the type of the window singleton).
Next step after this PR lands:

Remove the Window class entirely (it is replaced by SingletonFlutterWindow). Some minor changes in the Framework are needed to switch to using SingletonFlutterWindow directly first.

The Window class still exists in this PR, but will be removed as soon as the framework is converted to point to the SingletonFlutterWindow class instead. They share the same API, just have different names (Window is currently a subclass of SingletonFlutterWindow). The intention is that the Window name will be freed up to use as a widget class name in the framework for managing windows. The singleton called window will remain, and keep the same API it has now.
2020-10-09 16:29:16 -07:00
Ferhat
0eab17e473 [web] Add ShaderBuilder, change drawVertices to use builder. (flutter/engine#21716)
* Move shader.dart into shaders directory
* Add Shader builder basic structure and decls
* rewrite drawVertices with ShaderBuilder
* Fix in parameters in fragment shader to use varying for webgl1
2020-10-09 15:52:29 -07:00
Mouad Debbar
ea26f366af [web] Reland Support custom url strategies (flutter/engine#21702) 2020-10-08 14:30:02 -07:00
nturgut
68e27dd17f chrome driver for chrome 86 (flutter/engine#21705) 2020-10-08 13:41:05 -07:00
nturgut
97ab9440d6 fixing the autofill overlay problem (blue area for chrome) (flutter/engine#21610)
* fixing the autofill overlay problem (blue area for chrome)

* addression comments
2020-10-08 10:10:12 -07:00
Dan Field
ad2f8cab17 Revert "[web] Support custom url strategies (#19134)" (flutter/engine#21687)
This reverts commit 17d107f94a2b08697da0a0984f2dfb4ad7ff7fb9.
2020-10-07 21:42:20 -07:00
Mouad Debbar
17d107f94a [web] Support custom url strategies (flutter/engine#19134) 2020-10-07 17:19:07 -07:00
David Worsham
34cb178b92 fuchsia: Don't send ViewportMetrics w/ 0 DPR (flutter/engine#21392) 2020-10-06 17:57:28 -07:00
Ferhat
d29794b8f6 [web] Fix CapsLock keyevent (flutter/engine#21584)
* Fix metaState for Key events for lock modifiers
2020-10-05 12:49:32 -07:00
Yegor
ad9fe6d94d test CkPath.reset() (flutter/engine#21567) 2020-10-05 12:44:33 -07:00
Nolan Scobie
abbd68919d Minor a11y documentation breadcrumbs (flutter/engine#20330)
Adds a reference to RenderObject.describeSemanticsClip to
`SemanticsFlag.isHidden` and a hint that lets readers know that the
`SemanticsNode` rect is specified in local coordinates.
2020-10-02 23:30:23 -07:00
Yegor
eb6b2b69ee web: implement frame timings (flutter/engine#21552)
* web: implement frame timings
2020-10-02 22:05:07 -07:00
Yegor
b62a537c95 Respect the --debug option in Firefox (flutter/engine#21438) 2020-10-02 18:17:02 -07:00
Dan Field
755a82190c Implement Image.clone for CanvasKit (flutter/engine#21555) 2020-10-02 12:57:01 -07:00
Luigi Rosso
0745b89422 Fix for issue flutter/#66502. (flutter/engine#21372) 2020-10-02 09:10:11 -07:00
Ferhat
56c1f06c15 [web] Fix setPreferredOrientations failure on iOS due to NNBD change. (flutter/engine#21531) 2020-10-01 14:00:01 -07:00
Ferhat
442181e3b2 Fix mono quad winding (flutter/engine#21530) 2020-10-01 13:51:38 -07:00
Yegor
81b8c4ac67 re-enable CanvasKit path ops test (flutter/engine#21520)
* re-enable CanvasKit path ops test

* also test Path.combine
2020-09-30 14:30:01 -07:00
Yegor
a347148d5a fix EnginePicture.toImage; implement rawRgba toByteData; add test (flutter/engine#21370) 2020-09-29 12:17:03 -07:00
Paul Berry
d65187e6c2 Remove unnecessary ?s from web_ui. (flutter/engine#21444)
* Remove unnecessary `?`s from web_ui.

In https://dart-review.googlesource.com/c/sdk/+/163841, dart's flow
analysis is being changed so that an assignment like this:

    T? x = <non-nullable value>;

causes `x` to be immediately promoted to type `T`.  This exposed two
instances in which a variable was unnecessarily given a nullable type.
To avoid warnings, we need to fix these two types before
https://dart-review.googlesource.com/c/sdk/+/163841 can land.
2020-09-28 13:58:12 -07:00
Mouad Debbar
585f378429 [web] Respond with null for unimplemented method channels (flutter/engine#21423) 2020-09-25 18:49:41 -07:00
Dan Field
f7bbb7d405 Fix getNextFrame (flutter/engine#21422) 2020-09-25 17:26:59 -07:00
nturgut
03bf20acc4 [web] enable ios safari screenshot tests (flutter/engine#21226)
* enable ios safari screenshot tests

* this is the value used for screenshots in the repo.

* change revision

* fix the error made in the gaps

* do not try to fetch on LUCI

* lunix luci migth break existing prs. only skip fetching for mac

* add a placeholder tests for shadow golden test

* try to use iPhone 11 Pro on LUCI

* change the scale and the smoke test image

* add unmerged goldens PR to tests all the screenshots. will be removed later

* change the goldens lock back to flutter/goldens

* change wrong comment on screenshot tests block

* address reviewer comments

* change the commit number for goldens file

* skip canvas blend mode tests

* debugging LUCI error

* debugging LUCI error printing directory contents

* skip one test, remove the debug logs

* change the revision number to include the correct chrome files
2020-09-25 12:30:57 -07:00
Alexander Brusher
2afe2bffaf Revert "Revert "Adds fuchsia node roles to accessibility bridge updates. (#20385)" (#20936)" (flutter/engine#21367)
This reverts commit 22e1f69704ed0f67b6b57d72197abac4a35f94b3.
2020-09-25 11:07:10 -07:00
Dan Field
5e3ad78d3a Avoid sending a 0 DPR to framework (flutter/engine#21389)
* Avoid sending a 0 DPR to framework

* check width and height as well
2020-09-25 10:35:57 -07:00
Ian Hickson
49b2401dfe Revert "Make drain() consistently asynchronous. (#21062)" (flutter/engine#21391)
This reverts commit 7a237c9b68fc5fc2813c732d316e9cde5a932def.
2020-09-24 18:19:53 -07:00
Ian Hickson
7a237c9b68 Make drain() consistently asynchronous. (flutter/engine#21062) 2020-09-23 22:17:02 -07:00
David Iglesias
6d83eaebe2 [web] Add canUpdateAsMatch to PersistedPlatformView. (flutter/engine#21313) 2020-09-23 21:47:02 -07:00
Dan Field
972e469ebd implement decodeFromPixels (flutter/engine#21298) 2020-09-23 21:42:01 -07:00
Dan Field
3b207ab1f7 isCloneOf for Image (flutter/engine#21371)
* isCloneOf for Image

* Update docs, add missing impl
2020-09-23 21:09:44 -07:00
Yegor
e18520d3f1 web: make a few variables non-null (flutter/engine#21115)
* web: make a few variables non-null
2020-09-23 15:30:57 -07:00
Dan Field
182a38b446 Create an ImageHandle wrapper (flutter/engine#21057)
Allows for reference counting of images before disposal.

This will allow multiple callers to hold a reference to an image and dispose of their reference without disposing the underlying image until all handles have been disposed.

This will be used by the framework to help resolve some of the kludge I was trying to introduce in flutter/flutter#64582
2020-09-23 14:33:29 -07:00
Richard Cai
cf3f9f793a Update docs specifying addPlatformView offset param is not used (flutter/engine#21331)
for Android and iOS and remove offset from scenario_app test for iOS and Android.
2020-09-23 10:37:57 -07:00
nturgut
39dd63661e creating test result directory before running tests (flutter/engine#21324)
* creating test result directory. adding a prepare method to test runner

* addressing reviewer comments
2020-09-22 12:51:14 -07:00
Jonah Williams
587bfccae9 [web] dispatch browser event on flutter/service_worker channel (flutter/engine#21284)
Registering the service worker immediately after the documented has loaded may cause SW initialization to compete with framework initialization. It was recommended to us that we defer the service worker setup until after the framework is done with setup, which should be sometime after the first frame.

To implement this, the binding will dispatch a platform message on startup. This can be listened for in the html document
#66066
2020-09-22 07:37:23 -07:00
Dan Field
aab7bc8fd3 Implement toString for Images on web (flutter/engine#21304) 2020-09-21 17:22:02 -07:00
Yegor
6e408a8264 Make SkCanvas types @anonymous; reduce logging noise (flutter/engine#21297)
* Make SkCanvas types @anonymous; reduce logging noise

* make SkParagraphBuilderNamespace anonymous

* make SkParagraphStyle anonymous
2020-09-21 15:49:09 -07:00
LongCatIsLooong
f7449e0965 Implement iOS [UITextInput firstRectForRange:] with markedText (flutter/engine#19929) 2020-09-18 14:31:36 -07:00
Mouad Debbar
211c775d05 [web] Remove commented import (flutter/engine#21247) 2020-09-17 14:01:30 -07:00
nturgut
f070e26b18 [web] run safari desktop tests on luci (flutter/engine#21228)
* run safari desktop tests on luci

* fix safari issue. focus on dom element when new transform is received. add transform to test cases

* Update text_editing.dart

minor change to retrigger tests (recipe change is merged)
2020-09-17 13:00:06 -07:00
Mouad Debbar
e5c576fb40 [web] Allow updating input configuration while connection is active (flutter/engine#21048) 2020-09-16 08:51:34 -07:00
Thore Goebel
1290089227 Fix x-axis direction in Offset.direction doc (flutter/engine#21208)
Specify that the positive x direction is right, as opposed to left.
2020-09-16 07:57:44 -07:00
Mouad Debbar
11597d5c5f [web] Fix mis-aligned widget spans (flutter/engine#21112) 2020-09-15 12:58:07 -07:00
nturgut
a7b71d9116 running screenshot tests on ios-safari unit tests (flutter/engine#20963)
* running screenshot tests on ios-safari unit tests

* fixing the golden_smoke tests. changes to the documentation

* addressing reviewer comments

* cropping footer from the simulator screenshot. addressing some reviewer comments

* use .dart_tools for recording the screenshots

* fix the usage of the method

* adding TODO's for missing documentation and not supported windows tests

* addressing comments

* changing to incremental counter for file names

* add comment to the counter

* fix anaylze issues

* using takescreenshot method from the iosSimulator.

* address reviewer comments

* fix the scaling issue. disable eronous test

* change the smoke file for top gap 282

* change the variable name for scale factor
2020-09-15 12:36:00 -07:00
Chris Bracken
d3f54773b7 Define _USE_MATH_DEFINES on Windows where needed (flutter/engine#21166) 2020-09-15 08:37:02 -07:00
Chris Bracken
308206ddd1 Remove suppression of null-related warnings (flutter/engine#21157) 2020-09-14 13:37:01 -07:00
Pragya
5b645efd49 Updated ColorMatrix to ColorFilter (flutter/engine#19905) 2020-09-14 11:59:57 -07:00