Skip to content
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

view: add ResizeArea class #15752

Merged
merged 1 commit into from Nov 21, 2018
Merged

view: add ResizeArea class #15752

merged 1 commit into from Nov 21, 2018

Conversation

zcbenz
Copy link
Member

@zcbenz zcbenz commented Nov 19, 2018

Description of Change

Add JS bindings for the views::ResizeArea class:
https://cs.chromium.org/chromium/src/ui/views/controls/resize_area.h?sq=package:chromium&g=0&l=18

Hidden by the enable_view_api flag.

Notes: no-notes

@zcbenz zcbenz requested a review from a team November 19, 2018 06:54
// Constructor call.
auto* view = new ResizeArea();
view->InitWith(args->isolate(), args->GetThis());
return view;
Copy link
Member

Choose a reason for hiding this comment

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

I'm confused how ResizeArea can be cast to mate::WrappableBase given that it doesn't inherit from mate::Wrappable?

Copy link
Member Author

Choose a reason for hiding this comment

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

This class inherits from api::View, which inherits from mate::Wrappable.

Copy link
Member

Choose a reason for hiding this comment

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

oh, d'oh, I thought View was views::View. Confusing.

@zcbenz zcbenz merged commit 47bf8e1 into master Nov 21, 2018
@release-clerk
Copy link

release-clerk bot commented Nov 21, 2018

No Release Notes

@zcbenz zcbenz deleted the resize-area branch November 21, 2018 13:40
@nornagon
Copy link
Member

nornagon commented Nov 21, 2018

FYI use the string no-notes in the Notes: field to tell Clerk that there shouldn't be any notes. I've manually edited clerk's comment above.

bcpete pushed a commit to bcpete/electron that referenced this pull request Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants