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

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

Issue 2315223003: Move didUpdateTextOfFocusedElementByNonUserInput from WebViewClient to WebWidgetClient. (Closed)
Patch Set: Created 4 years, 3 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 968 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 if (m_webView->client()) 979 if (m_webView->client())
980 m_webView->client()->didCancelCompositionOnSelectionChange(); 980 m_webView->client()->didCancelCompositionOnSelectionChange();
981 } 981 }
982 982
983 void ChromeClientImpl::willSetInputMethodState() 983 void ChromeClientImpl::willSetInputMethodState()
984 { 984 {
985 if (m_webView->client()) 985 if (m_webView->client())
986 m_webView->client()->resetInputMethod(); 986 m_webView->client()->resetInputMethod();
987 } 987 }
988 988
989 void ChromeClientImpl::didUpdateTextOfFocusedElementByNonUserInput() 989 void ChromeClientImpl::didUpdateTextOfFocusedElementByNonUserInput(LocalFrame& f rame)
990 { 990 {
991 if (m_webView->client()) 991 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame.localFrameR oot());
992 m_webView->client()->didUpdateTextOfFocusedElementByNonUserInput(); 992 webFrame->frameWidget()->client()->didUpdateTextOfFocusedElementByNonUserInp ut();
993 } 993 }
994 994
995 void ChromeClientImpl::showImeIfNeeded() 995 void ChromeClientImpl::showImeIfNeeded()
996 { 996 {
997 if (m_webView->client()) 997 if (m_webView->client())
998 m_webView->client()->showImeIfNeeded(); 998 m_webView->client()->showImeIfNeeded();
999 } 999 }
1000 1000
1001 void ChromeClientImpl::showUnhandledTapUIIfNeeded(IntPoint tappedPositionInViewp ort, Node* tappedNode, bool pageChanged) 1001 void ChromeClientImpl::showUnhandledTapUIIfNeeded(IntPoint tappedPositionInViewp ort, Node* tappedNode, bool pageChanged)
1002 { 1002 {
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 ScreenOrientationController::provideTo(frame, client ? client->webScreenOrie ntationClient() : nullptr); 1136 ScreenOrientationController::provideTo(frame, client ? client->webScreenOrie ntationClient() : nullptr);
1137 if (RuntimeEnabledFeatures::presentationEnabled()) 1137 if (RuntimeEnabledFeatures::presentationEnabled())
1138 PresentationController::provideTo(frame, client ? client->presentationCl ient() : nullptr); 1138 PresentationController::provideTo(frame, client ? client->presentationCl ient() : nullptr);
1139 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) 1139 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled())
1140 provideAudioOutputDeviceClientTo(frame, AudioOutputDeviceClientImpl::cre ate()); 1140 provideAudioOutputDeviceClientTo(frame, AudioOutputDeviceClientImpl::cre ate());
1141 if (RuntimeEnabledFeatures::installedAppEnabled()) 1141 if (RuntimeEnabledFeatures::installedAppEnabled())
1142 InstalledAppController::provideTo(frame, client ? client->installedAppCl ient() : nullptr); 1142 InstalledAppController::provideTo(frame, client ? client->installedAppCl ient() : nullptr);
1143 } 1143 }
1144 1144
1145 } // namespace blink 1145 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698