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

Side by Side Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2709813007: Remove WebViewClient::showVirtualKeyboardOnElementFocus() (Closed)
Patch Set: Made the test better Created 3 years, 9 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 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 if (WebViewClient* client = m_webView->client()) 1060 if (WebViewClient* client = m_webView->client())
1061 client->draggableRegionsChanged(); 1061 client->draggableRegionsChanged();
1062 } 1062 }
1063 1063
1064 void ChromeClientImpl::didAssociateFormControlsAfterLoad(LocalFrame* frame) { 1064 void ChromeClientImpl::didAssociateFormControlsAfterLoad(LocalFrame* frame) {
1065 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame); 1065 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame);
1066 if (webframe->autofillClient()) 1066 if (webframe->autofillClient())
1067 webframe->autofillClient()->didAssociateFormControlsDynamically(); 1067 webframe->autofillClient()->didAssociateFormControlsDynamically();
1068 } 1068 }
1069 1069
1070 void ChromeClientImpl::showVirtualKeyboardOnElementFocus() { 1070 void ChromeClientImpl::showVirtualKeyboardOnElementFocus(LocalFrame* frame) {
dcheng 2017/02/27 23:13:29 Nit: pass as mutable reference, as this should nev
EhsanK 2017/03/08 23:38:28 Thanks. You mean LocalFrame&?
1071 if (m_webView->client()) 1071 WebLocalFrameImpl::fromFrame(frame->localFrameRoot())
1072 m_webView->client()->showVirtualKeyboardOnElementFocus(); 1072 ->frameWidget()
1073 ->client()
1074 ->showVirtualKeyboardOnElementFocus();
1073 } 1075 }
1074 1076
1075 void ChromeClientImpl::showUnhandledTapUIIfNeeded( 1077 void ChromeClientImpl::showUnhandledTapUIIfNeeded(
1076 IntPoint tappedPositionInViewport, 1078 IntPoint tappedPositionInViewport,
1077 Node* tappedNode, 1079 Node* tappedNode,
1078 bool pageChanged) { 1080 bool pageChanged) {
1079 if (m_webView->client()) 1081 if (m_webView->client())
1080 m_webView->client()->showUnhandledTapUIIfNeeded( 1082 m_webView->client()->showUnhandledTapUIIfNeeded(
1081 WebPoint(tappedPositionInViewport), WebNode(tappedNode), pageChanged); 1083 WebPoint(tappedPositionInViewport), WebNode(tappedNode), pageChanged);
1082 } 1084 }
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 PresentationController::provideTo(frame, client->presentationClient()); 1221 PresentationController::provideTo(frame, client->presentationClient());
1220 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { 1222 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) {
1221 provideAudioOutputDeviceClientTo(frame, 1223 provideAudioOutputDeviceClientTo(frame,
1222 new AudioOutputDeviceClientImpl(frame)); 1224 new AudioOutputDeviceClientImpl(frame));
1223 } 1225 }
1224 if (RuntimeEnabledFeatures::installedAppEnabled()) 1226 if (RuntimeEnabledFeatures::installedAppEnabled())
1225 InstalledAppController::provideTo(frame, client->relatedAppsFetcher()); 1227 InstalledAppController::provideTo(frame, client->relatedAppsFetcher());
1226 } 1228 }
1227 1229
1228 } // namespace blink 1230 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698