Commit 2358215
authored
[web] Render in custom target (flutter#37738)
* Introduce FullScreenApplicationDom, and wire it to meta viewport, event handlers and hot restart.
* Move internal stylesheet to HostNode from ViewEmbedder.
* Add setHostStyles and Attribute to ApplicationDom. Use it in the embedder.
* Move HotRestartCacheHandler to its own file.
* Remove Safari hack for visualViewport.
* No need to keep a ref to the viewport meta in full-screen.
* Add applicationDom.attachGlassPane and use it in the Embedder.
* Remove empty method bodies.
* Add attachResourcesHost and use it from the embedder.
* Removed some unused code.
* Some more cleanup.
* Add ResizeObserver JS interop API.
* Add the CustomElementApplicationDom and wire it to the ViewEmbedder.
* Add the DimensionsProvider classes.
* Reimplement engine.window using the DimensionsProvider.
* Delegate window metrics to engine window in html scene object.
* Wire DimensionsProvider into engine.window.
* Moved ApplicationDom into its own subdir.
* Make DimensionsProvider also an Observer. Expose onResize Stream.
* Delegate onResize and dpr from window to DimensionsObserver object.
* Remove or make most ApplicationDom methods private. Expose single initializeHost.
* Hook the new API.
* dart format
* ApplicationDom -> EmbeddingStrategy.
* Attach pointer move events to glassPaneElement
* Use offset positions for mouse events (relative to host element) rather than client (relative to viewport)
* Update TouchAdapter to understand scrolling (simulate offsetX/Y)
* Remove locale change handling from the embedding strategy.
Also, remove DomSubscription handling from the
hot_restart_cache_handler, now that it is not needed.
* Move locale handling from the embedder to the platform dispatcher
* Move some styles from host to glassPane so we are more friendly with external CSS.
* Make analyzer fixes
* Ensure DimensionsProvider is available in tests.
* Initialize the view DimensionsProvider next to where the EmbeddingStrategy is decided (more logical)
* Bring back the logic to support Firefox 83.
* Fix pointer_binding test for new anchor point in the DOM.
* Fix pointer_binding_test in Firefox.
* Add an iterable way of accessing 'rules'
From a CSSStyleSheet object.
Also add the cssText getter for a CSSRule so we can parse it later.
* Merge latest changes to host_node stylesheet.
* Add an id to the StyleSheet element that we add, so it can be selected
later (in tests).
* Use the methods coming from browser_detection.dart to determine the
browser runtime, instead of re-implementing them within the method.
* Merge the Edge stylesheet into the general one.
* Update tests so they can look at the CSS Rules that were added.
* Format test
* Try to use insertRule for -ms-reveal, and fallback in tests.
* Test hot_restart_cache_handler
Simplify API a little bit, make clear method private.
* Test dimensions_provider.
* Test full_page_dimensions_provider
* Test custom_element_dimensions_provider
* Test embedding_strategy. Make getDomCache util public.
* Fixes and tests for *_embedding_strategy.
* Move default text colors to our innermost style inside host_node (apply only to flt-scene-host). Remove code from the embedding strategies, and adjust tests.
* Safari expands shorthand properties in CSSOM.
Check individually for both font-family and font-size in Safari, rather
than font in the host_node_test.
* Add computeEventOffsetToTarget function, and use it.
* Address PR comments.
* Update licenses_flutter.
* Remove DomCSSRuleList class and instead use Iterable of DomCSSRule
* Make the embeddingStrategy final instead of late
* Attach mouse/pointermove events to domWindow.
* Rename DimensionsProvider.onHotRestart to .close, and slightly improve docs.
* Fix compute physicalX/Y for TalkBack events.
Extracted compute function to a helper file.
* Clarify what does (and does not) support 3D transforms in the event_position_helper file.
* Update licenses file1 parent 234ab4c commit 2358215
File tree
26 files changed
+1951
-491
lines changed- ci/licenses_golden
- lib/web_ui
- lib/src
- engine
- html
- pointer_binding
- view_embedder
- dimensions_provider
- embedding_strategy
- test/engine
- view_embedder
- dimensions_provider
- embedding_strategy
26 files changed
+1951
-491
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1962 | 1962 | | |
1963 | 1963 | | |
1964 | 1964 | | |
| 1965 | + | |
1965 | 1966 | | |
1966 | 1967 | | |
1967 | 1968 | | |
| |||
2017 | 2018 | | |
2018 | 2019 | | |
2019 | 2020 | | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
2020 | 2028 | | |
2021 | 2029 | | |
2022 | 2030 | | |
| |||
4413 | 4421 | | |
4414 | 4422 | | |
4415 | 4423 | | |
| 4424 | + | |
4416 | 4425 | | |
4417 | 4426 | | |
4418 | 4427 | | |
| |||
4468 | 4477 | | |
4469 | 4478 | | |
4470 | 4479 | | |
| 4480 | + | |
| 4481 | + | |
| 4482 | + | |
| 4483 | + | |
| 4484 | + | |
| 4485 | + | |
| 4486 | + | |
4471 | 4487 | | |
4472 | 4488 | | |
4473 | 4489 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
173 | 181 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
461 | 462 | | |
462 | 463 | | |
463 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
464 | 468 | | |
465 | 469 | | |
466 | 470 | | |
| |||
1089 | 1093 | | |
1090 | 1094 | | |
1091 | 1095 | | |
| 1096 | + | |
| 1097 | + | |
1092 | 1098 | | |
1093 | 1099 | | |
1094 | 1100 | | |
| |||
1312 | 1318 | | |
1313 | 1319 | | |
1314 | 1320 | | |
1315 | | - | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
1316 | 1325 | | |
1317 | 1326 | | |
1318 | 1327 | | |
| |||
1323 | 1332 | | |
1324 | 1333 | | |
1325 | 1334 | | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
1326 | 1341 | | |
1327 | 1342 | | |
1328 | 1343 | | |
| |||
1420 | 1435 | | |
1421 | 1436 | | |
1422 | 1437 | | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
1423 | 1441 | | |
1424 | 1442 | | |
1425 | | - | |
| 1443 | + | |
1426 | 1444 | | |
1427 | | - | |
1428 | | - | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
1429 | 1507 | | |
1430 | 1508 | | |
1431 | 1509 | | |
| |||
0 commit comments