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

Side by Side Diff: ui/snapshot/snapshot_win.h

Issue 13926006: Add ui::GrabDesktopSnapshot for Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Always include GrabHwndSnapshot Created 7 years, 8 months 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 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 UI_SNAPSHOT_SNAPSHOT_WIN_H_
6 #define UI_SNAPSHOT_SNAPSHOT_WIN_H_
7
8 #include <windows.h>
9
10 #include <vector>
11
12 #include "ui/snapshot/snapshot_export.h"
13
14 namespace gfx {
15 class Rect;
16 }
17
18 namespace ui {
19 namespace internal {
20
21 // Grabs a snapshot of the desktop. No security checks are done. This is
22 // intended to be used for debugging purposes where no BrowserProcess instance
23 // is available (ie. tests). DO NOT use in a result of user action.
24 SNAPSHOT_EXPORT bool GrabHwndSnapshot(
25 HWND window_handle,
26 const gfx::Rect& snapshot_bounds,
27 std::vector<unsigned char>* png_representation);
28
29 } // namespace internal
30 } // namespace ui
31
32 #endif // UI_SNAPSHOT_SNAPSHOT_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698