| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_TEST_RUNNER_LAYOUT_AND_PAINT_ASYNC_THEN_H_ | 5 #ifndef CONTENT_SHELL_TEST_RUNNER_LAYOUT_AND_PAINT_ASYNC_THEN_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_LAYOUT_AND_PAINT_ASYNC_THEN_H_ | 6 #define CONTENT_SHELL_TEST_RUNNER_LAYOUT_AND_PAINT_ASYNC_THEN_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "components/test_runner/test_runner_export.h" | 9 #include "content/shell/test_runner/test_runner_export.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 class WebWidget; | 12 class WebWidget; |
| 13 } // namespace blink | 13 } // namespace blink |
| 14 | 14 |
| 15 namespace test_runner { | 15 namespace test_runner { |
| 16 | 16 |
| 17 // Triggers a layout and paint of |web_widget| and its popup (if any). | 17 // Triggers a layout and paint of |web_widget| and its popup (if any). |
| 18 // Calls |callback| after the layout and paint happens (for both the | 18 // Calls |callback| after the layout and paint happens (for both the |
| 19 // |web_widget| and its popup (if any)). | 19 // |web_widget| and its popup (if any)). |
| 20 TEST_RUNNER_EXPORT void LayoutAndPaintAsyncThen(blink::WebWidget* web_widget, | 20 TEST_RUNNER_EXPORT void LayoutAndPaintAsyncThen(blink::WebWidget* web_widget, |
| 21 const base::Closure& callback); | 21 const base::Closure& callback); |
| 22 | 22 |
| 23 } // namespace test_runner | 23 } // namespace test_runner |
| 24 | 24 |
| 25 #endif // COMPONENTS_TEST_RUNNER_LAYOUT_AND_PAINT_ASYNC_THEN_H_ | 25 #endif // CONTENT_SHELL_TEST_RUNNER_LAYOUT_AND_PAINT_ASYNC_THEN_H_ |
| OLD | NEW |