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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 #include "core/html/forms/ColorChooser.h" | 49 #include "core/html/forms/ColorChooser.h" |
50 #include "core/html/forms/ColorChooserClient.h" | 50 #include "core/html/forms/ColorChooserClient.h" |
51 #include "core/html/forms/DateTimeChooser.h" | 51 #include "core/html/forms/DateTimeChooser.h" |
52 #include "core/loader/DocumentLoader.h" | 52 #include "core/loader/DocumentLoader.h" |
53 #include "core/loader/FrameLoadRequest.h" | 53 #include "core/loader/FrameLoadRequest.h" |
54 #include "core/page/Page.h" | 54 #include "core/page/Page.h" |
55 #include "core/page/PagePopupDriver.h" | 55 #include "core/page/PagePopupDriver.h" |
56 #include "core/page/WindowFeatures.h" | 56 #include "core/page/WindowFeatures.h" |
57 #include "core/rendering/HitTestResult.h" | 57 #include "core/rendering/HitTestResult.h" |
58 #include "core/rendering/RenderPart.h" | 58 #include "core/rendering/RenderPart.h" |
59 #include "core/rendering/RenderWidget.h" | |
60 #include "core/rendering/compositing/CompositedSelectionBound.h" | 59 #include "core/rendering/compositing/CompositedSelectionBound.h" |
61 #include "platform/Cursor.h" | 60 #include "platform/Cursor.h" |
62 #include "platform/FileChooser.h" | 61 #include "platform/FileChooser.h" |
63 #include "platform/NotImplemented.h" | 62 #include "platform/NotImplemented.h" |
64 #include "platform/PlatformScreen.h" | 63 #include "platform/PlatformScreen.h" |
65 #include "platform/RuntimeEnabledFeatures.h" | 64 #include "platform/RuntimeEnabledFeatures.h" |
66 #include "platform/exported/WrappedResourceRequest.h" | 65 #include "platform/exported/WrappedResourceRequest.h" |
67 #include "platform/geometry/FloatRect.h" | 66 #include "platform/geometry/FloatRect.h" |
68 #include "platform/geometry/IntRect.h" | 67 #include "platform/geometry/IntRect.h" |
69 #include "platform/graphics/GraphicsLayer.h" | 68 #include "platform/graphics/GraphicsLayer.h" |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 return; | 542 return; |
544 | 543 |
545 WebURL url; | 544 WebURL url; |
546 // Find out if the mouse is over a link, and if so, let our UI know... | 545 // Find out if the mouse is over a link, and if so, let our UI know... |
547 if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) { | 546 if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) { |
548 url = result.absoluteLinkURL(); | 547 url = result.absoluteLinkURL(); |
549 } else if (result.innerNonSharedNode() | 548 } else if (result.innerNonSharedNode() |
550 && (isHTMLObjectElement(*result.innerNonSharedNode()) | 549 && (isHTMLObjectElement(*result.innerNonSharedNode()) |
551 || isHTMLEmbedElement(*result.innerNonSharedNode()))) { | 550 || isHTMLEmbedElement(*result.innerNonSharedNode()))) { |
552 RenderObject* object = result.innerNonSharedNode()->renderer(); | 551 RenderObject* object = result.innerNonSharedNode()->renderer(); |
553 if (object && object->isWidget()) { | 552 if (object && object->isRenderPart()) { |
554 Widget* widget = toRenderWidget(object)->widget(); | 553 Widget* widget = toRenderPart(object)->widget(); |
555 if (widget && widget->isPluginContainer()) { | 554 if (widget && widget->isPluginContainer()) { |
556 WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget
); | 555 WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget
); |
557 url = plugin->plugin()->linkAtPosition(result.roundedPointInInne
rNodeFrame()); | 556 url = plugin->plugin()->linkAtPosition(result.roundedPointInInne
rNodeFrame()); |
558 } | 557 } |
559 } | 558 } |
560 } | 559 } |
561 | 560 |
562 m_webView->client()->setMouseOverURL(url); | 561 m_webView->client()->setMouseOverURL(url); |
563 } | 562 } |
564 | 563 |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
888 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp
utElement)); | 887 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp
utElement)); |
889 } | 888 } |
890 | 889 |
891 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) | 890 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) |
892 { | 891 { |
893 if (m_webView->autofillClient()) | 892 if (m_webView->autofillClient()) |
894 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); | 893 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); |
895 } | 894 } |
896 | 895 |
897 } // namespace blink | 896 } // namespace blink |
OLD | NEW |