| 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 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 if (!result.scrollbar()) { | 640 if (!result.scrollbar()) { |
| 641 // Find out if the mouse is over a link, and if so, let our UI know... | 641 // Find out if the mouse is over a link, and if so, let our UI know... |
| 642 if (result.isLiveLink() && | 642 if (result.isLiveLink() && |
| 643 !result.absoluteLinkURL().getString().isEmpty()) { | 643 !result.absoluteLinkURL().getString().isEmpty()) { |
| 644 url = result.absoluteLinkURL(); | 644 url = result.absoluteLinkURL(); |
| 645 } else if (result.innerNode() && | 645 } else if (result.innerNode() && |
| 646 (isHTMLObjectElement(*result.innerNode()) || | 646 (isHTMLObjectElement(*result.innerNode()) || |
| 647 isHTMLEmbedElement(*result.innerNode()))) { | 647 isHTMLEmbedElement(*result.innerNode()))) { |
| 648 LayoutObject* object = result.innerNode()->layoutObject(); | 648 LayoutObject* object = result.innerNode()->layoutObject(); |
| 649 if (object && object->isLayoutPart()) { | 649 if (object && object->isLayoutPart()) { |
| 650 FrameViewBase* frameViewBase = toLayoutPart(object)->frameViewBase(); | 650 PluginView* pluginView = toLayoutPart(object)->plugin(); |
| 651 if (frameViewBase && frameViewBase->isPluginContainer()) { | 651 if (pluginView && pluginView->isPluginContainer()) { |
| 652 WebPluginContainerImpl* plugin = | 652 WebPluginContainerImpl* plugin = toWebPluginContainerImpl(pluginView); |
| 653 toWebPluginContainerImpl(frameViewBase); | |
| 654 url = plugin->plugin()->linkAtPosition( | 653 url = plugin->plugin()->linkAtPosition( |
| 655 result.roundedPointInInnerNodeFrame()); | 654 result.roundedPointInInnerNodeFrame()); |
| 656 } | 655 } |
| 657 } | 656 } |
| 658 } | 657 } |
| 659 } | 658 } |
| 660 | 659 |
| 661 m_webView->client()->setMouseOverURL(url); | 660 m_webView->client()->setMouseOverURL(url); |
| 662 } | 661 } |
| 663 | 662 |
| (...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1230 PresentationController::provideTo(frame, client->presentationClient()); | 1229 PresentationController::provideTo(frame, client->presentationClient()); |
| 1231 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { | 1230 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { |
| 1232 provideAudioOutputDeviceClientTo(frame, | 1231 provideAudioOutputDeviceClientTo(frame, |
| 1233 new AudioOutputDeviceClientImpl(frame)); | 1232 new AudioOutputDeviceClientImpl(frame)); |
| 1234 } | 1233 } |
| 1235 if (RuntimeEnabledFeatures::installedAppEnabled()) | 1234 if (RuntimeEnabledFeatures::installedAppEnabled()) |
| 1236 InstalledAppController::provideTo(frame, client->getRelatedAppsFetcher()); | 1235 InstalledAppController::provideTo(frame, client->getRelatedAppsFetcher()); |
| 1237 } | 1236 } |
| 1238 | 1237 |
| 1239 } // namespace blink | 1238 } // namespace blink |
| OLD | NEW |