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

Unified Diff: components/test_runner/event_sender.cc

Issue 1840823002: Extract WebViewClient implementation out of WebTestProxyBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@separate-pixel-dump-code
Patch Set: Expanding a comment + an IWYU fix. 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
« no previous file with comments | « components/test_runner/BUILD.gn ('k') | components/test_runner/test_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/event_sender.cc
diff --git a/components/test_runner/event_sender.cc b/components/test_runner/event_sender.cc
index 393572482957e5cc3f4162a6fbb5fb366717c278..9be86de8c87af7bb0efd402707b467702711f8d6 100644
--- a/components/test_runner/event_sender.cc
+++ b/components/test_runner/event_sender.cc
@@ -1643,8 +1643,8 @@ void EventSender::ZoomPageIn() {
interfaces_->GetWindowList();
for (size_t i = 0; i < window_list.size(); ++i) {
- window_list.at(i)->GetWebView()->setZoomLevel(
- window_list.at(i)->GetWebView()->zoomLevel() + 1);
+ window_list.at(i)->web_view()->setZoomLevel(
+ window_list.at(i)->web_view()->zoomLevel() + 1);
}
}
@@ -1653,8 +1653,8 @@ void EventSender::ZoomPageOut() {
interfaces_->GetWindowList();
for (size_t i = 0; i < window_list.size(); ++i) {
- window_list.at(i)->GetWebView()->setZoomLevel(
- window_list.at(i)->GetWebView()->zoomLevel() - 1);
+ window_list.at(i)->web_view()->setZoomLevel(
+ window_list.at(i)->web_view()->zoomLevel() - 1);
}
}
@@ -1663,8 +1663,8 @@ void EventSender::SetPageZoomFactor(double zoom_factor) {
interfaces_->GetWindowList();
for (size_t i = 0; i < window_list.size(); ++i) {
- window_list.at(i)->GetWebView()->setZoomLevel(
- std::log(zoom_factor) / std::log(1.2));
+ window_list.at(i)->web_view()->setZoomLevel(std::log(zoom_factor) /
+ std::log(1.2));
}
}
« no previous file with comments | « components/test_runner/BUILD.gn ('k') | components/test_runner/test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698