-
Notifications
You must be signed in to change notification settings - Fork 15k
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
refactor: move draggable regions to WebContents #36230
Conversation
|
||
void NativeWindow::AddDraggableRegionProvider( | ||
DraggableRegionProvider* provider) { | ||
if (std::find(draggable_region_providers_.begin(), |
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.
Maybe just use std::set
for draggable_region_providers_
to avoid duplicate items?
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.
The reason I chose std::list
is to preserve ordering. I'm not sure if this really matters, but to be safe, I wanted it to be that the draggable region providers were checked in the order they were inserted.
No Release Notes |
This reverts commit 184ac2b.
Description of Change
Following up from #35007, reapplying the refactors in #35603 and further moving
the draggable regions towards what they're most "tightly" bound to, i.e. the
WebContents.
Checklist
npm test
passesRelease Notes
Notes: none