Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: chrome/browser/ui/window_snapshot/window_snapshot_aura.h

Issue 11399002: Implemented GetWindowSnapshot on RenderViewImpl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed aura snapshot circular dependency Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698