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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 if (!m_webView->client()) | 534 if (!m_webView->client()) |
535 return; | 535 return; |
536 | 536 |
537 WebURL url; | 537 WebURL url; |
538 // Find out if the mouse is over a link, and if so, let our UI know... | 538 // Find out if the mouse is over a link, and if so, let our UI know... |
539 if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) { | 539 if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) { |
540 url = result.absoluteLinkURL(); | 540 url = result.absoluteLinkURL(); |
541 } else if (result.innerNonSharedNode() | 541 } else if (result.innerNonSharedNode() |
542 && (isHTMLObjectElement(*result.innerNonSharedNode()) | 542 && (isHTMLObjectElement(*result.innerNonSharedNode()) |
543 || isHTMLEmbedElement(*result.innerNonSharedNode()))) { | 543 || isHTMLEmbedElement(*result.innerNonSharedNode()))) { |
544 LayoutObject* object = result.innerNonSharedNode()->renderer(); | 544 LayoutObject* object = result.innerNonSharedNode()->layoutObject(); |
545 if (object && object->isLayoutPart()) { | 545 if (object && object->isLayoutPart()) { |
546 Widget* widget = toLayoutPart(object)->widget(); | 546 Widget* widget = toLayoutPart(object)->widget(); |
547 if (widget && widget->isPluginContainer()) { | 547 if (widget && widget->isPluginContainer()) { |
548 WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget
); | 548 WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget
); |
549 url = plugin->plugin()->linkAtPosition(result.roundedPointInInne
rNodeFrame()); | 549 url = plugin->plugin()->linkAtPosition(result.roundedPointInInne
rNodeFrame()); |
550 } | 550 } |
551 } | 551 } |
552 } | 552 } |
553 | 553 |
554 m_webView->client()->setMouseOverURL(url); | 554 m_webView->client()->setMouseOverURL(url); |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView() && m_webVie
w->pinchVirtualViewportEnabled()) | 884 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView() && m_webVie
w->pinchVirtualViewportEnabled()) |
885 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie
w(m_webView->layerTreeView()); | 885 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie
w(m_webView->layerTreeView()); |
886 } | 886 } |
887 | 887 |
888 void ChromeClientImpl::didUpdateTopControls() const | 888 void ChromeClientImpl::didUpdateTopControls() const |
889 { | 889 { |
890 m_webView->didUpdateTopControls(); | 890 m_webView->didUpdateTopControls(); |
891 } | 891 } |
892 | 892 |
893 } // namespace blink | 893 } // namespace blink |
OLD | NEW |