Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: Source/WebCore/page/DOMWindow.cpp

Issue 11638044: Revert 138207 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/dom/Document.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after
1678 void DOMWindow::removeAllEventListeners() 1678 void DOMWindow::removeAllEventListeners()
1679 { 1679 {
1680 EventTarget::removeAllEventListeners(); 1680 EventTarget::removeAllEventListeners();
1681 1681
1682 #if ENABLE(DEVICE_ORIENTATION) 1682 #if ENABLE(DEVICE_ORIENTATION)
1683 if (DeviceMotionController* controller = DeviceMotionController::from(page() )) 1683 if (DeviceMotionController* controller = DeviceMotionController::from(page() ))
1684 controller->removeAllDeviceEventListeners(this); 1684 controller->removeAllDeviceEventListeners(this);
1685 if (DeviceOrientationController* controller = DeviceOrientationController::f rom(page())) 1685 if (DeviceOrientationController* controller = DeviceOrientationController::f rom(page()))
1686 controller->removeAllDeviceEventListeners(this); 1686 controller->removeAllDeviceEventListeners(this);
1687 #endif 1687 #endif
1688 #if ENABLE(TOUCH_EVENTS)
1689 if (Document* document = this->document())
1690 document->didRemoveEventTargetNode(document);
1691 #endif
1688 1692
1689 removeAllUnloadEventListeners(this); 1693 removeAllUnloadEventListeners(this);
1690 removeAllBeforeUnloadEventListeners(this); 1694 removeAllBeforeUnloadEventListeners(this);
1691 } 1695 }
1692 1696
1693 void DOMWindow::captureEvents() 1697 void DOMWindow::captureEvents()
1694 { 1698 {
1695 // Not implemented. 1699 // Not implemented.
1696 } 1700 }
1697 1701
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1940 WindowFeatures windowFeatures(dialogFeaturesString, screenAvailableRect(m_fr ame->view())); 1944 WindowFeatures windowFeatures(dialogFeaturesString, screenAvailableRect(m_fr ame->view()));
1941 Frame* dialogFrame = createWindow(urlString, emptyAtom, windowFeatures, 1945 Frame* dialogFrame = createWindow(urlString, emptyAtom, windowFeatures,
1942 activeWindow, firstFrame, m_frame, function, functionContext); 1946 activeWindow, firstFrame, m_frame, function, functionContext);
1943 if (!dialogFrame) 1947 if (!dialogFrame)
1944 return; 1948 return;
1945 1949
1946 dialogFrame->page()->chrome()->runModal(); 1950 dialogFrame->page()->chrome()->runModal();
1947 } 1951 }
1948 1952
1949 } // namespace WebCore 1953 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/dom/Document.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698