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

Unified Diff: content/shell/renderer/test_runner/event_sender.cc

Issue 458723002: TestInterfaces to chromium c++ style, rename methods and remove un-used header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated Created 6 years, 4 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: content/shell/renderer/test_runner/event_sender.cc
diff --git a/content/shell/renderer/test_runner/event_sender.cc b/content/shell/renderer/test_runner/event_sender.cc
index ccdf6e91dce0218fff76f7697c21f047344e3426..f4cf3106f4c323166f84041b301860b8d896cd98 100644
--- a/content/shell/renderer/test_runner/event_sender.cc
+++ b/content/shell/renderer/test_runner/event_sender.cc
@@ -8,9 +8,9 @@
#include "base/logging.h"
#include "base/strings/stringprintf.h"
#include "content/public/common/page_zoom.h"
-#include "content/shell/renderer/test_runner/TestInterfaces.h"
#include "content/shell/renderer/test_runner/WebTestDelegate.h"
#include "content/shell/renderer/test_runner/mock_spell_check.h"
+#include "content/shell/renderer/test_runner/test_interfaces.h"
#include "content/shell/renderer/test_runner/web_test_proxy.h"
#include "gin/handle.h"
#include "gin/object_template_builder.h"
@@ -1426,7 +1426,8 @@ void EventSender::TextZoomOut() {
}
void EventSender::ZoomPageIn() {
- const std::vector<WebTestProxyBase*>& window_list = interfaces_->windowList();
+ const std::vector<WebTestProxyBase*>& window_list =
+ interfaces_->GetWindowList();
for (size_t i = 0; i < window_list.size(); ++i) {
window_list.at(i)->GetWebView()->setZoomLevel(
@@ -1435,7 +1436,8 @@ void EventSender::ZoomPageIn() {
}
void EventSender::ZoomPageOut() {
- const std::vector<WebTestProxyBase*>& window_list = interfaces_->windowList();
+ const std::vector<WebTestProxyBase*>& window_list =
+ interfaces_->GetWindowList();
for (size_t i = 0; i < window_list.size(); ++i) {
window_list.at(i)->GetWebView()->setZoomLevel(
@@ -1444,7 +1446,8 @@ void EventSender::ZoomPageOut() {
}
void EventSender::SetPageZoomFactor(double zoom_factor) {
- const std::vector<WebTestProxyBase*>& window_list = interfaces_->windowList();
+ const std::vector<WebTestProxyBase*>& window_list =
+ interfaces_->GetWindowList();
for (size_t i = 0; i < window_list.size(); ++i) {
window_list.at(i)->GetWebView()->setZoomLevel(
« no previous file with comments | « content/shell/renderer/test_runner/WebTestInterfaces.cpp ('k') | content/shell/renderer/test_runner/gamepad_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698