Chromium Code Reviews| 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_INTERACTIVE_TEST_UTILS_H_ | 5 #ifndef CHROME_TEST_BASE_INTERACTIVE_TEST_UTILS_H_ |
| 6 #define CHROME_TEST_BASE_INTERACTIVE_TEST_UTILS_H_ | 6 #define CHROME_TEST_BASE_INTERACTIVE_TEST_UTILS_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/view_ids.h" | 8 #include "chrome/browser/ui/view_ids.h" |
| 9 #include "chrome/test/base/ui_test_utils.h" | 9 #include "chrome/test/base/ui_test_utils.h" |
| 10 #include "ui/base/test/ui_controls.h" | 10 #include "ui/base/test/ui_controls.h" |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 130 #if defined(TOOLKIT_VIEWS) | 130 #if defined(TOOLKIT_VIEWS) |
| 131 void MoveMouseToCenterAndPress(views::View* view, | 131 void MoveMouseToCenterAndPress(views::View* view, |
| 132 ui_controls::MouseButton button, | 132 ui_controls::MouseButton button, |
| 133 int state, | 133 int state, |
| 134 const base::Closure& task); | 134 const base::Closure& task); |
| 135 | 135 |
| 136 // Returns the center of |view| in screen coordinates. | 136 // Returns the center of |view| in screen coordinates. |
| 137 gfx::Point GetCenterInScreenCoordinates(const views::View* view); | 137 gfx::Point GetCenterInScreenCoordinates(const views::View* view); |
| 138 #endif | 138 #endif |
| 139 | 139 |
| 140 bool DragAnDrop(const gfx::Point& start, const gfx::Point& end); | |
|
dyaroshev
2016/09/14 17:12:05
Once again forgot to revert this file
| |
| 141 | |
| 142 bool DragAndDrop(const gfx::Point& start, | |
| 143 const gfx::Point& end, | |
| 144 base::Closure do_while_drugging); | |
| 145 | |
| 140 namespace internal { | 146 namespace internal { |
| 141 | |
| 142 // A utility function to send a mouse click event in a closure. It's shared by | 147 // A utility function to send a mouse click event in a closure. It's shared by |
| 143 // ui_controls_linux.cc and ui_controls_mac.cc | 148 // ui_controls_linux.cc and ui_controls_mac.cc |
| 144 void ClickTask(ui_controls::MouseButton button, | 149 void ClickTask(ui_controls::MouseButton button, |
| 145 int state, | 150 int state, |
| 146 const base::Closure& followup); | 151 const base::Closure& followup); |
| 147 | 152 |
| 148 } // namespace internal | 153 } // namespace internal |
| 149 | 154 |
| 150 } // namespace ui_test_utils | 155 } // namespace ui_test_utils |
| 151 | 156 |
| 152 #endif // CHROME_TEST_BASE_INTERACTIVE_TEST_UTILS_H_ | 157 #endif // CHROME_TEST_BASE_INTERACTIVE_TEST_UTILS_H_ |
| OLD | NEW |