This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Reintroduce Windows lifecycle with guard for posthumous OnWindowStateEvent
#44344
Merged
Merged
Changes from 3 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
87b8a88
Reintroduce win lifecycle changes
yaakovschectman 7584237
Check for posthumous
yaakovschectman 0631b8a
Format
yaakovschectman d334d04
Move Destroy
yaakovschectman 4d445e2
Format
yaakovschectman 4ce9a69
Merge branch 'main' into rewinlc
yaakovschectman 54b7629
PR comments
yaakovschectman b91b1fa
More comments
yaakovschectman c4ff30c
Merge branch 'main' into rewinlc
yaakovschectman a29e31b
Update shell/platform/windows/windows_lifecycle_manager.cc
yaakovschectman a4351df
Merge branch 'main' into rewinlc
yaakovschectman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -9,6 +9,7 @@ | |||||||||
|
|
||||||||||
| #include <chrono> | ||||||||||
| #include <memory> | ||||||||||
| #include <optional> | ||||||||||
| #include <string> | ||||||||||
|
|
||||||||||
| #include "binary_messenger.h" | ||||||||||
|
|
@@ -84,6 +85,16 @@ class FlutterEngine : public PluginRegistry { | |||||||||
| // once on the platform thread. | ||||||||||
| void SetNextFrameCallback(std::function<void()> callback); | ||||||||||
|
|
||||||||||
| // Called to pass an external window message to the engine for lifecycle | ||||||||||
| // state updates. This does not consume the window message. Non-Flutter | ||||||||||
| // windows must call this method in their WndProc in order to be included in | ||||||||||
| // the logic for application lifecycle state updates. Returns a result when | ||||||||||
| // the message has been consumed. | ||||||||||
|
||||||||||
| // the logic for application lifecycle state updates. Returns a result when | |
| // the message has been consumed. | |
| // the logic for application lifecycle state updates. Returns a result if | |
| // the message should be consumed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -89,6 +89,17 @@ class StubFlutterWindowsApi { | |||||
| // FlutterDesktopPluginRegistrarUnregisterTopLevelWindowProcDelegate. | ||||||
| virtual void PluginRegistrarUnregisterTopLevelWindowProcDelegate( | ||||||
| FlutterDesktopWindowProcCallback delegate) {} | ||||||
|
|
||||||
| // Claled for FlutterDesktopEngineProcessExternalWindowMessage. | ||||||
|
||||||
| // Claled for FlutterDesktopEngineProcessExternalWindowMessage. | |
| // Called for FlutterDesktopEngineProcessExternalWindowMessage. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.