| OLD | NEW |
| 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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 views::View* view, | 625 views::View* view, |
| 626 #elif defined(TOOLKIT_GTK) | 626 #elif defined(TOOLKIT_GTK) |
| 627 GtkWidget* widget, | 627 GtkWidget* widget, |
| 628 #elif defined(OS_MACOSX) | 628 #elif defined(OS_MACOSX) |
| 629 NSView* view, | 629 NSView* view, |
| 630 #endif | 630 #endif |
| 631 ui_controls::MouseButton button, | 631 ui_controls::MouseButton button, |
| 632 int state, | 632 int state, |
| 633 const base::Closure& task); | 633 const base::Closure& task); |
| 634 | 634 |
| 635 bool SaveScreenSnapshotToDirectory(const FilePath& directory, |
| 636 FilePath* screenshot_path); |
| 637 |
| 635 namespace internal { | 638 namespace internal { |
| 636 | 639 |
| 637 // A utility function to send a mouse click event in a closure. It's shared by | 640 // A utility function to send a mouse click event in a closure. It's shared by |
| 638 // ui_controls_linux.cc and ui_controls_mac.cc | 641 // ui_controls_linux.cc and ui_controls_mac.cc |
| 639 void ClickTask(ui_controls::MouseButton button, | 642 void ClickTask(ui_controls::MouseButton button, |
| 640 int state, | 643 int state, |
| 641 const base::Closure& followup); | 644 const base::Closure& followup); |
| 642 | 645 |
| 643 } // namespace internal | 646 } // namespace internal |
| 644 | 647 |
| 645 } // namespace ui_test_utils | 648 } // namespace ui_test_utils |
| 646 | 649 |
| 647 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_ | 650 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_ |
| OLD | NEW |