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