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

Unified Diff: chrome/browser/extensions/extension_tabs_module.h

Issue 10294003: Use the asynchronous version of CopyFromBackingStore in CaptureVisibleTabFunction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 8 years, 8 months 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 | « no previous file | chrome/browser/extensions/extension_tabs_module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_tabs_module.h
diff --git a/chrome/browser/extensions/extension_tabs_module.h b/chrome/browser/extensions/extension_tabs_module.h
index 7738d75be6f4a6554f2fad5d5b5dd0115fed3bd7..085b7437733c31195c734e4eb9918c8069110abf 100644
--- a/chrome/browser/extensions/extension_tabs_module.h
+++ b/chrome/browser/extensions/extension_tabs_module.h
@@ -27,6 +27,9 @@ class DictionaryValue;
namespace content {
class WebContents;
} // namespace content
+namespace skia {
+class PlatformCanvas;
+} // namespace skia
// Windows
class GetWindowFunction : public SyncExtensionFunction {
@@ -181,6 +184,10 @@ class CaptureVisibleTabFunction : public AsyncExtensionFunction,
const content::NotificationDetails& details) OVERRIDE;
void SendResultFromBitmap(const SkBitmap& screen_capture);
+ private:
+ void CopyFromBackingStoreComplete(skia::PlatformCanvas* canvas,
+ bool succeeded);
+
content::NotificationRegistrar registrar_;
// The format (JPEG vs PNG) of the resulting image. Set in RunImpl().
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_tabs_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698