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 29 matching lines...) Expand all Loading... |
40 #include "core/dom/Node.h" | 40 #include "core/dom/Node.h" |
41 #include "core/frame/Console.h" | 41 #include "core/frame/Console.h" |
42 #include "core/frame/FrameHost.h" | 42 #include "core/frame/FrameHost.h" |
43 #include "core/frame/FrameView.h" | 43 #include "core/frame/FrameView.h" |
44 #include "core/frame/Settings.h" | 44 #include "core/frame/Settings.h" |
45 #include "core/html/HTMLInputElement.h" | 45 #include "core/html/HTMLInputElement.h" |
46 #include "core/html/forms/ColorChooser.h" | 46 #include "core/html/forms/ColorChooser.h" |
47 #include "core/html/forms/ColorChooserClient.h" | 47 #include "core/html/forms/ColorChooserClient.h" |
48 #include "core/html/forms/DateTimeChooser.h" | 48 #include "core/html/forms/DateTimeChooser.h" |
49 #include "core/layout/HitTestResult.h" | 49 #include "core/layout/HitTestResult.h" |
| 50 #include "core/layout/LayoutPart.h" |
50 #include "core/layout/compositing/CompositedSelectionBound.h" | 51 #include "core/layout/compositing/CompositedSelectionBound.h" |
51 #include "core/loader/DocumentLoader.h" | 52 #include "core/loader/DocumentLoader.h" |
52 #include "core/loader/FrameLoadRequest.h" | 53 #include "core/loader/FrameLoadRequest.h" |
53 #include "core/page/Page.h" | 54 #include "core/page/Page.h" |
54 #include "core/rendering/RenderPart.h" | |
55 #include "modules/accessibility/AXObject.h" | 55 #include "modules/accessibility/AXObject.h" |
56 #include "platform/Cursor.h" | 56 #include "platform/Cursor.h" |
57 #include "platform/FileChooser.h" | 57 #include "platform/FileChooser.h" |
58 #include "platform/PlatformScreen.h" | 58 #include "platform/PlatformScreen.h" |
59 #include "platform/RuntimeEnabledFeatures.h" | 59 #include "platform/RuntimeEnabledFeatures.h" |
60 #include "platform/exported/WrappedResourceRequest.h" | 60 #include "platform/exported/WrappedResourceRequest.h" |
61 #include "platform/geometry/IntRect.h" | 61 #include "platform/geometry/IntRect.h" |
62 #include "platform/graphics/GraphicsLayer.h" | 62 #include "platform/graphics/GraphicsLayer.h" |
63 #include "platform/weborigin/SecurityOrigin.h" | 63 #include "platform/weborigin/SecurityOrigin.h" |
64 #include "public/platform/Platform.h" | 64 #include "public/platform/Platform.h" |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 LayoutObject* object = result.innerNonSharedNode()->renderer(); | 555 LayoutObject* object = result.innerNonSharedNode()->renderer(); |
556 if (object && object->isRenderPart()) { | 556 if (object && object->isLayoutPart()) { |
557 Widget* widget = toRenderPart(object)->widget(); | 557 Widget* widget = toLayoutPart(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); |
566 } | 566 } |
567 | 567 |
(...skipping 322 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 |