Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: content/shell/test_runner/layout_and_paint_async_then.cc

Issue 2707183003: Move //components/test_runner back into //content/shell (Closed)
Patch Set: Trim DEPS Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698