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

Unified Diff: third_party/WebKit/Source/web/tests/TouchActionTest.cpp

Issue 2626133002: Candidate fix for PointerEvent-OOPIF combination not working. (Closed)
Patch Set: Undo whitespace change to render_widget.cc Created 3 years, 11 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 | « third_party/WebKit/Source/web/WebPagePopupImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/TouchActionTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/TouchActionTest.cpp b/third_party/WebKit/Source/web/tests/TouchActionTest.cpp
index 395d78266dd257f90de798c419817f1e8a2cd566..1992d78a3a532dca18cb150c55d8df37ef8ae2c0 100644
--- a/third_party/WebKit/Source/web/tests/TouchActionTest.cpp
+++ b/third_party/WebKit/Source/web/tests/TouchActionTest.cpp
@@ -63,10 +63,10 @@ using blink::testing::runPendingTasks;
namespace blink {
-class TouchActionTrackingWebViewClient
- : public FrameTestHelpers::TestWebViewClient {
+class TouchActionTrackingWebWidgetClient
+ : public FrameTestHelpers::TestWebWidgetClient {
public:
- TouchActionTrackingWebViewClient()
+ TouchActionTrackingWebWidgetClient()
: m_actionSetCount(0), m_action(WebTouchActionAuto) {}
// WebWidgetClient methods
@@ -113,17 +113,17 @@ class TouchActionTest : public ::testing::Test {
void runShadowDOMTest(std::string file);
void runIFrameTest(std::string file);
void sendTouchEvent(WebView*, WebInputEvent::Type, IntPoint clientPoint);
- WebView* setupTest(std::string file, TouchActionTrackingWebViewClient&);
+ WebView* setupTest(std::string file, TouchActionTrackingWebWidgetClient&);
void runTestOnTree(ContainerNode* root,
WebView*,
- TouchActionTrackingWebViewClient&);
+ TouchActionTrackingWebWidgetClient&);
std::string m_baseURL;
FrameTestHelpers::WebViewHelper m_webViewHelper;
};
void TouchActionTest::runTouchActionTest(std::string file) {
- TouchActionTrackingWebViewClient client;
+ TouchActionTrackingWebWidgetClient client;
// runTouchActionTest() loads a document in a frame, setting up a
// nested message loop. Should any Oilpan GC happen while it is in
@@ -146,7 +146,7 @@ void TouchActionTest::runTouchActionTest(std::string file) {
}
void TouchActionTest::runShadowDOMTest(std::string file) {
- TouchActionTrackingWebViewClient client;
+ TouchActionTrackingWebWidgetClient client;
WebView* webView = setupTest(file, client);
@@ -174,7 +174,7 @@ void TouchActionTest::runShadowDOMTest(std::string file) {
}
void TouchActionTest::runIFrameTest(std::string file) {
- TouchActionTrackingWebViewClient client;
+ TouchActionTrackingWebWidgetClient client;
WebView* webView = setupTest(file, client);
WebFrame* curFrame = webView->mainFrame()->firstChild();
@@ -192,13 +192,14 @@ void TouchActionTest::runIFrameTest(std::string file) {
m_webViewHelper.reset();
}
-WebView* TouchActionTest::setupTest(std::string file,
- TouchActionTrackingWebViewClient& client) {
+WebView* TouchActionTest::setupTest(
+ std::string file,
+ TouchActionTrackingWebWidgetClient& client) {
URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseURL),
WebString::fromUTF8(file));
// Note that JavaScript must be enabled for shadow DOM tests.
WebView* webView =
- m_webViewHelper.initializeAndLoad(m_baseURL + file, true, 0, &client);
+ m_webViewHelper.initializeAndLoad(m_baseURL + file, true, 0, 0, &client);
// Set size to enable hit testing, and avoid line wrapping for consistency
// with browser.
@@ -222,9 +223,10 @@ IntRect windowClipRect(const FrameView& frameView) {
return enclosingIntRect(clipRect);
}
-void TouchActionTest::runTestOnTree(ContainerNode* root,
- WebView* webView,
- TouchActionTrackingWebViewClient& client) {
+void TouchActionTest::runTestOnTree(
+ ContainerNode* root,
+ WebView* webView,
+ TouchActionTrackingWebWidgetClient& client) {
// Find all elements to test the touch-action of in the document.
DummyExceptionStateForTesting es;
« no previous file with comments | « third_party/WebKit/Source/web/WebPagePopupImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698