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 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |