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

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

Issue 2752373002: Use PrintWindow() to implement snapshots on windows 8.1+ (Closed)
Patch Set: rebase Created 3 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
« no previous file with comments | « ui/snapshot/snapshot_aura.cc ('k') | ui/snapshot/snapshot_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 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 "ui/snapshot/snapshot_export.h"
11
12 namespace gfx {
13 class Image;
14 class Rect;
15 }
16
17 namespace ui {
18 namespace internal {
19
20 // Grabs a snapshot of the desktop. No security checks are done. This is
21 // intended to be used for debugging purposes where no BrowserProcess instance
22 // is available (ie. tests). DO NOT use in a result of user action.
23 //
24 // snapshot_bounds_in_pixels is the area relative to clip_rect_in_pixels that
25 // should be captured. Areas outside clip_rect_in_pixels are filled white.
26 // clip_rect_in_pixels is relative to the client area of the window.
27 SNAPSHOT_EXPORT bool GrabHwndSnapshot(
28 HWND window_handle,
29 const gfx::Rect& snapshot_bounds_in_pixels,
30 const gfx::Rect& clip_rect_in_pixels,
31 gfx::Image* image);
32
33 } // namespace internal
34 } // namespace ui
35
36 #endif // UI_SNAPSHOT_SNAPSHOT_WIN_H_
OLDNEW
« no previous file with comments | « ui/snapshot/snapshot_aura.cc ('k') | ui/snapshot/snapshot_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698