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 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 webframe->autofillClient()->didAssociateFormControlsDynamically(); | 1074 webframe->autofillClient()->didAssociateFormControlsDynamically(); |
1075 } | 1075 } |
1076 | 1076 |
1077 void ChromeClientImpl::showVirtualKeyboardOnElementFocus(LocalFrame& frame) { | 1077 void ChromeClientImpl::showVirtualKeyboardOnElementFocus(LocalFrame& frame) { |
1078 WebLocalFrameImpl::fromFrame(frame.localFrameRoot()) | 1078 WebLocalFrameImpl::fromFrame(frame.localFrameRoot()) |
1079 ->frameWidget() | 1079 ->frameWidget() |
1080 ->client() | 1080 ->client() |
1081 ->showVirtualKeyboardOnElementFocus(); | 1081 ->showVirtualKeyboardOnElementFocus(); |
1082 } | 1082 } |
1083 | 1083 |
| 1084 void ChromeClientImpl::updateCompositionInfo(LocalFrame* frame, |
| 1085 bool immediateRequest) { |
| 1086 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); |
| 1087 WebFrameWidgetBase* widget = webFrame->localRoot()->frameWidget(); |
| 1088 WebWidgetClient* client = widget->client(); |
| 1089 if (!client) |
| 1090 return; |
| 1091 client->updateCompositionInfo(immediateRequest); |
| 1092 } |
| 1093 |
1084 void ChromeClientImpl::showUnhandledTapUIIfNeeded( | 1094 void ChromeClientImpl::showUnhandledTapUIIfNeeded( |
1085 IntPoint tappedPositionInViewport, | 1095 IntPoint tappedPositionInViewport, |
1086 Node* tappedNode, | 1096 Node* tappedNode, |
1087 bool pageChanged) { | 1097 bool pageChanged) { |
1088 if (m_webView->client()) | 1098 if (m_webView->client()) |
1089 m_webView->client()->showUnhandledTapUIIfNeeded( | 1099 m_webView->client()->showUnhandledTapUIIfNeeded( |
1090 WebPoint(tappedPositionInViewport), WebNode(tappedNode), pageChanged); | 1100 WebPoint(tappedPositionInViewport), WebNode(tappedNode), pageChanged); |
1091 } | 1101 } |
1092 | 1102 |
1093 void ChromeClientImpl::onMouseDown(Node* mouseDownNode) { | 1103 void ChromeClientImpl::onMouseDown(Node* mouseDownNode) { |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1227 if (RuntimeEnabledFeatures::presentationEnabled()) | 1237 if (RuntimeEnabledFeatures::presentationEnabled()) |
1228 PresentationController::provideTo(frame, client->presentationClient()); | 1238 PresentationController::provideTo(frame, client->presentationClient()); |
1229 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { | 1239 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { |
1230 provideAudioOutputDeviceClientTo(frame, | 1240 provideAudioOutputDeviceClientTo(frame, |
1231 new AudioOutputDeviceClientImpl(frame)); | 1241 new AudioOutputDeviceClientImpl(frame)); |
1232 } | 1242 } |
1233 InstalledAppController::provideTo(frame, client->getRelatedAppsFetcher()); | 1243 InstalledAppController::provideTo(frame, client->getRelatedAppsFetcher()); |
1234 } | 1244 } |
1235 | 1245 |
1236 } // namespace blink | 1246 } // namespace blink |
OLD | NEW |