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 |
new file mode 100755 |
index 0000000000000000000000000000000000000000..8132def38ed3e04bf80029780daa4ef042775828 |
--- /dev/null |
+++ b/chrome/browser/ui/window_snapshot/window_snapshot.h |
@@ -0,0 +1,29 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_H_ |
+#define CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_H_ |
+#pragma once |
+ |
+#include <vector> |
+ |
+#include "gfx/native_widget_types.h" |
+ |
+namespace browser { |
+ |
+// Grabs a snapshot of the designated window and stores a PNG representation |
+// into a byte vector. |
+#if defined(OS_MACOSX) |
+void GrabWindowSnapshot(gfx::NativeWindow window, |
+ std::vector<unsigned char>* png_representation, |
+ int* width, |
+ int* height); |
+#else |
+void GrabWindowSnapshot(gfx::NativeWindow window, |
+ std::vector<unsigned char>* png_representation); |
+#endif |
+ |
+} // namespace browser |
+ |
+#endif // CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_H_ |