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

Unified Diff: components/test_runner/test_runner.cc

Issue 1918183004: Switch the inheritance of WebView from WebWidget to protected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: set webwidget on frame creation instead of view creation Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/test_runner/test_runner.cc
diff --git a/components/test_runner/test_runner.cc b/components/test_runner/test_runner.cc
index 429bf34a2cfd122d66c0e568c6c060effdad5bfa..2417efc3d4bd4cd9ca69f9548aa9e23692324c6d 100644
--- a/components/test_runner/test_runner.cc
+++ b/components/test_runner/test_runner.cc
@@ -3111,13 +3111,16 @@ void TestRunnerForSpecificView::RemoveWebPageOverlay() {
}
void TestRunnerForSpecificView::LayoutAndPaintAsync() {
- test_runner::LayoutAndPaintAsyncThen(web_view(), base::Closure());
+ test_runner::LayoutAndPaintAsyncThen(
+ web_view()->mainFrame()->toWebLocalFrame()->frameWidget(),
dcheng 2016/05/03 09:27:13 I think TestRunnerForSpecificView should actually
Łukasz Anforowicz 2016/05/03 16:09:55 TestRunnerForSpecificView has some view-specific t
lfg 2016/05/03 21:19:43 I think option 1 is similar to how the TestRunnerF
+ base::Closure());
}
void TestRunnerForSpecificView::LayoutAndPaintAsyncThen(
v8::Local<v8::Function> callback) {
test_runner::LayoutAndPaintAsyncThen(
- web_view(), CreateClosureThatPostsV8Callback(callback));
+ web_view()->mainFrame()->toWebLocalFrame()->frameWidget(),
+ CreateClosureThatPostsV8Callback(callback));
}
void TestRunnerForSpecificView::GetManifestThen(

Powered by Google App Engine
This is Rietveld 408576698