| 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 if (!m_webView->client()) | 544 if (!m_webView->client()) |
| 545 return; | 545 return; |
| 546 | 546 |
| 547 WebURL url; | 547 WebURL url; |
| 548 // Find out if the mouse is over a link, and if so, let our UI know... | 548 // Find out if the mouse is over a link, and if so, let our UI know... |
| 549 if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) { | 549 if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) { |
| 550 url = result.absoluteLinkURL(); | 550 url = result.absoluteLinkURL(); |
| 551 } else if (result.innerNonSharedNode() | 551 } else if (result.innerNonSharedNode() |
| 552 && (isHTMLObjectElement(*result.innerNonSharedNode()) | 552 && (isHTMLObjectElement(*result.innerNonSharedNode()) |
| 553 || isHTMLEmbedElement(*result.innerNonSharedNode()))) { | 553 || isHTMLEmbedElement(*result.innerNonSharedNode()))) { |
| 554 RenderObject* object = result.innerNonSharedNode()->renderer(); | 554 LayoutObject* object = result.innerNonSharedNode()->renderer(); |
| 555 if (object && object->isRenderPart()) { | 555 if (object && object->isRenderPart()) { |
| 556 Widget* widget = toRenderPart(object)->widget(); | 556 Widget* widget = toRenderPart(object)->widget(); |
| 557 if (widget && widget->isPluginContainer()) { | 557 if (widget && widget->isPluginContainer()) { |
| 558 WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget
); | 558 WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget
); |
| 559 url = plugin->plugin()->linkAtPosition(result.roundedPointInInne
rNodeFrame()); | 559 url = plugin->plugin()->linkAtPosition(result.roundedPointInInne
rNodeFrame()); |
| 560 } | 560 } |
| 561 } | 561 } |
| 562 } | 562 } |
| 563 | 563 |
| 564 m_webView->client()->setMouseOverURL(url); | 564 m_webView->client()->setMouseOverURL(url); |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 886 webframe->autofillClient()->dataListOptionsChanged(WebInputElement(&inpu
t)); | 886 webframe->autofillClient()->dataListOptionsChanged(WebInputElement(&inpu
t)); |
| 887 } | 887 } |
| 888 | 888 |
| 889 void ChromeClientImpl::registerViewportLayers() const | 889 void ChromeClientImpl::registerViewportLayers() const |
| 890 { | 890 { |
| 891 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView() && m_webVie
w->pinchVirtualViewportEnabled()) | 891 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView() && m_webVie
w->pinchVirtualViewportEnabled()) |
| 892 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie
w(m_webView->layerTreeView()); | 892 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie
w(m_webView->layerTreeView()); |
| 893 } | 893 } |
| 894 | 894 |
| 895 } // namespace blink | 895 } // namespace blink |
| OLD | NEW |