Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2764313002: Move plugins to be stored in HTMLPlugInElement. (Closed)
Patch Set: Use plugin and frame in updateGeometries Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698