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 #include "components/test_runner/layout_and_paint_async_then.h" | 5 #include "content/shell/test_runner/layout_and_paint_async_then.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/trace_event/trace_event.h" | 8 #include "base/trace_event/trace_event.h" |
9 #include "third_party/WebKit/public/platform/WebLayoutAndPaintAsyncCallback.h" | 9 #include "third_party/WebKit/public/platform/WebLayoutAndPaintAsyncCallback.h" |
10 #include "third_party/WebKit/public/web/WebPagePopup.h" | 10 #include "third_party/WebKit/public/web/WebPagePopup.h" |
11 #include "third_party/WebKit/public/web/WebWidget.h" | 11 #include "third_party/WebKit/public/web/WebWidget.h" |
12 | 12 |
13 namespace test_runner { | 13 namespace test_runner { |
14 | 14 |
15 namespace { | 15 namespace { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 LayoutAndPaintCallback* layout_and_paint_callback = | 51 LayoutAndPaintCallback* layout_and_paint_callback = |
52 new LayoutAndPaintCallback(callback); | 52 new LayoutAndPaintCallback(callback); |
53 web_widget->layoutAndPaintAsync(layout_and_paint_callback); | 53 web_widget->layoutAndPaintAsync(layout_and_paint_callback); |
54 if (blink::WebPagePopup* popup = web_widget->pagePopup()) { | 54 if (blink::WebPagePopup* popup = web_widget->pagePopup()) { |
55 layout_and_paint_callback->set_wait_for_popup(true); | 55 layout_and_paint_callback->set_wait_for_popup(true); |
56 popup->layoutAndPaintAsync(layout_and_paint_callback); | 56 popup->layoutAndPaintAsync(layout_and_paint_callback); |
57 } | 57 } |
58 } | 58 } |
59 | 59 |
60 } // namespace test_runner | 60 } // namespace test_runner |
OLD | NEW |