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

Unified Diff: third_party/WebKit/Source/web/WebPagePopupImpl.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
Index: third_party/WebKit/Source/web/WebPagePopupImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
index 880e19fa3abdc023744b1266cc2903d4b36b1115..34ad8d9dda5a1f3bb45fd428d4c8cb27c43f7ed5 100644
--- a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
+++ b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp
@@ -201,8 +201,14 @@ class PagePopupChromeClient final : public EmptyChromeClient {
return false;
}
- void setTouchAction(TouchAction touchAction) override {
- if (WebViewClient* client = m_popup->m_webView->client())
+ void setTouchAction(LocalFrame* frame, TouchAction touchAction) override {
+ DCHECK(frame);
+ WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame);
+ WebFrameWidgetBase* widget = webFrame->localRoot()->frameWidget();
+ if (!widget)
+ return;
+
+ if (WebWidgetClient* client = widget->client())
client->setTouchAction(static_cast<WebTouchAction>(touchAction));
}
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.cpp ('k') | third_party/WebKit/Source/web/tests/TouchActionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698