| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 , m_activeIntervalTimer(this, &EventHandler::activeIntervalTimerFired) | 177 , m_activeIntervalTimer(this, &EventHandler::activeIntervalTimerFired) |
| 178 , m_lastShowPressTimestamp(0) | 178 , m_lastShowPressTimestamp(0) |
| 179 { | 179 { |
| 180 } | 180 } |
| 181 | 181 |
| 182 EventHandler::~EventHandler() | 182 EventHandler::~EventHandler() |
| 183 { | 183 { |
| 184 ASSERT(!m_fakeMouseMoveEventTimer.isActive()); | 184 ASSERT(!m_fakeMouseMoveEventTimer.isActive()); |
| 185 } | 185 } |
| 186 | 186 |
| 187 void EventHandler::trace(Visitor* visitor) | |
| 188 { | |
| 189 #if ENABLE(OILPAN) | |
| 190 visitor->trace(m_mousePressNode); | |
| 191 visitor->trace(m_capturingMouseEventsNode); | |
| 192 visitor->trace(m_nodeUnderMouse); | |
| 193 visitor->trace(m_lastNodeUnderMouse); | |
| 194 visitor->trace(m_clickNode); | |
| 195 visitor->trace(m_dragTarget); | |
| 196 visitor->trace(m_latchedWheelEventNode); | |
| 197 visitor->trace(m_previousWheelScrolledNode); | |
| 198 visitor->trace(m_targetForTouchID); | |
| 199 visitor->trace(m_touchSequenceDocument); | |
| 200 visitor->trace(m_scrollGestureHandlingNode); | |
| 201 visitor->trace(m_previousGestureScrolledNode); | |
| 202 visitor->trace(m_lastDeferredTapElement); | |
| 203 #endif | |
| 204 } | |
| 205 | |
| 206 void EventHandler::clear() | 187 void EventHandler::clear() |
| 207 { | 188 { |
| 208 m_hoverTimer.stop(); | 189 m_hoverTimer.stop(); |
| 209 m_cursorUpdateTimer.stop(); | 190 m_cursorUpdateTimer.stop(); |
| 210 m_fakeMouseMoveEventTimer.stop(); | 191 m_fakeMouseMoveEventTimer.stop(); |
| 211 m_activeIntervalTimer.stop(); | 192 m_activeIntervalTimer.stop(); |
| 212 m_nodeUnderMouse = nullptr; | 193 m_nodeUnderMouse = nullptr; |
| 213 m_lastNodeUnderMouse = nullptr; | 194 m_lastNodeUnderMouse = nullptr; |
| 214 m_lastScrollbarUnderMouse = nullptr; | 195 m_lastScrollbarUnderMouse = nullptr; |
| 215 m_clickCount = 0; | 196 m_clickCount = 0; |
| (...skipping 2495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2711 unsigned EventHandler::accessKeyModifiers() | 2692 unsigned EventHandler::accessKeyModifiers() |
| 2712 { | 2693 { |
| 2713 #if OS(MACOSX) | 2694 #if OS(MACOSX) |
| 2714 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; | 2695 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; |
| 2715 #else | 2696 #else |
| 2716 return PlatformEvent::AltKey; | 2697 return PlatformEvent::AltKey; |
| 2717 #endif | 2698 #endif |
| 2718 } | 2699 } |
| 2719 | 2700 |
| 2720 } // namespace blink | 2701 } // namespace blink |
| OLD | NEW |