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

feat: promisify win.capturePage() #15743

Merged
merged 8 commits into from Nov 28, 2018
Merged

feat: promisify win.capturePage() #15743

merged 8 commits into from Nov 28, 2018

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Nov 16, 2018

Description of Change

This PR promisifies win.capturePage.

Todo:

  • Docs
  • Specs

/cc @ckerr @deepak1556

Checklist

  • PR description included and stakeholders cc'd
  • npm test passes
  • tests are changed or added
  • relevant documentation is changed or added
  • PR title follows semantic commit guidelines

Release Notes

Notes: promisify win.capturePage()

Co-authored-by: Charles Kerr ckerr@github.com

@codebytere codebytere requested review from a team November 16, 2018 21:49
@MarshallOfSound
Copy link
Member

This should go through our deprecation cycle right? We should probably add a JS side wrapper so that callback-style still works but with a deprecation warning

@codebytere codebytere changed the title feat: promisify win.capturePage feat: promisify win.capturePage() Nov 18, 2018
docs/api/browser-window.md Outdated Show resolved Hide resolved
docs/api/browser-window.md Outdated Show resolved Hide resolved
docs/api/browser-window.md Outdated Show resolved Hide resolved
docs/api/browser-window.md Outdated Show resolved Hide resolved
@codebytere
Copy link
Member Author

@MarshallOfSound rebased and updated!

[NativeImage](native-image.md) that stores data of the snapshot. Omitting
`rect` will capture the whole visible page.
be called with `callback(image)`. The `image` is an instance of [NativeImage](native-image.md)
that stores data of the snapshot. Omitting `rect` will capture the whole visible page.
Copy link
Member

Choose a reason for hiding this comment

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

that stores data of the snapshot could be clearer, but that's the only thing I could find with this PR. The rest looks ✨ and it's honestly a nit.

@codebytere codebytere merged commit 41c2685 into master Nov 28, 2018
@release-clerk
Copy link

release-clerk bot commented Nov 28, 2018

Release Notes Persisted

promisify win.capturePage()

@codebytere codebytere deleted the promisify-capturePage branch November 28, 2018 04:50
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

4 participants