Index: chrome/browser/ui/window_snapshot/window_snapshot_aura.h |
diff --git a/chrome/browser/ui/window_snapshot/window_snapshot_aura.h b/chrome/browser/ui/window_snapshot/window_snapshot_aura.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9b967b3335c2232525fc7cff6a8dd147b1bd8bba |
--- /dev/null |
+++ b/chrome/browser/ui/window_snapshot/window_snapshot_aura.h |
@@ -0,0 +1,30 @@ |
+// Copyright (c) 2012 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_AURA_H_ |
+#define CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_AURA_H_ |
+ |
+#include <vector> |
+ |
+#include "ui/aura/window.h" |
+ |
+namespace gfx { |
+class Rect; |
+} |
+ |
+namespace chrome { |
+ |
+// Grabs a snapshot of the aura window from the compositor backbuffer. This |
+// differs from the behavior of ui:GrabWindowSnapshot in that the image returned |
+// may differ from the one presented to the screen. As such, this function is |
+// not appropriate for rendering validation. |
+// Returns true if the operation is successful (ie. permitted). |
+bool GrabAuraCompositorSnapshot( |
+ aura::Window* window, |
+ std::vector<unsigned char>* png_representation, |
+ const gfx::Rect& snapshot_bounds); |
+ |
+} // namespace chrome |
+ |
+#endif // CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_AURA_H_ |