<webview>: Expose scripted printing function: <webview>.print();
commit4c03d0a83a4f4dea0da99f4966fad5205f8e6e3e
authorlazyboy@chromium.org <lazyboy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 26 Jun 2014 19:13:45 +0000 (26 19:13 +0000)
committerlazyboy@chromium.org <lazyboy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 26 Jun 2014 19:13:45 +0000 (26 19:13 +0000)
tree1e0648234bf9e487a9dd7e26f43bdba6d7c388af
parentba8ab8deb77acd904864b8a431812a9adfabf409
<webview>: Expose scripted printing function: <webview>.print();

BUG=387730
Test=Open a chrome app that uses <webview>, e.g:
https://chrome.google.com/webstore/detail/edggnmnajhcbhlnpjnogkjpghaikidaa
Now inspect the app (not the webview) to be able to run JavaScript
on the app.
Then call the print() function on the webview to see printing
dialog for the webview, e.g.:
document.querySelector('webview').print();

Review URL: https://codereview.chromium.org/344213005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280070 0039d316-1c4b-4281-b951-d872f2087c98
chrome/common/extensions/api/webview_tag.json
chrome/renderer/resources/extensions/web_view.js