OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple 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 | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 10 matching lines...) Expand all Loading... |
21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #include "config.h" | 27 #include "config.h" |
28 #include "core/page/DOMWindow.h" | 28 #include "core/page/DOMWindow.h" |
29 | 29 |
30 #include <algorithm> | 30 #include <algorithm> |
31 #include "BeforeUnloadEvent.h" | |
32 #include "DOMSettableTokenList.h" | 31 #include "DOMSettableTokenList.h" |
33 #include "DOMStringList.h" | |
34 #include "DOMTokenList.h" | 32 #include "DOMTokenList.h" |
35 #include "DOMURL.h" | 33 #include "DOMURL.h" |
36 #include "DOMWindowNotifications.h" | 34 #include "DOMWindowNotifications.h" |
37 #include "DeviceMotionController.h" | |
38 #include "DeviceOrientationController.h" | |
39 #include "Document.h" | |
40 #include "Element.h" | |
41 #include "EventException.h" | |
42 #include "EventListener.h" | |
43 #include "EventNames.h" | |
44 #include "ExceptionCode.h" | |
45 #include "ExceptionCodePlaceholder.h" | |
46 #include "HTMLFrameOwnerElement.h" | 35 #include "HTMLFrameOwnerElement.h" |
47 #include "InspectorInstrumentation.h" | 36 #include "InspectorInstrumentation.h" |
48 #include "MessageEvent.h" | |
49 #include "PageTransitionEvent.h" | |
50 #include "RequestAnimationFrameCallback.h" | |
51 #include "ScheduledAction.h" | 37 #include "ScheduledAction.h" |
52 #include "ScriptCallStack.h" | 38 #include "ScriptCallStack.h" |
53 #include "ScriptCallStackFactory.h" | 39 #include "ScriptCallStackFactory.h" |
54 #include "ScriptController.h" | 40 #include "ScriptController.h" |
55 #include "SerializedScriptValue.h" | 41 #include "SerializedScriptValue.h" |
56 #include "core/css/CSSComputedStyleDeclaration.h" | 42 #include "core/css/CSSComputedStyleDeclaration.h" |
57 #include "core/css/CSSRuleList.h" | 43 #include "core/css/CSSRuleList.h" |
58 #include "core/css/DOMWindowCSS.h" | 44 #include "core/css/DOMWindowCSS.h" |
59 #include "core/css/MediaQueryList.h" | 45 #include "core/css/MediaQueryList.h" |
60 #include "core/css/MediaQueryMatcher.h" | 46 #include "core/css/MediaQueryMatcher.h" |
61 #include "core/css/StyleMedia.h" | 47 #include "core/css/StyleMedia.h" |
62 #include "core/css/StyleResolver.h" | 48 #include "core/css/StyleResolver.h" |
| 49 #include "core/dom/BeforeUnloadEvent.h" |
| 50 #include "core/dom/DeviceOrientationController.h" |
| 51 #include "core/dom/DOMStringList.h" |
| 52 #include "core/dom/Document.h" |
| 53 #include "core/dom/Element.h" |
| 54 #include "core/dom/EventException.h" |
| 55 #include "core/dom/EventListener.h" |
| 56 #include "core/dom/EventNames.h" |
| 57 #include "core/dom/ExceptionCode.h" |
| 58 #include "core/dom/ExceptionCodePlaceholder.h" |
| 59 #include "core/dom/MessageEvent.h" |
| 60 #include "core/dom/PageTransitionEvent.h" |
| 61 #include "core/dom/RequestAnimationFrameCallback.h" |
63 #include "core/editing/Editor.h" | 62 #include "core/editing/Editor.h" |
64 #include "core/history/BackForwardController.h" | 63 #include "core/history/BackForwardController.h" |
65 #include "core/loader/DocumentLoader.h" | 64 #include "core/loader/DocumentLoader.h" |
66 #include "core/loader/FrameLoadRequest.h" | 65 #include "core/loader/FrameLoadRequest.h" |
67 #include "core/loader/FrameLoader.h" | 66 #include "core/loader/FrameLoader.h" |
68 #include "core/loader/FrameLoaderClient.h" | 67 #include "core/loader/FrameLoaderClient.h" |
69 #include "core/loader/appcache/DOMApplicationCache.h" | 68 #include "core/loader/appcache/DOMApplicationCache.h" |
70 #include "core/page/BarInfo.h" | 69 #include "core/page/BarInfo.h" |
71 #include "core/page/Chrome.h" | 70 #include "core/page/Chrome.h" |
72 #include "core/page/ChromeClient.h" | 71 #include "core/page/ChromeClient.h" |
(...skipping 21 matching lines...) Expand all Loading... |
94 #include "core/page/Settings.h" | 93 #include "core/page/Settings.h" |
95 #include "core/page/WindowFeatures.h" | 94 #include "core/page/WindowFeatures.h" |
96 #include "core/page/WindowFocusAllowedIndicator.h" | 95 #include "core/page/WindowFocusAllowedIndicator.h" |
97 #include "core/platform/KURL.h" | 96 #include "core/platform/KURL.h" |
98 #include "core/platform/PlatformScreen.h" | 97 #include "core/platform/PlatformScreen.h" |
99 #include "core/platform/SuddenTermination.h" | 98 #include "core/platform/SuddenTermination.h" |
100 #include "core/platform/graphics/FloatRect.h" | 99 #include "core/platform/graphics/FloatRect.h" |
101 #include "core/storage/Storage.h" | 100 #include "core/storage/Storage.h" |
102 #include "core/storage/StorageArea.h" | 101 #include "core/storage/StorageArea.h" |
103 #include "core/storage/StorageNamespace.h" | 102 #include "core/storage/StorageNamespace.h" |
| 103 #include "modules/device_orientation/DeviceMotionController.h" |
104 #include <wtf/CurrentTime.h> | 104 #include <wtf/CurrentTime.h> |
105 #include <wtf/MainThread.h> | 105 #include <wtf/MainThread.h> |
106 #include <wtf/MathExtras.h> | 106 #include <wtf/MathExtras.h> |
107 #include <wtf/text/Base64.h> | 107 #include <wtf/text/Base64.h> |
108 #include <wtf/text/WTFString.h> | 108 #include <wtf/text/WTFString.h> |
109 | 109 |
110 using std::min; | 110 using std::min; |
111 using std::max; | 111 using std::max; |
112 | 112 |
113 namespace WebCore { | 113 namespace WebCore { |
(...skipping 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1885 WindowFeatures windowFeatures(dialogFeaturesString, screenAvailableRect(m_fr
ame->view())); | 1885 WindowFeatures windowFeatures(dialogFeaturesString, screenAvailableRect(m_fr
ame->view())); |
1886 Frame* dialogFrame = createWindow(urlString, emptyAtom, windowFeatures, | 1886 Frame* dialogFrame = createWindow(urlString, emptyAtom, windowFeatures, |
1887 activeWindow, firstFrame, m_frame, function, functionContext); | 1887 activeWindow, firstFrame, m_frame, function, functionContext); |
1888 if (!dialogFrame) | 1888 if (!dialogFrame) |
1889 return; | 1889 return; |
1890 UserGestureIndicatorDisabler disabler; | 1890 UserGestureIndicatorDisabler disabler; |
1891 dialogFrame->page()->chrome()->runModal(); | 1891 dialogFrame->page()->chrome()->runModal(); |
1892 } | 1892 } |
1893 | 1893 |
1894 } // namespace WebCore | 1894 } // namespace WebCore |
OLD | NEW |