Chromium Code Reviews| 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_DESKTOP_H_ | |
| 6 #define UI_SNAPSHOT_SNAPSHOT_DESKTOP_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 namespace gfx { | |
| 11 class Rect; | |
| 12 } | |
| 13 | |
| 14 namespace ui { | |
| 15 | |
| 16 // Grabs a snapshot of the desktop. No security checks are done. This is | |
| 17 // intended to be used for debugging purposes where no BrowserProcess instance | |
| 18 // is available (ie. tests). DO NOT use in a result of user action. | |
| 19 bool GrabDesktopSnapshot( | |
| 20 std::vector<unsigned char>* png_representation, | |
|
sky
2013/04/22 16:25:19
style guide says out params are last.
grt (UTC plus 2)
2013/04/22 19:14:03
Done.
| |
| 21 const gfx::Rect& snapshot_bounds); | |
| 22 | |
| 23 } // namespace ui | |
| 24 | |
| 25 #endif // UI_SNAPSHOT_SNAPSHOT_DESKTOP_H_ | |
| OLD | NEW |