Chromium Code Reviews
DescriptionI have taken over this patch, original authored by Adam Hunter (adamhunter).
The original issue is: http://codereview.chromium.org/144019
--------------
Functionality has been requested in the Extension API for Javascript to
take screenshots of the currently visible tab. This changelist builds this
function, chrome.tabs.getVisibleScreenCapture. This function takes a
single callback function and returns to that function a data URL of a JPEG
image of the current screen. A simple sample extension is provided as a
use case.
BUG=14760
TEST=There is an extension in chrome\test\data\extensions\samples\screenshot,
load this extension. It creates a toolstrip button. Click this button, you
should get a page with a screenshot of the active tab. The API function
is found at chrome.tabs.getVisibleScreenCapture.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=23259
Patch Set 1 #Patch Set 2 : minor error cases #Patch Set 3 : added a few more error cases #
Total comments: 6
Patch Set 4 : fix merge errors #Patch Set 5 : move patch to source tree #Patch Set 6 : sync #Patch Set 7 : cr changes #Patch Set 8 : added docs #Messages
Total messages: 6 (0 generated)
|