| 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 bool ChromeClientImpl::hadFormInteraction() const { | 253 bool ChromeClientImpl::hadFormInteraction() const { |
| 254 return m_webView->pageImportanceSignals() && | 254 return m_webView->pageImportanceSignals() && |
| 255 m_webView->pageImportanceSignals()->hadFormInteraction(); | 255 m_webView->pageImportanceSignals()->hadFormInteraction(); |
| 256 } | 256 } |
| 257 | 257 |
| 258 void ChromeClientImpl::startDragging(LocalFrame* frame, | 258 void ChromeClientImpl::startDragging(LocalFrame* frame, |
| 259 const WebDragData& dragData, | 259 const WebDragData& dragData, |
| 260 WebDragOperationsMask mask, | 260 WebDragOperationsMask mask, |
| 261 const WebImage& dragImage, | 261 const WebImage& dragImage, |
| 262 const WebPoint& dragImageOffset) { | 262 const WebPoint& dragImageOffset) { |
| 263 m_webView->startDragging(frame, dragData, mask, dragImage, dragImageOffset); | 263 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); |
| 264 WebReferrerPolicy policy = webFrame->document().referrerPolicy(); |
| 265 m_webView->setDoingDragAndDrop(true); |
| 266 webFrame->localRoot()->frameWidget()->client()->startDragging( |
| 267 policy, dragData, mask, dragImage, dragImageOffset); |
| 264 } | 268 } |
| 265 | 269 |
| 266 bool ChromeClientImpl::acceptsLoadDrops() const { | 270 bool ChromeClientImpl::acceptsLoadDrops() const { |
| 267 return !m_webView->client() || m_webView->client()->acceptsLoadDrops(); | 271 return !m_webView->client() || m_webView->client()->acceptsLoadDrops(); |
| 268 } | 272 } |
| 269 | 273 |
| 270 namespace { | 274 namespace { |
| 271 | 275 |
| 272 void updatePolicyForEvent(const WebInputEvent* inputEvent, | 276 void updatePolicyForEvent(const WebInputEvent* inputEvent, |
| 273 NavigationPolicy* policy) { | 277 NavigationPolicy* policy) { |
| (...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1155 if (RuntimeEnabledFeatures::presentationEnabled()) | 1159 if (RuntimeEnabledFeatures::presentationEnabled()) |
| 1156 PresentationController::provideTo(frame, client->presentationClient()); | 1160 PresentationController::provideTo(frame, client->presentationClient()); |
| 1157 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) | 1161 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) |
| 1158 provideAudioOutputDeviceClientTo(frame, | 1162 provideAudioOutputDeviceClientTo(frame, |
| 1159 AudioOutputDeviceClientImpl::create()); | 1163 AudioOutputDeviceClientImpl::create()); |
| 1160 if (RuntimeEnabledFeatures::installedAppEnabled()) | 1164 if (RuntimeEnabledFeatures::installedAppEnabled()) |
| 1161 InstalledAppController::provideTo(frame, client->installedAppClient()); | 1165 InstalledAppController::provideTo(frame, client->installedAppClient()); |
| 1162 } | 1166 } |
| 1163 | 1167 |
| 1164 } // namespace blink | 1168 } // namespace blink |
| OLD | NEW |