OLD | NEW |
(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_HWND_WIN_H_ |
| 6 #define UI_SNAPSHOT_SNAPSHOT_HWND_WIN_H_ |
| 7 |
| 8 #include <windows.h> |
| 9 |
| 10 #include <vector> |
| 11 |
| 12 namespace gfx { |
| 13 class Rect; |
| 14 } |
| 15 |
| 16 namespace ui { |
| 17 namespace internal { |
| 18 |
| 19 // Grabs a snapshot of the desktop. No security checks are done. This is |
| 20 // intended to be used for debugging purposes where no BrowserProcess instance |
| 21 // is available (ie. tests). DO NOT use in a result of user action. |
| 22 bool GrabHwndSnapshot( |
| 23 HWND window_handle, |
| 24 std::vector<unsigned char>* png_representation, |
| 25 const gfx::Rect& snapshot_bounds); |
| 26 |
| 27 } // namespace internal |
| 28 } // namespace ui |
| 29 |
| 30 #endif // UI_SNAPSHOT_SNAPSHOT_HWND_WIN_H_ |
OLD | NEW |