Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1079 void ChromeClientImpl::showUnhandledTapUIIfNeeded( | 1079 void ChromeClientImpl::showUnhandledTapUIIfNeeded( |
| 1080 IntPoint tappedPositionInViewport, | 1080 IntPoint tappedPositionInViewport, |
| 1081 Node* tappedNode, | 1081 Node* tappedNode, |
| 1082 bool pageChanged) { | 1082 bool pageChanged) { |
| 1083 if (m_webView->client()) | 1083 if (m_webView->client()) |
| 1084 m_webView->client()->showUnhandledTapUIIfNeeded( | 1084 m_webView->client()->showUnhandledTapUIIfNeeded( |
| 1085 WebPoint(tappedPositionInViewport), WebNode(tappedNode), pageChanged); | 1085 WebPoint(tappedPositionInViewport), WebNode(tappedNode), pageChanged); |
| 1086 } | 1086 } |
| 1087 | 1087 |
| 1088 void ChromeClientImpl::onMouseDown(Node* mouseDownNode) { | 1088 void ChromeClientImpl::onMouseDown(Node* mouseDownNode) { |
| 1089 if (m_webView->client()) | 1089 if (!mouseDownNode) |
|
dcheng
2017/04/03 19:17:04
Can this actually be null?
EhsanK
2017/04/04 18:01:49
Thanks. Apparently it can't. Code search returns t
| |
| 1090 m_webView->client()->onMouseDown(WebNode(mouseDownNode)); | 1090 return; |
| 1091 | |
| 1092 WebLocalFrameImpl::fromFrame(mouseDownNode->document().frame()) | |
| 1093 ->client() | |
| 1094 ->didCompleteLeftMouseDownOrGestureTapInNode(WebNode(mouseDownNode)); | |
| 1091 } | 1095 } |
| 1092 | 1096 |
| 1093 void ChromeClientImpl::handleKeyboardEventOnTextField( | 1097 void ChromeClientImpl::handleKeyboardEventOnTextField( |
| 1094 HTMLInputElement& inputElement, | 1098 HTMLInputElement& inputElement, |
| 1095 KeyboardEvent& event) { | 1099 KeyboardEvent& event) { |
| 1096 WebLocalFrameImpl* webframe = | 1100 WebLocalFrameImpl* webframe = |
| 1097 WebLocalFrameImpl::fromFrame(inputElement.document().frame()); | 1101 WebLocalFrameImpl::fromFrame(inputElement.document().frame()); |
| 1098 if (webframe->autofillClient()) | 1102 if (webframe->autofillClient()) |
| 1099 webframe->autofillClient()->textFieldDidReceiveKeyDown( | 1103 webframe->autofillClient()->textFieldDidReceiveKeyDown( |
|
dcheng
2017/04/03 19:17:04
It seems like this is plumbed through WebAutofillC
EhsanK
2017/04/04 18:01:49
This is a good suggestion. However, the call right
dcheng
2017/04/05 16:59:33
vabr@, does this make sense to you?
vabr (Chromium)
2017/04/10 06:48:27
Indeed, this makes sense to me, based on this sign
EhsanK
2017/04/13 20:00:59
So I will go ahead and work on the refactor within
| |
| 1100 WebInputElement(&inputElement), WebKeyboardEventBuilder(event)); | 1104 WebInputElement(&inputElement), WebKeyboardEventBuilder(event)); |
| 1101 } | 1105 } |
| 1102 | 1106 |
| 1103 void ChromeClientImpl::didChangeValueInTextField( | 1107 void ChromeClientImpl::didChangeValueInTextField( |
| 1104 HTMLFormControlElement& element) { | 1108 HTMLFormControlElement& element) { |
| 1105 WebLocalFrameImpl* webframe = | 1109 WebLocalFrameImpl* webframe = |
| 1106 WebLocalFrameImpl::fromFrame(element.document().frame()); | 1110 WebLocalFrameImpl::fromFrame(element.document().frame()); |
| 1107 if (webframe->autofillClient()) | 1111 if (webframe->autofillClient()) |
| 1108 webframe->autofillClient()->textFieldDidChange( | 1112 webframe->autofillClient()->textFieldDidChange( |
| 1109 WebFormControlElement(&element)); | 1113 WebFormControlElement(&element)); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1223 PresentationController::provideTo(frame, client->presentationClient()); | 1227 PresentationController::provideTo(frame, client->presentationClient()); |
| 1224 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { | 1228 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { |
| 1225 provideAudioOutputDeviceClientTo(frame, | 1229 provideAudioOutputDeviceClientTo(frame, |
| 1226 new AudioOutputDeviceClientImpl(frame)); | 1230 new AudioOutputDeviceClientImpl(frame)); |
| 1227 } | 1231 } |
| 1228 if (RuntimeEnabledFeatures::installedAppEnabled()) | 1232 if (RuntimeEnabledFeatures::installedAppEnabled()) |
| 1229 InstalledAppController::provideTo(frame, client->relatedAppsFetcher()); | 1233 InstalledAppController::provideTo(frame, client->relatedAppsFetcher()); |
| 1230 } | 1234 } |
| 1231 | 1235 |
| 1232 } // namespace blink | 1236 } // namespace blink |
| OLD | NEW |