| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); | 263 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); |
| 264 WebReferrerPolicy policy = webFrame->document().referrerPolicy(); | 264 WebReferrerPolicy policy = webFrame->document().getReferrerPolicy(); |
| 265 webFrame->localRoot()->frameWidget()->startDragging( | 265 webFrame->localRoot()->frameWidget()->startDragging( |
| 266 policy, dragData, mask, dragImage, dragImageOffset); | 266 policy, dragData, mask, dragImage, dragImageOffset); |
| 267 } | 267 } |
| 268 | 268 |
| 269 bool ChromeClientImpl::acceptsLoadDrops() const { | 269 bool ChromeClientImpl::acceptsLoadDrops() const { |
| 270 return !m_webView->client() || m_webView->client()->acceptsLoadDrops(); | 270 return !m_webView->client() || m_webView->client()->acceptsLoadDrops(); |
| 271 } | 271 } |
| 272 | 272 |
| 273 namespace { | 273 namespace { |
| 274 | 274 |
| (...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1165 if (RuntimeEnabledFeatures::presentationEnabled()) | 1165 if (RuntimeEnabledFeatures::presentationEnabled()) |
| 1166 PresentationController::provideTo(frame, client->presentationClient()); | 1166 PresentationController::provideTo(frame, client->presentationClient()); |
| 1167 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) | 1167 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) |
| 1168 provideAudioOutputDeviceClientTo(frame, | 1168 provideAudioOutputDeviceClientTo(frame, |
| 1169 AudioOutputDeviceClientImpl::create()); | 1169 AudioOutputDeviceClientImpl::create()); |
| 1170 if (RuntimeEnabledFeatures::installedAppEnabled()) | 1170 if (RuntimeEnabledFeatures::installedAppEnabled()) |
| 1171 InstalledAppController::provideTo(frame, client->installedAppClient()); | 1171 InstalledAppController::provideTo(frame, client->installedAppClient()); |
| 1172 } | 1172 } |
| 1173 | 1173 |
| 1174 } // namespace blink | 1174 } // namespace blink |
| OLD | NEW |