Skip to content

feat: promisify win.capturePage() - #15743

Merged
codebytere merged 8 commits into
masterfrom
promisify-capturePage
Nov 28, 2018
Merged

codebytere merged 8 commits into
masterfrom
promisify-capturePage

Conversation

@codebytere

@codebytere codebytere commented Nov 16, 2018 •

Copy link
Copy Markdown
Member

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 [email protected]

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

Copy link
Copy Markdown
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
@codebytere
codebytere force-pushed the promisify-capturePage branch from 1020f35 to 5c5286b Compare November 19, 2018 19:31
Comment thread docs/api/browser-window.md Resolved
Comment thread docs/api/browser-window.md Resolved
Comment thread docs/api/browser-window.md Resolved
Comment thread docs/api/browser-window.md Resolved
@codebytere
codebytere force-pushed the promisify-capturePage branch from d2bf372 to 7063cd9 Compare November 26, 2018 21:08
@codebytere

Copy link
Copy Markdown
Member Author

@MarshallOfSound rebased and updated!

Comment thread docs/api/web-contents.md
[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
Copy Markdown
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 force-pushed the promisify-capturePage branch from d2e7de2 to 848defd Compare November 27, 2018 21:48
@codebytere
codebytere merged commit 41c2685 into master Nov 28, 2018
@release-clerk

release-clerk Bot commented Nov 28, 2018

Copy link
Copy Markdown

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.

4 participants