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

Conversation

@cbracken
Copy link
Member

@cbracken cbracken commented Mar 1, 2021

Wraps Win32 IME context management in an RAII container that automates
management via ImmGetContext() and ImmReleaseContext().

Fixup for TODO left behind in #23853.

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 Hixie said 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.
  • The reviewer has submitted any presubmit flakes in this PR using the engine presubmit flakes form before re-triggering the failure.

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

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@google-cla google-cla bot added the cla: yes label Mar 1, 2021
@cbracken
Copy link
Member Author

cbracken commented Mar 1, 2021

Passing re-run of Mac Host Engine: https://ci.chromium.org/ui/p/flutter/builders/try/Mac%20Host%20Engine/21155/overview

(Flake filed)

@cbracken
Copy link
Member Author

cbracken commented Mar 1, 2021

Re: tests. This simply refactors the existing IMM context creation/cleanup.

Copy link

@clarkezone clarkezone left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

LGTM with nit.

Wraps Win32 IME context management in an RAII container that automates
management via ImmGetContext() and ImmReleaseContext().
@cbracken cbracken merged commit 83a776c into flutter:master Mar 2, 2021
@cbracken cbracken deleted the imm-raii-context branch March 2, 2021 18:01
@cbracken
Copy link
Member Author

cbracken commented Mar 2, 2021

Once we extract the UniqueObject template from FML, we could likely replace this code with an instantiation of that.

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 2, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 3, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 3, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 3, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 3, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 3, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 3, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 3, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 3, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 3, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 3, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 3, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 3, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 3, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 4, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 4, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 4, 2021
cbracken added a commit to cbracken/flutter that referenced this pull request Mar 4, 2021
flutter/engine@cd0e543...735876e

2021-03-02 [email protected] Win32: Support Korean input (flutter/engine#24713)
2021-03-02 [email protected] Add RAII wrapper for Win32 IMM context (flutter/engine#24699)

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] on the revert to ensure that a human
is aware of the problem.

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/master/autoroll/README.md
cbracken added a commit to cbracken/flutter that referenced this pull request Mar 4, 2021
flutter/engine@cd0e543...aa3bb5e

2021-03-02 [email protected] [web] Fix painting of last placeholder in paragraph (flutter/engine#24716)
2021-03-02 [email protected] Win32: Support Korean input (flutter/engine#24713)
2021-03-02 [email protected] Add RAII wrapper for Win32 IMM context (flutter/engine#24699)

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] on the revert to ensure that a human
is aware of the problem.

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/master/autoroll/README.md
cbracken added a commit to cbracken/flutter that referenced this pull request Mar 4, 2021
flutter/engine@cd0e543...a5ae18b

2021-03-02 [email protected] [web] Fix pointer events for Wacom pen (flutter/engine#24719)
2021-03-02 [email protected] [web] Fix painting of last placeholder in paragraph (flutter/engine#24716)
2021-03-02 [email protected] Win32: Support Korean input (flutter/engine#24713)
2021-03-02 [email protected] Add RAII wrapper for Win32 IMM context (flutter/engine#24699)

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] on the revert to ensure that a human
is aware of the problem.

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/master/autoroll/README.md
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 4, 2021
cbracken added a commit to flutter/flutter that referenced this pull request Mar 4, 2021
flutter/engine@cd0e543...735876e

2021-03-02 [email protected] Win32: Support Korean input (flutter/engine#24713)
2021-03-02 [email protected] Add RAII wrapper for Win32 IMM context (flutter/engine#24699)

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] on the revert to ensure that a human
is aware of the problem.

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/master/autoroll/README.md
hjfreyer pushed a commit to hjfreyer/engine that referenced this pull request Mar 22, 2021
Wraps Win32 IME context management in an RAII container that automates
management via ImmGetContext() and ImmReleaseContext().
chriscraws pushed a commit to chriscraws/engine that referenced this pull request Mar 23, 2021
Wraps Win32 IME context management in an RAII container that automates
management via ImmGetContext() and ImmReleaseContext().
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.

3 participants