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

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2853623002: [refactor] Fix autofill features for payments when the form is inside an OOPIF (Closed)
Patch Set: Created 3 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 | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/public/web/WebAutofillClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
index 86f75cdc649c88a72f14986394e45e2aaf713de5..ebb9abb62fd56332f6e2c85aac793638dccbc6cb 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -1097,9 +1097,13 @@ void ChromeClientImpl::ShowUnhandledTapUIIfNeeded(
page_changed);
}
-void ChromeClientImpl::OnMouseDown(Node* mouse_down_node) {
- if (web_view_->Client())
- web_view_->Client()->OnMouseDown(WebNode(mouse_down_node));
+void ChromeClientImpl::OnMouseDown(Node& mouse_down_node) {
+ if (auto* fill_client =
+ WebLocalFrameImpl::FromFrame(mouse_down_node.GetDocument().GetFrame())
+ ->AutofillClient()) {
+ fill_client->DidReceiveLeftMouseDownOrGestureTapInNode(
+ WebNode(&mouse_down_node));
+ }
}
void ChromeClientImpl::HandleKeyboardEventOnTextField(
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/public/web/WebAutofillClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698