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

Unified Diff: ui/snapshot/snapshot.h

Issue 462173002: Fix set_area sizes for RequestCopyOfOutput, and related tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed RWHVBrowserTests, fixed snapshot_android, clarifying header comments. Created 6 years, 4 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
Index: ui/snapshot/snapshot.h
diff --git a/ui/snapshot/snapshot.h b/ui/snapshot/snapshot.h
index e547e4748ddaf77b8a4e150f420556bbe3726e0c..be653d4f4b51c25f98e663140b64d70d49d1382f 100644
--- a/ui/snapshot/snapshot.h
+++ b/ui/snapshot/snapshot.h
@@ -41,10 +41,11 @@ SNAPSHOT_EXPORT bool GrabViewSnapshot(
std::vector<unsigned char>* png_representation,
const gfx::Rect& snapshot_bounds);
+// These functions take a snapshot of |source_rect| (specified in Window/DIP
+// coordinates) from window and scale it to |target_size| (in physical pixels),
+// asynchronously.
typedef base::Callback<void(const gfx::Image& snapshot)>
GrabWindowSnapshotAsyncCallback;
-// GrabWindowSnapshotAndScaleAsync() copies snapshot of |source_rect| from
-// window and scales it to |target_size| asynchronously.
SNAPSHOT_EXPORT void GrabWindowSnapshotAndScaleAsync(
gfx::NativeWindow window,
const gfx::Rect& source_rect,

Powered by Google App Engine
This is Rietveld 408576698