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

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: Always include GrabHwndSnapshot 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
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..90947c5ac6b8acaf568d26be530d463a9f66d630 100644
--- a/chrome/test/base/ui_test_utils.cc
+++ b/chrome/test/base/ui_test_utils.cc
@@ -74,7 +74,7 @@
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/size.h"
-#include "ui/snapshot/snapshot.h"
+#include "ui/snapshot/test/snapshot_desktop.h"
#if defined(USE_AURA)
#include "ash/shell.h"
@@ -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(bounds, &png_data) &&
png_data.size() <= INT_MAX) {
int bytes = static_cast<int>(png_data.size());
int written = file_util::WriteFile(

Powered by Google App Engine
This is Rietveld 408576698