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

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

Issue 14296003: Remove TOUCH_EVENTS and TOUCH_EVENT_TRACKING compile-time flags. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months 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 | Annotate | Revision Log
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 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 } 1669 }
1670 1670
1671 void DOMWindow::removeAllEventListeners() 1671 void DOMWindow::removeAllEventListeners()
1672 { 1672 {
1673 EventTarget::removeAllEventListeners(); 1673 EventTarget::removeAllEventListeners();
1674 1674
1675 if (DeviceMotionController* controller = DeviceMotionController::from(page() )) 1675 if (DeviceMotionController* controller = DeviceMotionController::from(page() ))
1676 controller->removeAllDeviceEventListeners(this); 1676 controller->removeAllDeviceEventListeners(this);
1677 if (DeviceOrientationController* controller = DeviceOrientationController::f rom(page())) 1677 if (DeviceOrientationController* controller = DeviceOrientationController::f rom(page()))
1678 controller->removeAllDeviceEventListeners(this); 1678 controller->removeAllDeviceEventListeners(this);
1679 #if ENABLE(TOUCH_EVENTS)
1680 if (Document* document = this->document()) 1679 if (Document* document = this->document())
1681 document->didRemoveEventTargetNode(document); 1680 document->didRemoveEventTargetNode(document);
1682 #endif
1683 1681
1684 removeAllUnloadEventListeners(this); 1682 removeAllUnloadEventListeners(this);
1685 removeAllBeforeUnloadEventListeners(this); 1683 removeAllBeforeUnloadEventListeners(this);
1686 } 1684 }
1687 1685
1688 void DOMWindow::captureEvents() 1686 void DOMWindow::captureEvents()
1689 { 1687 {
1690 // Not implemented. 1688 // Not implemented.
1691 } 1689 }
1692 1690
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
1939 WindowFeatures windowFeatures(dialogFeaturesString, screenAvailableRect(m_fr ame->view())); 1937 WindowFeatures windowFeatures(dialogFeaturesString, screenAvailableRect(m_fr ame->view()));
1940 Frame* dialogFrame = createWindow(urlString, emptyAtom, windowFeatures, 1938 Frame* dialogFrame = createWindow(urlString, emptyAtom, windowFeatures,
1941 activeWindow, firstFrame, m_frame, function, functionContext); 1939 activeWindow, firstFrame, m_frame, function, functionContext);
1942 if (!dialogFrame) 1940 if (!dialogFrame)
1943 return; 1941 return;
1944 UserGestureIndicatorDisabler disabler; 1942 UserGestureIndicatorDisabler disabler;
1945 dialogFrame->page()->chrome()->runModal(); 1943 dialogFrame->page()->chrome()->runModal();
1946 } 1944 }
1947 1945
1948 } // namespace WebCore 1946 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698