| 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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 // Find out if the mouse is over a link, and if so, let our UI know... | 579 // Find out if the mouse is over a link, and if so, let our UI know... |
| 580 if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) | 580 if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) |
| 581 url = result.absoluteLinkURL(); | 581 url = result.absoluteLinkURL(); |
| 582 else if (result.innerNonSharedNode() | 582 else if (result.innerNonSharedNode() |
| 583 && (result.innerNonSharedNode()->hasTagName(HTMLNames::objectTag) | 583 && (result.innerNonSharedNode()->hasTagName(HTMLNames::objectTag) |
| 584 || result.innerNonSharedNode()->hasTagName(HTMLNames::embedTag)
)) { | 584 || result.innerNonSharedNode()->hasTagName(HTMLNames::embedTag)
)) { |
| 585 RenderObject* object = result.innerNonSharedNode()->renderer(); | 585 RenderObject* object = result.innerNonSharedNode()->renderer(); |
| 586 if (object && object->isWidget()) { | 586 if (object && object->isWidget()) { |
| 587 Widget* widget = toRenderWidget(object)->widget(); | 587 Widget* widget = toRenderWidget(object)->widget(); |
| 588 if (widget && widget->isPluginContainer()) { | 588 if (widget && widget->isPluginContainer()) { |
| 589 WebPluginContainerImpl* plugin = static_cast<WebPluginContainerI
mpl*>(widget); | 589 WebPluginContainerImpl* plugin = toPluginContainerImpl(widget); |
| 590 url = plugin->plugin()->linkAtPosition(result.roundedPointInInne
rNodeFrame()); | 590 url = plugin->plugin()->linkAtPosition(result.roundedPointInInne
rNodeFrame()); |
| 591 } | 591 } |
| 592 } | 592 } |
| 593 } | 593 } |
| 594 | 594 |
| 595 m_webView->client()->setMouseOverURL(url); | 595 m_webView->client()->setMouseOverURL(url); |
| 596 } | 596 } |
| 597 | 597 |
| 598 void ChromeClientImpl::setToolTip(const String& tooltipText, TextDirection dir) | 598 void ChromeClientImpl::setToolTip(const String& tooltipText, TextDirection dir) |
| 599 { | 599 { |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 { | 1016 { |
| 1017 } | 1017 } |
| 1018 | 1018 |
| 1019 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
me, const String& baseURL, const String& url, const String& title) | 1019 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
me, const String& baseURL, const String& url, const String& title) |
| 1020 { | 1020 { |
| 1021 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); | 1021 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); |
| 1022 } | 1022 } |
| 1023 #endif | 1023 #endif |
| 1024 | 1024 |
| 1025 } // namespace WebKit | 1025 } // namespace WebKit |
| OLD | NEW |