-
Notifications
You must be signed in to change notification settings - Fork 6k
[Windows] Update API for alternative Windows shell platform implementation #11327
Conversation
stuartmorgan-g
left a comment
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.
I wasn't able to spend a lot of time looking at the two patches together so I'm still missing some high-level understanding of the flow. Comments below from looking at this in isolation for now, and I'll look again this weekend if possible.
shell/platform/windows/client_wrapper/flutter_view_controller.cc
Outdated
Show resolved
Hide resolved
shell/platform/windows/client_wrapper/flutter_view_controller.cc
Outdated
Show resolved
Hide resolved
shell/platform/windows/client_wrapper/flutter_view_controller.cc
Outdated
Show resolved
Hide resolved
shell/platform/windows/client_wrapper/include/flutter/flutter_view_controller.h
Outdated
Show resolved
Hide resolved
shell/platform/windows/client_wrapper/include/flutter/flutter_view_controller.h
Outdated
Show resolved
Hide resolved
shell/platform/windows/client_wrapper/include/flutter/flutter_view.h
Outdated
Show resolved
Hide resolved
shell/platform/windows/client_wrapper/flutter_window_controller.cc
Outdated
Show resolved
Hide resolved
|
Since this commit is not merged Instead of Opening an Issue i was asking here that, will it possible to change attributes like title and icon of title bar, displayed or such basic things, with this implementation from attributes form flutter framework code |
There will no longer be framework methods to set all of those properties with this API, because it's no longer necessary; that was a limitation of GLFW. With this structure, setting those things would be done with normal Win32 APIs.
That doesn't currently happen, so this PR won't change anything in that regard.
|
|
I will open issues related to dart side once this pr is merged and tested |
|
All feedback bar one item addressed, merged in ToT. There is a failure in the bots that doesn’t look related. |
|
Will this Exposes Api to Draw Native Textures in Dart code ? |
That is flutter/flutter#38601 This PR has a very specific scope. The place for general desktop or Windows feature requests is the Flutter issue tracker, not this PR; please limit comments here to things directly related to this PR. |
It is, actually; adding/renaming/deleting files requires updates to the golden file used by the license script. You need to apply the diff at the end of the failure output to |
stuartmorgan-g
left a comment
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.
A couple of questions, but mostly just small nits. Looks great!
shell/platform/windows/client_wrapper/include/flutter/flutter_view_controller.h
Outdated
Show resolved
Hide resolved
|
Ok will do |
|
All feedback addressed, gates are now clean. I've also updated the corresponding PR in FDE to pick up the change to using HWND in the wrapper. |
stuartmorgan-g
left a comment
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.
LGTM!
…mplementation (flutter/engine#11327) (#39710) git@github.com:flutter/engine.git/compare/3deb8f5e45e1...51a376d git log 3deb8f5..51a376d --no-merges --oneline 2019-09-03 james@clarkezone.net [Windows] Update API for alternative Windows shell platform implementation (flutter/engine#11327) 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 garyq@google.com 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/+/master/autoroll/README.md
#9835 introduced an alternative Windows shell platform implementation. This PR updates the API with a couple of changes:
In a future world where CoreWindow is supported as a native window type alongside HWNDs there would need to be another flavor of Flutter view.
There is a corresponding PR google/flutter-desktop-embedding#493 to switch the testbed and example projects over. That PR should not be accepted until the win32 implementation is the default for the engine.
There is a small amount of remaining cleanup needed hence this is WIP for now.
Part of flutter/flutter#38600
@stuartmorgan for FYI.