Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1293)

Unified Diff: chrome/browser/resources/feedback/js/take_screenshot.js

Issue 61153007: Reduce delay when showing feedback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/feedback/js/feedback.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/feedback/js/take_screenshot.js
diff --git a/chrome/browser/resources/feedback/js/take_screenshot.js b/chrome/browser/resources/feedback/js/take_screenshot.js
index ae9543c8751d17bcbd46161b75e03dd4d03788e7..2985e64fd43a6a111cb97c7c99967994874c4370 100644
--- a/chrome/browser/resources/feedback/js/take_screenshot.js
+++ b/chrome/browser/resources/feedback/js/take_screenshot.js
@@ -4,8 +4,8 @@
/**
* Function to take the screenshot of the current screen.
- * @param {function(string)} callback Callback for returning the data URL to the
- * screenshot.
+ * @param {function(HTMLCanvasElement)} callback Callback for returning the
+ * canvas with the screenshot on it.
*/
function takeScreenshot(callback) {
var screenshotStream = null;
@@ -25,7 +25,7 @@ function takeScreenshot(callback) {
screenshotStream.stop();
screenshotStream = null;
- callback(canvas.toDataURL('image/png'));
+ callback(canvas);
}
}, false);
« no previous file with comments | « chrome/browser/resources/feedback/js/feedback.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698