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

Unified Diff: ui/snapshot/snapshot.h

Issue 13926006: Add ui::GrabDesktopSnapshot for Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/base/ui_test_utils.cc ('k') | ui/snapshot/snapshot.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/snapshot/snapshot.h
diff --git a/ui/snapshot/snapshot.h b/ui/snapshot/snapshot.h
index 356309d86ac6cc10f48bf8c9f716729db47cce41..d6d619041240022534a3690a64a0d189fc47ce83 100644
--- a/ui/snapshot/snapshot.h
+++ b/ui/snapshot/snapshot.h
@@ -29,6 +29,17 @@ SNAPSHOT_EXPORT bool GrabViewSnapshot(
std::vector<unsigned char>* png_representation,
const gfx::Rect& snapshot_bounds);
+#if defined(OS_WIN)
+
+// 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
+// intended to be used for debugging purposes where no BrowserProcess instance
+// is available (ie. tests). DO NOT use in a result of user action.
+SNAPSHOT_EXPORT bool GrabDesktopSnapshot(
+ std::vector<unsigned char>* png_representation,
+ const gfx::Rect& snapshot_bounds);
+
+#endif // defined(OS_WIN)
+
} // namespace ui
#endif // UI_SNAPSHOT_SNAPSHOT_H_
« no previous file with comments | « chrome/test/base/ui_test_utils.cc ('k') | ui/snapshot/snapshot.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698