OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
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 | 34 |
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/Document.h" | 37 #include "core/dom/Document.h" |
38 #include "core/dom/Fullscreen.h" | 38 #include "core/dom/Fullscreen.h" |
39 #include "core/events/MessageEvent.h" | 39 #include "core/events/MessageEvent.h" |
40 #include "core/events/MouseEvent.h" | 40 #include "core/events/MouseEvent.h" |
41 #include "core/events/UIEventWithKeyState.h" | 41 #include "core/events/UIEventWithKeyState.h" |
42 #include "core/frame/FrameView.h" | 42 #include "core/frame/FrameView.h" |
43 #include "core/frame/Settings.h" | 43 #include "core/frame/Settings.h" |
44 #include "core/html/HTMLAppletElement.h" | |
45 #include "core/html/HTMLMediaElement.h" | 44 #include "core/html/HTMLMediaElement.h" |
| 45 #include "core/html/HTMLPlugInElement.h" |
46 #include "core/input/EventHandler.h" | 46 #include "core/input/EventHandler.h" |
47 #include "core/layout/HitTestResult.h" | 47 #include "core/layout/HitTestResult.h" |
48 #include "core/loader/DocumentLoader.h" | 48 #include "core/loader/DocumentLoader.h" |
49 #include "core/loader/FrameLoadRequest.h" | 49 #include "core/loader/FrameLoadRequest.h" |
50 #include "core/loader/FrameLoader.h" | 50 #include "core/loader/FrameLoader.h" |
51 #include "core/loader/HistoryItem.h" | 51 #include "core/loader/HistoryItem.h" |
52 #include "core/page/Page.h" | 52 #include "core/page/Page.h" |
53 #include "core/page/WindowFeatures.h" | 53 #include "core/page/WindowFeatures.h" |
54 #include "modules/device_light/DeviceLightController.h" | 54 #include "modules/device_light/DeviceLightController.h" |
55 #include "modules/device_orientation/DeviceMotionController.h" | 55 #include "modules/device_orientation/DeviceMotionController.h" |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 if (policy != AllowDetachedPlugin && !element->layoutObject()) { | 747 if (policy != AllowDetachedPlugin && !element->layoutObject()) { |
748 #if ENABLE(OILPAN) | 748 #if ENABLE(OILPAN) |
749 container->dispose(); | 749 container->dispose(); |
750 #endif | 750 #endif |
751 return nullptr; | 751 return nullptr; |
752 } | 752 } |
753 | 753 |
754 return container; | 754 return container; |
755 } | 755 } |
756 | 756 |
757 PassRefPtrWillBeRawPtr<Widget> FrameLoaderClientImpl::createJavaAppletWidget( | |
758 HTMLAppletElement* element, | |
759 const KURL& /* baseURL */, | |
760 const Vector<String>& paramNames, | |
761 const Vector<String>& paramValues) | |
762 { | |
763 return createPlugin(element, KURL(), paramNames, paramValues, | |
764 "application/x-java-applet", false, FailOnDetachedPlugin); | |
765 } | |
766 | |
767 PassOwnPtr<WebMediaPlayer> FrameLoaderClientImpl::createWebMediaPlayer( | 757 PassOwnPtr<WebMediaPlayer> FrameLoaderClientImpl::createWebMediaPlayer( |
768 HTMLMediaElement& htmlMediaElement, | 758 HTMLMediaElement& htmlMediaElement, |
769 const WebURL& url, | 759 const WebURL& url, |
770 WebMediaPlayerClient* client) | 760 WebMediaPlayerClient* client) |
771 { | 761 { |
772 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame( | 762 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame( |
773 htmlMediaElement.document().frame()); | 763 htmlMediaElement.document().frame()); |
774 | 764 |
775 if (!webFrame || !webFrame->client()) | 765 if (!webFrame || !webFrame->client()) |
776 return nullptr; | 766 return nullptr; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 | 946 |
957 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 947 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
958 { | 948 { |
959 if (m_webFrame->client()) { | 949 if (m_webFrame->client()) { |
960 m_webFrame->client()->suddenTerminationDisablerChanged( | 950 m_webFrame->client()->suddenTerminationDisablerChanged( |
961 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 951 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
962 } | 952 } |
963 } | 953 } |
964 | 954 |
965 } // namespace blink | 955 } // namespace blink |
OLD | NEW |