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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_TEST_BASE_UI_TEST_UTILS_H_ 5 #ifndef CHROME_TEST_BASE_UI_TEST_UTILS_H_
6 #define CHROME_TEST_BASE_UI_TEST_UTILS_H_ 6 #define CHROME_TEST_BASE_UI_TEST_UTILS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 views::View* view, 631 views::View* view,
632 #elif defined(TOOLKIT_GTK) 632 #elif defined(TOOLKIT_GTK)
633 GtkWidget* widget, 633 GtkWidget* widget,
634 #elif defined(OS_MACOSX) 634 #elif defined(OS_MACOSX)
635 NSView* view, 635 NSView* view,
636 #endif 636 #endif
637 ui_controls::MouseButton button, 637 ui_controls::MouseButton button,
638 int state, 638 int state,
639 const base::Closure& task); 639 const base::Closure& task);
640 640
641 #if defined(OS_WIN)
642 // Saves a snapshot of the entire screen to a file named
643 // ChromiumSnapshotYYYYMMDDHHMMSS.png to |directory|, returning true on success.
644 // The path to the file produced is returned in |screenshot_path| if non-NULL.
645 bool SaveScreenSnapshotToDirectory(const FilePath& directory,
646 FilePath* screenshot_path);
647
648 // Saves a snapshot of the entire screen as above to the current user's desktop.
649 // The Chrome path provider must be registered prior to calling this function.
650 bool SaveScreenSnapshotToDesktop(FilePath* screenshot_path);
651 #endif
652
641 namespace internal { 653 namespace internal {
642 654
643 // A utility function to send a mouse click event in a closure. It's shared by 655 // A utility function to send a mouse click event in a closure. It's shared by
644 // ui_controls_linux.cc and ui_controls_mac.cc 656 // ui_controls_linux.cc and ui_controls_mac.cc
645 void ClickTask(ui_controls::MouseButton button, 657 void ClickTask(ui_controls::MouseButton button,
646 int state, 658 int state,
647 const base::Closure& followup); 659 const base::Closure& followup);
648 660
649 } // namespace internal 661 } // namespace internal
650 662
651 } // namespace ui_test_utils 663 } // namespace ui_test_utils
652 664
653 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_ 665 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_
OLDNEW
« 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