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

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

Issue 10007043: Attempt to fix ChromeFrameTestWithWebServer tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move snapshot fn into ui_test_utils_win.cc Created 8 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/browser/ui/window_snapshot/window_snapshot_win.cc ('k') | chrome/test/base/ui_test_utils_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/ui_test_utils.h
diff --git a/chrome/test/base/ui_test_utils.h b/chrome/test/base/ui_test_utils.h
index d233015fa84821b7c2cd04f254931b1d62806674..821bf7c4e68939519b20a759a487b578e16ef77d 100644
--- a/chrome/test/base/ui_test_utils.h
+++ b/chrome/test/base/ui_test_utils.h
@@ -638,6 +638,18 @@ void MoveMouseToCenterAndPress(
int state,
const base::Closure& task);
+#if defined(OS_WIN)
+// Saves a snapshot of the entire screen to a file named
+// ChromiumSnapshotYYYYMMDDHHMMSS.png to |directory|, returning true on success.
+// The path to the file produced is returned in |screenshot_path| if non-NULL.
+bool SaveScreenSnapshotToDirectory(const FilePath& directory,
+ FilePath* screenshot_path);
+
+// Saves a snapshot of the entire screen as above to the current user's desktop.
+// The Chrome path provider must be registered prior to calling this function.
+bool SaveScreenSnapshotToDesktop(FilePath* screenshot_path);
+#endif
+
namespace internal {
// A utility function to send a mouse click event in a closure. It's shared by
« no previous file with comments | « chrome/browser/ui/window_snapshot/window_snapshot_win.cc ('k') | chrome/test/base/ui_test_utils_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698