Chromium Code Reviews| 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..70d8771120a963ba6be3c80a570651cd3eb58b6c 100644 |
| --- a/chrome/browser/ui/window_snapshot/window_snapshot.h |
| +++ b/chrome/browser/ui/window_snapshot/window_snapshot.h |
| @@ -16,10 +16,12 @@ namespace gfx { |
| namespace browser { |
| -// Grabs a snapshot of the designated window and stores a PNG representation |
| -// into a byte vector. Returns the image bounds. |
| -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 true if the operation is successful. |
| +bool GrabWindowSnapshot(gfx::NativeWindow window, |
| + std::vector<unsigned char>* png_representation, |
| + const gfx::Rect snapshot_bounds); |
|
sky
2011/11/15 16:58:08
const gfx::Rect&
|
| } // namespace browser |