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

Add <webview>.capturePage([rect,] callback) #6355

Merged
merged 7 commits into from
Jul 7, 2016
Merged

Conversation

kevinsawicki
Copy link
Contributor

This pull request moves the capturePage implementation from the window to the web contents so it can be used on a <webview> tag.

Closes #3687

@kevinsawicki kevinsawicki changed the title Add <webview>.capturePage Add <webview>.capturePage([rect,] callback) Jul 6, 2016
kBGRA_8888_SkColorType);
}

void WebContents::OnCapturePageDone(
Copy link
Contributor

Choose a reason for hiding this comment

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

We can move this function to anonymous namespace since it does not actually need to use the members of WebContents.

@kevinsawicki kevinsawicki force-pushed the webview-capture-page branch from 2b221f2 to b900ff9 Compare July 6, 2016 16:33
@zcbenz
Copy link
Contributor

zcbenz commented Jul 7, 2016

👍

@zcbenz zcbenz merged commit bbfdaf7 into master Jul 7, 2016
@zcbenz zcbenz deleted the webview-capture-page branch July 7, 2016 01:09
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.

2 participants