OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_TEST_RUNNER_LAYOUT_AND_PAINT_ASYNC_THEN_H_ | |
6 #define COMPONENTS_TEST_RUNNER_LAYOUT_AND_PAINT_ASYNC_THEN_H_ | |
7 | |
8 #include "base/callback_forward.h" | |
9 #include "components/test_runner/test_runner_export.h" | |
10 | |
11 namespace blink { | |
12 class WebWidget; | |
13 } // namespace blink | |
14 | |
15 namespace test_runner { | |
16 | |
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 | |
19 // |web_widget| and its popup (if any)). | |
20 TEST_RUNNER_EXPORT void LayoutAndPaintAsyncThen(blink::WebWidget* web_widget, | |
21 const base::Closure& callback); | |
22 | |
23 } // namespace test_runner | |
24 | |
25 #endif // COMPONENTS_TEST_RUNNER_LAYOUT_AND_PAINT_ASYNC_THEN_H_ | |
OLD | NEW |