Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_SNAPSHOT_SNAPSHOT_H_ | 5 #ifndef UI_SNAPSHOT_SNAPSHOT_H_ |
| 6 #define UI_SNAPSHOT_SNAPSHOT_H_ | 6 #define UI_SNAPSHOT_SNAPSHOT_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 22 SNAPSHOT_EXPORT bool GrabWindowSnapshot( | 22 SNAPSHOT_EXPORT bool GrabWindowSnapshot( |
| 23 gfx::NativeWindow window, | 23 gfx::NativeWindow window, |
| 24 std::vector<unsigned char>* png_representation, | 24 std::vector<unsigned char>* png_representation, |
| 25 const gfx::Rect& snapshot_bounds); | 25 const gfx::Rect& snapshot_bounds); |
| 26 | 26 |
| 27 SNAPSHOT_EXPORT bool GrabViewSnapshot( | 27 SNAPSHOT_EXPORT bool GrabViewSnapshot( |
| 28 gfx::NativeView view, | 28 gfx::NativeView view, |
| 29 std::vector<unsigned char>* png_representation, | 29 std::vector<unsigned char>* png_representation, |
| 30 const gfx::Rect& snapshot_bounds); | 30 const gfx::Rect& snapshot_bounds); |
| 31 | 31 |
| 32 #if defined(OS_WIN) | |
| 33 | |
| 34 // Grabs a snapshot of the desktop. No security checks are done. This is | |
|
sky
2013/04/16 22:06:49
If this is for tests, why is it here and not in th
grt (UTC plus 2)
2013/04/17 16:58:17
Good point. I've moved GrabDesktopShortcut into a
| |
| 35 // intended to be used for debugging purposes where no BrowserProcess instance | |
| 36 // is available (ie. tests). DO NOT use in a result of user action. | |
| 37 SNAPSHOT_EXPORT bool GrabDesktopSnapshot( | |
| 38 std::vector<unsigned char>* png_representation, | |
| 39 const gfx::Rect& snapshot_bounds); | |
| 40 | |
| 41 #endif // defined(OS_WIN) | |
| 42 | |
| 32 } // namespace ui | 43 } // namespace ui |
| 33 | 44 |
| 34 #endif // UI_SNAPSHOT_SNAPSHOT_H_ | 45 #endif // UI_SNAPSHOT_SNAPSHOT_H_ |
| OLD | NEW |