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

Side by Side 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, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 void ChromeClientImpl::ShowUnhandledTapUIIfNeeded( 1090 void ChromeClientImpl::ShowUnhandledTapUIIfNeeded(
1091 IntPoint tapped_position_in_viewport, 1091 IntPoint tapped_position_in_viewport,
1092 Node* tapped_node, 1092 Node* tapped_node,
1093 bool page_changed) { 1093 bool page_changed) {
1094 if (web_view_->Client()) 1094 if (web_view_->Client())
1095 web_view_->Client()->ShowUnhandledTapUIIfNeeded( 1095 web_view_->Client()->ShowUnhandledTapUIIfNeeded(
1096 WebPoint(tapped_position_in_viewport), WebNode(tapped_node), 1096 WebPoint(tapped_position_in_viewport), WebNode(tapped_node),
1097 page_changed); 1097 page_changed);
1098 } 1098 }
1099 1099
1100 void ChromeClientImpl::OnMouseDown(Node* mouse_down_node) { 1100 void ChromeClientImpl::OnMouseDown(Node& mouse_down_node) {
1101 if (web_view_->Client()) 1101 if (auto* fill_client =
1102 web_view_->Client()->OnMouseDown(WebNode(mouse_down_node)); 1102 WebLocalFrameImpl::FromFrame(mouse_down_node.GetDocument().GetFrame())
1103 ->AutofillClient()) {
1104 fill_client->DidReceiveLeftMouseDownOrGestureTapInNode(
1105 WebNode(&mouse_down_node));
1106 }
1103 } 1107 }
1104 1108
1105 void ChromeClientImpl::HandleKeyboardEventOnTextField( 1109 void ChromeClientImpl::HandleKeyboardEventOnTextField(
1106 HTMLInputElement& input_element, 1110 HTMLInputElement& input_element,
1107 KeyboardEvent& event) { 1111 KeyboardEvent& event) {
1108 WebLocalFrameImpl* webframe = 1112 WebLocalFrameImpl* webframe =
1109 WebLocalFrameImpl::FromFrame(input_element.GetDocument().GetFrame()); 1113 WebLocalFrameImpl::FromFrame(input_element.GetDocument().GetFrame());
1110 if (webframe->AutofillClient()) 1114 if (webframe->AutofillClient())
1111 webframe->AutofillClient()->TextFieldDidReceiveKeyDown( 1115 webframe->AutofillClient()->TextFieldDidReceiveKeyDown(
1112 WebInputElement(&input_element), WebKeyboardEventBuilder(event)); 1116 WebInputElement(&input_element), WebKeyboardEventBuilder(event));
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 if (RuntimeEnabledFeatures::presentationEnabled()) 1238 if (RuntimeEnabledFeatures::presentationEnabled())
1235 PresentationController::ProvideTo(frame, client->PresentationClient()); 1239 PresentationController::ProvideTo(frame, client->PresentationClient());
1236 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { 1240 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) {
1237 ProvideAudioOutputDeviceClientTo(frame, 1241 ProvideAudioOutputDeviceClientTo(frame,
1238 new AudioOutputDeviceClientImpl(frame)); 1242 new AudioOutputDeviceClientImpl(frame));
1239 } 1243 }
1240 InstalledAppController::ProvideTo(frame, client->GetRelatedAppsFetcher()); 1244 InstalledAppController::ProvideTo(frame, client->GetRelatedAppsFetcher());
1241 } 1245 }
1242 1246
1243 } // namespace blink 1247 } // namespace blink
OLDNEW
« 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