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

Unified Diff: chrome/test/base/ui_test_utils.cc

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 | « no previous file | ui/snapshot/snapshot.h » ('j') | ui/snapshot/snapshot.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/ui_test_utils.cc
diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc
index edda07454d7028a8a79a326e4dc081922ee32008..f50ebd9a5169093bb1ede0b1d8b42fd7e6a3a4d4 100644
--- a/chrome/test/base/ui_test_utils.cc
+++ b/chrome/test/base/ui_test_utils.cc
@@ -631,7 +631,7 @@ bool SaveScreenSnapshotToDirectory(const base::FilePath& directory,
std::vector<unsigned char> png_data;
gfx::Rect bounds(
gfx::Size(rect.right - rect.left, rect.bottom - rect.top));
- if (ui::GrabWindowSnapshot(NULL, &png_data, bounds) &&
+ if (ui::GrabDesktopSnapshot(&png_data, bounds) &&
png_data.size() <= INT_MAX) {
int bytes = static_cast<int>(png_data.size());
int written = file_util::WriteFile(
« no previous file with comments | « no previous file | ui/snapshot/snapshot.h » ('j') | ui/snapshot/snapshot.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698