diff options
author | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-13 00:04:06 +0000 |
---|---|---|
committer | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-13 00:04:06 +0000 |
commit | 3947c4d60629f25db90519933ea98bf273259fdd (patch) | |
tree | 2c64bc019ecad853a0fc83ac5b5e59196c15d6ee /chrome/browser/extensions/extension_tabs_module_constants.h | |
parent | 576537844b224ca246713c57e039d19d0dfefbf7 (diff) | |
download | chromium_src-3947c4d60629f25db90519933ea98bf273259fdd.zip chromium_src-3947c4d60629f25db90519933ea98bf273259fdd.tar.gz chromium_src-3947c4d60629f25db90519933ea98bf273259fdd.tar.bz2 |
I 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.
Review URL: http://codereview.chromium.org/160228
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23259 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_tabs_module_constants.h')
-rw-r--r-- | chrome/browser/extensions/extension_tabs_module_constants.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_tabs_module_constants.h b/chrome/browser/extensions/extension_tabs_module_constants.h index f601c84..dbf2ef0 100644 --- a/chrome/browser/extensions/extension_tabs_module_constants.h +++ b/chrome/browser/extensions/extension_tabs_module_constants.h @@ -46,6 +46,8 @@ extern const char kWindowNotFoundError[]; extern const char kTabNotFoundError[]; extern const char kNoSelectedTabError[]; extern const char kInvalidUrlError[]; +extern const char kInternalVisibleTabCaptureError[]; +extern const char kNotImplementedError[]; // Function names, Windows API. extern const char kGetWindowFunction[]; @@ -65,6 +67,7 @@ extern const char kUpdateTabFunction[]; extern const char kMoveTabFunction[]; extern const char kRemoveTabFunction[]; extern const char kDetectTabLanguageFunction[]; +extern const char kCaptureVisibleTabFunction[]; }; // namespace extension_tabs_module_constants |