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

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

Issue 13905007: Remove the last remaining PLATFORM() bits from WebCore. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fffffffffff 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
« no previous file with comments | « Source/WebCore/html/HTMLSelectElement.cpp ('k') | Source/WebCore/platform/ScrollAnimator.h » ('j') | 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, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies)
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 1739 matching lines...) Expand 10 before | Expand all | Expand 10 after
1750 MouseEventWithHitTestResults mev = prepareMouseEvent(request, mouseEvent); 1750 MouseEventWithHitTestResults mev = prepareMouseEvent(request, mouseEvent);
1751 Frame* subframe = m_capturingMouseEventsNode.get() ? subframeForTargetNode(m _capturingMouseEventsNode.get()) : subframeForHitTestResult(mev); 1751 Frame* subframe = m_capturingMouseEventsNode.get() ? subframeForTargetNode(m _capturingMouseEventsNode.get()) : subframeForHitTestResult(mev);
1752 if (m_eventHandlerWillResetCapturingMouseEventsNode) 1752 if (m_eventHandlerWillResetCapturingMouseEventsNode)
1753 m_capturingMouseEventsNode = 0; 1753 m_capturingMouseEventsNode = 0;
1754 if (subframe && passMouseReleaseEventToSubframe(mev, subframe)) 1754 if (subframe && passMouseReleaseEventToSubframe(mev, subframe))
1755 return true; 1755 return true;
1756 1756
1757 bool swallowMouseUpEvent = !dispatchMouseEvent(eventNames().mouseupEvent, me v.targetNode(), true, m_clickCount, mouseEvent, false); 1757 bool swallowMouseUpEvent = !dispatchMouseEvent(eventNames().mouseupEvent, me v.targetNode(), true, m_clickCount, mouseEvent, false);
1758 1758
1759 bool contextMenuEvent = mouseEvent.button() == RightButton; 1759 bool contextMenuEvent = mouseEvent.button() == RightButton;
1760 #if PLATFORM(CHROMIUM) && OS(DARWIN) 1760 #if OS(DARWIN)
1761 // FIXME: The Mac port achieves the same behavior by checking whether the co ntext menu is currently open in WebPage::mouseEvent(). Consider merging the impl ementations. 1761 // FIXME: The Mac port achieves the same behavior by checking whether the co ntext menu is currently open in WebPage::mouseEvent(). Consider merging the impl ementations.
1762 if (mouseEvent.button() == LeftButton && mouseEvent.modifiers() & PlatformEv ent::CtrlKey) 1762 if (mouseEvent.button() == LeftButton && mouseEvent.modifiers() & PlatformEv ent::CtrlKey)
1763 contextMenuEvent = true; 1763 contextMenuEvent = true;
1764 #endif 1764 #endif
1765 1765
1766 bool swallowClickEvent = m_clickCount > 0 && !contextMenuEvent && mouseIsRel easedOnPressedElement(mev.targetNode(), m_clickNode.get()) && !dispatchMouseEven t(eventNames().clickEvent, mev.targetNode(), true, m_clickCount, mouseEvent, tru e); 1766 bool swallowClickEvent = m_clickCount > 0 && !contextMenuEvent && mouseIsRel easedOnPressedElement(mev.targetNode(), m_clickNode.get()) && !dispatchMouseEven t(eventNames().clickEvent, mev.targetNode(), true, m_clickCount, mouseEvent, tru e);
1767 1767
1768 if (m_resizeLayer) { 1768 if (m_resizeLayer) {
1769 m_resizeLayer->setInResizeMode(false); 1769 m_resizeLayer->setInResizeMode(false);
1770 m_resizeLayer = 0; 1770 m_resizeLayer = 0;
(...skipping 2227 matching lines...) Expand 10 before | Expand all | Expand 10 after
3998 unsigned EventHandler::accessKeyModifiers() 3998 unsigned EventHandler::accessKeyModifiers()
3999 { 3999 {
4000 #if OS(DARWIN) 4000 #if OS(DARWIN)
4001 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; 4001 return PlatformEvent::CtrlKey | PlatformEvent::AltKey;
4002 #else 4002 #else
4003 return PlatformEvent::AltKey; 4003 return PlatformEvent::AltKey;
4004 #endif 4004 #endif
4005 } 4005 }
4006 4006
4007 } // namespace WebCore 4007 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/html/HTMLSelectElement.cpp ('k') | Source/WebCore/platform/ScrollAnimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698