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

Unified Diff: chrome/browser/ui/window_snapshot/window_snapshot.h

Issue 8523022: Change snasphotting API to take in a bounds Rect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
Index: chrome/browser/ui/window_snapshot/window_snapshot.h
diff --git a/chrome/browser/ui/window_snapshot/window_snapshot.h b/chrome/browser/ui/window_snapshot/window_snapshot.h
index 51786628ed7581962c8730b4c7bed2429e42be13..f8a7800b4e5b63c64474ecbfb20a467808a7ae3e 100644
--- a/chrome/browser/ui/window_snapshot/window_snapshot.h
+++ b/chrome/browser/ui/window_snapshot/window_snapshot.h
@@ -21,6 +21,12 @@ namespace browser {
gfx::Rect GrabWindowSnapshot(gfx::NativeWindow window,
std::vector<unsigned char>* png_representation);
+// Grabs a snapshot of the rectangle area |snapshot_bounds| with respect to the
+// top left corner of the designated window and stores a PNG representation
+// into a byte vector. Returns the image bounds.
jonathan.backer 2011/11/11 14:41:20 Document that an empty rect means grab the whole r
+gfx::Rect GrabWindowSnapshot(gfx::NativeWindow window,
+ std::vector<unsigned char>* png_representation,
+ gfx::Rect snapshot_bounds);
kkania 2011/11/11 17:06:31 const gfx::Rect& snapshot_bounds
} // namespace browser
#endif // CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_H_

Powered by Google App Engine
This is Rietveld 408576698