Chromium Code Reviews| OLD | NEW |
|---|---|
| (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. | |
|
sky
2017/03/23 03:29:13
Can you put this file in a target that is not part
| |
| 23 // snapshot_bounds is the area relative to clip_rect that should be captured. | |
| 24 // Areas outside clip_rect are filled white. clip_rect is relative to the | |
| 25 // client area of the window, and snapshot_bounds is relative to the | |
| 26 // clip_rect. | |
| 27 SNAPSHOT_EXPORT bool GrabHwndSnapshot(HWND window_handle, | |
| 28 const gfx::Rect& snapshot_bounds, | |
| 29 const gfx::Rect& clip_rect, | |
| 30 gfx::Image* image); | |
| 31 | |
| 32 } // namespace internal | |
| 33 } // namespace ui | |
| 34 | |
| 35 #endif // UI_SNAPSHOT_SNAPSHOT_WIN_H_ | |
| OLD | NEW |