OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_AURA_H_ |
| 6 #define CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_AURA_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "ui/aura/window.h" |
| 11 |
| 12 namespace gfx { |
| 13 class Rect; |
| 14 } |
| 15 |
| 16 namespace chrome { |
| 17 |
| 18 // Grabs a snapshot of the aura window from the compositor backbuffer. This |
| 19 // differs from the behavior of ui:GrabWindowSnapshot in that the image returned |
| 20 // may differ from the one presented to the screen. As such, this function is |
| 21 // not appropriate for rendering validation. |
| 22 // Returns true if the operation is successful (ie. permitted). |
| 23 bool GrabAuraCompositorSnapshot( |
| 24 aura::Window* window, |
| 25 std::vector<unsigned char>* png_representation, |
| 26 const gfx::Rect& snapshot_bounds); |
| 27 |
| 28 } // namespace chrome |
| 29 |
| 30 #endif // CHROME_BROWSER_UI_WINDOW_SNAPSHOT_WINDOW_SNAPSHOT_AURA_H_ |
OLD | NEW |