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 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1670 } | 1670 } |
1671 | 1671 |
1672 void DOMWindow::removeAllEventListeners() | 1672 void DOMWindow::removeAllEventListeners() |
1673 { | 1673 { |
1674 EventTarget::removeAllEventListeners(); | 1674 EventTarget::removeAllEventListeners(); |
1675 | 1675 |
1676 if (DeviceMotionController* controller = DeviceMotionController::from(page()
)) | 1676 if (DeviceMotionController* controller = DeviceMotionController::from(page()
)) |
1677 controller->removeAllDeviceEventListeners(this); | 1677 controller->removeAllDeviceEventListeners(this); |
1678 if (DeviceOrientationController* controller = DeviceOrientationController::f
rom(page())) | 1678 if (DeviceOrientationController* controller = DeviceOrientationController::f
rom(page())) |
1679 controller->removeAllDeviceEventListeners(this); | 1679 controller->removeAllDeviceEventListeners(this); |
| 1680 #if ENABLE(TOUCH_EVENTS) |
1680 if (Document* document = this->document()) | 1681 if (Document* document = this->document()) |
1681 document->didRemoveEventTargetNode(document); | 1682 document->didRemoveEventTargetNode(document); |
| 1683 #endif |
1682 | 1684 |
1683 removeAllUnloadEventListeners(this); | 1685 removeAllUnloadEventListeners(this); |
1684 removeAllBeforeUnloadEventListeners(this); | 1686 removeAllBeforeUnloadEventListeners(this); |
1685 } | 1687 } |
1686 | 1688 |
1687 void DOMWindow::captureEvents() | 1689 void DOMWindow::captureEvents() |
1688 { | 1690 { |
1689 // Not implemented. | 1691 // Not implemented. |
1690 } | 1692 } |
1691 | 1693 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1938 WindowFeatures windowFeatures(dialogFeaturesString, screenAvailableRect(m_fr
ame->view())); | 1940 WindowFeatures windowFeatures(dialogFeaturesString, screenAvailableRect(m_fr
ame->view())); |
1939 Frame* dialogFrame = createWindow(urlString, emptyAtom, windowFeatures, | 1941 Frame* dialogFrame = createWindow(urlString, emptyAtom, windowFeatures, |
1940 activeWindow, firstFrame, m_frame, function, functionContext); | 1942 activeWindow, firstFrame, m_frame, function, functionContext); |
1941 if (!dialogFrame) | 1943 if (!dialogFrame) |
1942 return; | 1944 return; |
1943 UserGestureIndicatorDisabler disabler; | 1945 UserGestureIndicatorDisabler disabler; |
1944 dialogFrame->page()->chrome()->runModal(); | 1946 dialogFrame->page()->chrome()->runModal(); |
1945 } | 1947 } |
1946 | 1948 |
1947 } // namespace WebCore | 1949 } // namespace WebCore |
OLD | NEW |