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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 if (!result.scrollbar()) { | 633 if (!result.scrollbar()) { |
634 // Find out if the mouse is over a link, and if so, let our UI know... | 634 // Find out if the mouse is over a link, and if so, let our UI know... |
635 if (result.isLiveLink() && | 635 if (result.isLiveLink() && |
636 !result.absoluteLinkURL().getString().isEmpty()) { | 636 !result.absoluteLinkURL().getString().isEmpty()) { |
637 url = result.absoluteLinkURL(); | 637 url = result.absoluteLinkURL(); |
638 } else if (result.innerNode() && | 638 } else if (result.innerNode() && |
639 (isHTMLObjectElement(*result.innerNode()) || | 639 (isHTMLObjectElement(*result.innerNode()) || |
640 isHTMLEmbedElement(*result.innerNode()))) { | 640 isHTMLEmbedElement(*result.innerNode()))) { |
641 LayoutObject* object = result.innerNode()->layoutObject(); | 641 LayoutObject* object = result.innerNode()->layoutObject(); |
642 if (object && object->isLayoutPart()) { | 642 if (object && object->isLayoutPart()) { |
643 FrameViewBase* frameViewBase = toLayoutPart(object)->frameViewBase(); | 643 PluginView* pluginView = toLayoutPart(object)->plugin(); |
644 if (frameViewBase && frameViewBase->isPluginContainer()) { | 644 if (pluginView && pluginView->isPluginContainer()) { |
645 WebPluginContainerImpl* plugin = | 645 WebPluginContainerImpl* plugin = toWebPluginContainerImpl(pluginView); |
646 toWebPluginContainerImpl(frameViewBase); | |
647 url = plugin->plugin()->linkAtPosition( | 646 url = plugin->plugin()->linkAtPosition( |
648 result.roundedPointInInnerNodeFrame()); | 647 result.roundedPointInInnerNodeFrame()); |
649 } | 648 } |
650 } | 649 } |
651 } | 650 } |
652 } | 651 } |
653 | 652 |
654 m_webView->client()->setMouseOverURL(url); | 653 m_webView->client()->setMouseOverURL(url); |
655 } | 654 } |
656 | 655 |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1223 PresentationController::provideTo(frame, client->presentationClient()); | 1222 PresentationController::provideTo(frame, client->presentationClient()); |
1224 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { | 1223 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { |
1225 provideAudioOutputDeviceClientTo(frame, | 1224 provideAudioOutputDeviceClientTo(frame, |
1226 new AudioOutputDeviceClientImpl(frame)); | 1225 new AudioOutputDeviceClientImpl(frame)); |
1227 } | 1226 } |
1228 if (RuntimeEnabledFeatures::installedAppEnabled()) | 1227 if (RuntimeEnabledFeatures::installedAppEnabled()) |
1229 InstalledAppController::provideTo(frame, client->relatedAppsFetcher()); | 1228 InstalledAppController::provideTo(frame, client->relatedAppsFetcher()); |
1230 } | 1229 } |
1231 | 1230 |
1232 } // namespace blink | 1231 } // namespace blink |
OLD | NEW |