Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[web] ScreenOrientation singleton #45304

Merged
merged 6 commits into from Sep 18, 2023

Conversation

mdebbar
Copy link
Contributor

@mdebbar mdebbar commented Aug 30, 2023

One more piece moving out of FlutterViewEmbedder.

ScreenOrientation is a singleton class that can be used to control the screen orientation of the browser.

Part of flutter/flutter#134443

@mdebbar mdebbar requested a review from ditman August 30, 2023 21:41
@github-actions github-actions bot added the platform-web Code specifically for the web engine label Aug 30, 2023
Copy link
Member

@ditman ditman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! There's some extra cleanup that can be done (like making the ScreenOrientation values an enum, or the _deviceOrientationToLockType a Map<String, String>, but that's out of scope for this one!

@mdebbar mdebbar added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 13, 2023
@mdebbar
Copy link
Contributor Author

mdebbar commented Sep 13, 2023

LGTM! There's some extra cleanup that can be done (like making the ScreenOrientation values an enum, or the _deviceOrientationToLockType a Map<String, String>, but that's out of scope for this one!

Yep, I thought about that, then decided to keep the PR simple for now.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 13, 2023
@auto-submit
Copy link
Contributor

auto-submit bot commented Sep 13, 2023

auto label is removed for flutter/engine/45304, due to - The status or check suite Linux Web Framework tests has failed. Please fix the issues identified (or deflake) before re-applying this label.

@flutter-dashboard
Copy link

Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change).

If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review.

Changes reported for pull request #45304 at sha 92fc06e

@ditman
Copy link
Member

ditman commented Sep 13, 2023

Goldens? You must be drunk flutter-dashboard!

@ditman
Copy link
Member

ditman commented Sep 13, 2023

(@mdebbar there was a change wrt dithering a couple of weeks ago, not sure how old this branch is, but maybe it needs a rebase so the dithering algorithm doesn't cause golden changes?)

@flutter-dashboard
Copy link

Golden file changes are available for triage from new commit, Click here to view.

Changes reported for pull request #45304 at sha c9894b2

@mdebbar mdebbar added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 18, 2023
@auto-submit auto-submit bot merged commit fd9e68e into flutter:main Sep 18, 2023
25 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 18, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 18, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 18, 2023
…134956)

flutter/engine@be7a039...e1c784e

2023-09-18 skia-flutter-autoroll@skia.org Roll Skia from f8065ca00d0c to 0c990ab9e097 (7 revisions) (flutter/engine#45979)
2023-09-18 mdebbar@google.com [web] ScreenOrientation singleton (flutter/engine#45304)
2023-09-18 mdebbar@google.com [web] De-singletonize MouseCursor for multi-view (flutter/engine#45295)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC bdero@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Mairramer pushed a commit to Mairramer/flutter that referenced this pull request Oct 10, 2023
…lutter#134956)

flutter/engine@be7a039...e1c784e

2023-09-18 skia-flutter-autoroll@skia.org Roll Skia from f8065ca00d0c to 0c990ab9e097 (7 revisions) (flutter/engine#45979)
2023-09-18 mdebbar@google.com [web] ScreenOrientation singleton (flutter/engine#45304)
2023-09-18 mdebbar@google.com [web] De-singletonize MouseCursor for multi-view (flutter/engine#45295)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC bdero@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Update tap_region.dart

Update editable_text.dart
harryterkelsen pushed a commit that referenced this pull request Oct 23, 2023
One more piece moving out of `FlutterViewEmbedder`.

`ScreenOrientation` is a singleton class that can be used to control the screen orientation of the browser.

Part of flutter/flutter#134443
@mdebbar mdebbar deleted the orientation_multi_view branch December 11, 2023 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App platform-web Code specifically for the web engine will affect goldens
Projects
None yet
2 participants