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 23 matching lines...) Expand all Loading... |
34 #include <memory> | 34 #include <memory> |
35 #include "bindings/core/v8/ScriptController.h" | 35 #include "bindings/core/v8/ScriptController.h" |
36 #include "core/HTMLNames.h" | 36 #include "core/HTMLNames.h" |
37 #include "core/dom/AXObjectCache.h" | 37 #include "core/dom/AXObjectCache.h" |
38 #include "core/dom/Document.h" | 38 #include "core/dom/Document.h" |
39 #include "core/dom/Fullscreen.h" | 39 #include "core/dom/Fullscreen.h" |
40 #include "core/dom/Node.h" | 40 #include "core/dom/Node.h" |
41 #include "core/events/UIEventWithKeyState.h" | 41 #include "core/events/UIEventWithKeyState.h" |
42 #include "core/events/WebInputEventConversion.h" | 42 #include "core/events/WebInputEventConversion.h" |
43 #include "core/exported/WebFileChooserCompletionImpl.h" | 43 #include "core/exported/WebFileChooserCompletionImpl.h" |
| 44 #include "core/exported/WebPluginContainerBase.h" |
44 #include "core/exported/WebViewBase.h" | 45 #include "core/exported/WebViewBase.h" |
45 #include "core/frame/FrameView.h" | 46 #include "core/frame/FrameView.h" |
46 #include "core/frame/Settings.h" | 47 #include "core/frame/Settings.h" |
47 #include "core/frame/VisualViewport.h" | 48 #include "core/frame/VisualViewport.h" |
48 #include "core/html/HTMLInputElement.h" | 49 #include "core/html/HTMLInputElement.h" |
49 #include "core/html/forms/ColorChooser.h" | 50 #include "core/html/forms/ColorChooser.h" |
50 #include "core/html/forms/ColorChooserClient.h" | 51 #include "core/html/forms/ColorChooserClient.h" |
51 #include "core/html/forms/DateTimeChooser.h" | 52 #include "core/html/forms/DateTimeChooser.h" |
52 #include "core/layout/HitTestResult.h" | 53 #include "core/layout/HitTestResult.h" |
53 #include "core/layout/LayoutPart.h" | 54 #include "core/layout/LayoutPart.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 #include "web/DateTimeChooserImpl.h" | 116 #include "web/DateTimeChooserImpl.h" |
116 #include "web/DevToolsEmulator.h" | 117 #include "web/DevToolsEmulator.h" |
117 #include "web/ExternalDateTimeChooser.h" | 118 #include "web/ExternalDateTimeChooser.h" |
118 #include "web/ExternalPopupMenu.h" | 119 #include "web/ExternalPopupMenu.h" |
119 #include "web/IndexedDBClientImpl.h" | 120 #include "web/IndexedDBClientImpl.h" |
120 #include "web/LocalFileSystemClient.h" | 121 #include "web/LocalFileSystemClient.h" |
121 #include "web/NavigatorContentUtilsClientImpl.h" | 122 #include "web/NavigatorContentUtilsClientImpl.h" |
122 #include "web/PopupMenuImpl.h" | 123 #include "web/PopupMenuImpl.h" |
123 #include "web/WebFrameWidgetImpl.h" | 124 #include "web/WebFrameWidgetImpl.h" |
124 #include "web/WebLocalFrameImpl.h" | 125 #include "web/WebLocalFrameImpl.h" |
125 #include "web/WebPluginContainerImpl.h" | |
126 #include "web/WebRemoteFrameImpl.h" | 126 #include "web/WebRemoteFrameImpl.h" |
127 #include "web/WebSettingsImpl.h" | 127 #include "web/WebSettingsImpl.h" |
128 | 128 |
129 namespace blink { | 129 namespace blink { |
130 | 130 |
131 namespace { | 131 namespace { |
132 | 132 |
133 const char* DialogTypeToString(ChromeClient::DialogType dialog_type) { | 133 const char* DialogTypeToString(ChromeClient::DialogType dialog_type) { |
134 switch (dialog_type) { | 134 switch (dialog_type) { |
135 case ChromeClient::kAlertDialog: | 135 case ChromeClient::kAlertDialog: |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 if (result.IsLiveLink() && | 651 if (result.IsLiveLink() && |
652 !result.AbsoluteLinkURL().GetString().IsEmpty()) { | 652 !result.AbsoluteLinkURL().GetString().IsEmpty()) { |
653 url = result.AbsoluteLinkURL(); | 653 url = result.AbsoluteLinkURL(); |
654 } else if (result.InnerNode() && | 654 } else if (result.InnerNode() && |
655 (isHTMLObjectElement(*result.InnerNode()) || | 655 (isHTMLObjectElement(*result.InnerNode()) || |
656 isHTMLEmbedElement(*result.InnerNode()))) { | 656 isHTMLEmbedElement(*result.InnerNode()))) { |
657 LayoutObject* object = result.InnerNode()->GetLayoutObject(); | 657 LayoutObject* object = result.InnerNode()->GetLayoutObject(); |
658 if (object && object->IsLayoutPart()) { | 658 if (object && object->IsLayoutPart()) { |
659 PluginView* plugin_view = ToLayoutPart(object)->Plugin(); | 659 PluginView* plugin_view = ToLayoutPart(object)->Plugin(); |
660 if (plugin_view && plugin_view->IsPluginContainer()) { | 660 if (plugin_view && plugin_view->IsPluginContainer()) { |
661 WebPluginContainerImpl* plugin = | 661 WebPluginContainerBase* plugin = |
662 ToWebPluginContainerImpl(plugin_view); | 662 ToWebPluginContainerBase(plugin_view); |
663 url = plugin->Plugin()->LinkAtPosition( | 663 url = plugin->Plugin()->LinkAtPosition( |
664 result.RoundedPointInInnerNodeFrame()); | 664 result.RoundedPointInInnerNodeFrame()); |
665 } | 665 } |
666 } | 666 } |
667 } | 667 } |
668 } | 668 } |
669 | 669 |
670 web_view_->Client()->SetMouseOverURL(url); | 670 web_view_->Client()->SetMouseOverURL(url); |
671 } | 671 } |
672 | 672 |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1256 if (RuntimeEnabledFeatures::presentationEnabled()) | 1256 if (RuntimeEnabledFeatures::presentationEnabled()) |
1257 PresentationController::ProvideTo(frame, client->PresentationClient()); | 1257 PresentationController::ProvideTo(frame, client->PresentationClient()); |
1258 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { | 1258 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { |
1259 ProvideAudioOutputDeviceClientTo(frame, | 1259 ProvideAudioOutputDeviceClientTo(frame, |
1260 new AudioOutputDeviceClientImpl(frame)); | 1260 new AudioOutputDeviceClientImpl(frame)); |
1261 } | 1261 } |
1262 InstalledAppController::ProvideTo(frame, client->GetRelatedAppsFetcher()); | 1262 InstalledAppController::ProvideTo(frame, client->GetRelatedAppsFetcher()); |
1263 } | 1263 } |
1264 | 1264 |
1265 } // namespace blink | 1265 } // namespace blink |
OLD | NEW |