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 890886a58c0b965439fa101deb85a615e5111438..bcd66d5a00dc2e550ec71ae1c92f091aa117cfd0 100644 |
| --- a/chrome/browser/ui/window_snapshot/window_snapshot.h |
| +++ b/chrome/browser/ui/window_snapshot/window_snapshot.h |
| @@ -10,6 +10,8 @@ |
| #include "ui/gfx/native_widget_types.h" |
| +class PrefService; |
| + |
| namespace gfx { |
| class Rect; |
| } |
| @@ -20,9 +22,11 @@ namespace browser { |
| // top left corner of the designated window and stores a PNG representation |
| // into a byte vector. On Windows, |window| may be NULL to grab a snapshot of |
| // the primary monitor. Returns true if the operation is successful. |
| -bool GrabWindowSnapshot(gfx::NativeWindow window, |
| - std::vector<unsigned char>* png_representation, |
| - const gfx::Rect& snapshot_bounds); |
| +bool GrabWindowSnapshotIfPermitted(gfx::NativeWindow window, |
|
Mattias Nissler (ping if slow)
2012/07/13 15:23:42
parameters need to be aligned, break line after (
qfel
2012/07/16 09:11:12
Done.
|
| + std::vector<unsigned char>* png_representation, |
| + const gfx::Rect& snapshot_bounds); |
| + |
| +void RegisterScreenshotPrefs(PrefService* service); |
| } // namespace browser |