Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[macOS] Rename viewId to viewIdentifier #52202

Merged
merged 2 commits into from
Apr 18, 2024
Merged

Conversation

dkwingsmt
Copy link
Contributor

@dkwingsmt dkwingsmt commented Apr 17, 2024

This PR adds FlutterViewController with new API viewIdentifier and renames all occasions that mention "viewId" to "viewIdentifier", to align with the requirement for the iOS shell.

A new typedef FlutterViewIdentifier is also added. The problem is, we don't have a file to contain this typedef. Currently I put them in a new file called common.h. I'm open to other suggestions. It has been moved to FlutterViewController.h.

  • Another alternative is to not use the type def, but use int64_t directly. I'm ok with this choice too, since honestly it's just a 64 int.

Also, macOS's definition for kFlutterImplicitViewId has been removed in favor of the one in common/constants.h.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@dkwingsmt dkwingsmt changed the title Rename viewId to viewIdentifier and other documents Rename viewId to viewIdentifier Apr 17, 2024
@dkwingsmt
Copy link
Contributor Author

@cbracken @loic-sharma I should have addressed all comments. I removed isImplicitView, and renamed supposedly all places that mention the view ID to be viewIdentifier (while carefully avoiding the platform view IDs). Can you take a look again?

@dkwingsmt dkwingsmt changed the title Rename viewId to viewIdentifier [macOS] Rename viewId to viewIdentifier Apr 18, 2024
Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

LGTM stamp from a Japanese personal seal

@dkwingsmt dkwingsmt merged commit 6e4a15d into flutter:main Apr 18, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 18, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Apr 19, 2024
…147022)

flutter/engine@61bf47d...6e4a15d

2024-04-18 [email protected] [macOS] Rename viewId to viewIdentifier (flutter/engine#52202)

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 [email protected],[email protected],[email protected] 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://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
gilnobrega pushed a commit to gilnobrega/flutter that referenced this pull request Apr 22, 2024
…lutter#147022)

flutter/engine@61bf47d...6e4a15d

2024-04-18 [email protected] [macOS] Rename viewId to viewIdentifier (flutter/engine#52202)

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 [email protected],[email protected],[email protected] 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://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants