OLD | NEW |
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 #include "core/svg/SVGElementInstance.h" | 104 #include "core/svg/SVGElementInstance.h" |
105 #include "core/svg/SVGUseElement.h" | 105 #include "core/svg/SVGUseElement.h" |
106 #endif | 106 #endif |
107 | 107 |
108 #if ENABLE(CSS_IMAGE_SET) | 108 #if ENABLE(CSS_IMAGE_SET) |
109 #include "core/rendering/style/StyleCachedImageSet.h" | 109 #include "core/rendering/style/StyleCachedImageSet.h" |
110 #endif | 110 #endif |
111 | 111 |
112 namespace WebCore { | 112 namespace WebCore { |
113 | 113 |
| 114 DEFINE_GC_MAP(EventHandler); |
| 115 |
114 using namespace HTMLNames; | 116 using namespace HTMLNames; |
115 | 117 |
116 // The link drag hysteresis is much larger than the others because there | 118 // The link drag hysteresis is much larger than the others because there |
117 // needs to be enough space to cancel the link press without starting a link dra
g, | 119 // needs to be enough space to cancel the link press without starting a link dra
g, |
118 // and because dragging links is rare. | 120 // and because dragging links is rare. |
119 const int LinkDragHysteresis = 40; | 121 const int LinkDragHysteresis = 40; |
120 const int ImageDragHysteresis = 5; | 122 const int ImageDragHysteresis = 5; |
121 const int TextDragHysteresis = 3; | 123 const int TextDragHysteresis = 3; |
122 const int GeneralDragHysteresis = 3; | 124 const int GeneralDragHysteresis = 3; |
123 | 125 |
(...skipping 3878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4002 | 4004 |
4003 unsigned EventHandler::accessKeyModifiers() | 4005 unsigned EventHandler::accessKeyModifiers() |
4004 { | 4006 { |
4005 #if OS(DARWIN) | 4007 #if OS(DARWIN) |
4006 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; | 4008 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; |
4007 #else | 4009 #else |
4008 return PlatformEvent::AltKey; | 4010 return PlatformEvent::AltKey; |
4009 #endif | 4011 #endif |
4010 } | 4012 } |
4011 | 4013 |
| 4014 void EventHandler::accept(Visitor* visitor) const |
| 4015 { |
| 4016 visitor->visit(m_mousePressNode); |
| 4017 visitor->visit(m_capturingMouseEventsNode); |
| 4018 visitor->visit(m_nodeUnderMouse); |
| 4019 visitor->visit(m_lastNodeUnderMouse); |
| 4020 visitor->visit(m_clickNode); |
| 4021 visitor->visit(m_dragTarget); |
| 4022 visitor->visit(m_frameSetBeingResized); |
| 4023 visitor->visit(m_latchedWheelEventNode); |
| 4024 visitor->visit(m_previousWheelScrolledNode); |
| 4025 visitor->visit(m_originatingTouchPointDocument); |
| 4026 visitor->visit(m_scrollGestureHandlingNode); |
| 4027 visitor->visit(m_previousGestureScrolledNode); |
| 4028 } |
| 4029 |
4012 } // namespace WebCore | 4030 } // namespace WebCore |
OLD | NEW |