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..121d420e0b1f88bfc5c6fff4c9ffe4ed3ced00e8 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,12 @@ 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( |
|
sky
2012/07/16 14:01:53
Lead this named GrabWindowSnapshot and name the im
qfel
2012/07/17 13:33:43
Done.
|
| + gfx::NativeWindow window, |
| + std::vector<unsigned char>* png_representation, |
| + const gfx::Rect& snapshot_bounds); |
| + |
| +void RegisterScreenshotPrefs(PrefService* service); |
| } // namespace browser |