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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 if (policy != AllowDetachedPlugin && !element->layoutObject()) { | 773 if (policy != AllowDetachedPlugin && !element->layoutObject()) { |
774 #if ENABLE(OILPAN) | 774 #if ENABLE(OILPAN) |
775 container->dispose(); | 775 container->dispose(); |
776 #endif | 776 #endif |
777 return nullptr; | 777 return nullptr; |
778 } | 778 } |
779 | 779 |
780 return container; | 780 return container; |
781 } | 781 } |
782 | 782 |
783 PassRefPtrWillBeRawPtr<Widget> FrameLoaderClientImpl::createJavaAppletWidget( | |
784 HTMLAppletElement* element, | |
785 const KURL& /* baseURL */, | |
786 const Vector<String>& paramNames, | |
787 const Vector<String>& paramValues) | |
788 { | |
789 return createPlugin(element, KURL(), paramNames, paramValues, | |
790 "application/x-java-applet", false, FailOnDetachedPlugin); | |
791 } | |
792 | |
793 PassOwnPtr<WebMediaPlayer> FrameLoaderClientImpl::createWebMediaPlayer( | 783 PassOwnPtr<WebMediaPlayer> FrameLoaderClientImpl::createWebMediaPlayer( |
794 HTMLMediaElement& htmlMediaElement, | 784 HTMLMediaElement& htmlMediaElement, |
795 const WebURL& url, | 785 const WebURL& url, |
796 WebMediaPlayerClient* client) | 786 WebMediaPlayerClient* client) |
797 { | 787 { |
798 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame( | 788 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame( |
799 htmlMediaElement.document().frame()); | 789 htmlMediaElement.document().frame()); |
800 | 790 |
801 if (!webFrame || !webFrame->client()) | 791 if (!webFrame || !webFrame->client()) |
802 return nullptr; | 792 return nullptr; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
982 | 972 |
983 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 973 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
984 { | 974 { |
985 if (m_webFrame->client()) { | 975 if (m_webFrame->client()) { |
986 m_webFrame->client()->suddenTerminationDisablerChanged( | 976 m_webFrame->client()->suddenTerminationDisablerChanged( |
987 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 977 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
988 } | 978 } |
989 } | 979 } |
990 | 980 |
991 } // namespace blink | 981 } // namespace blink |
OLD | NEW |