| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 , m_activeIntervalTimer(this, &EventHandler::activeIntervalTimerFired) | 300 , m_activeIntervalTimer(this, &EventHandler::activeIntervalTimerFired) |
| 301 , m_lastShowPressTimestamp(0) | 301 , m_lastShowPressTimestamp(0) |
| 302 { | 302 { |
| 303 } | 303 } |
| 304 | 304 |
| 305 EventHandler::~EventHandler() | 305 EventHandler::~EventHandler() |
| 306 { | 306 { |
| 307 ASSERT(!m_fakeMouseMoveEventTimer.isActive()); | 307 ASSERT(!m_fakeMouseMoveEventTimer.isActive()); |
| 308 } | 308 } |
| 309 | 309 |
| 310 DEFINE_GC_INFO(DragState); |
| 311 |
| 310 DragState& EventHandler::dragState() | 312 DragState& EventHandler::dragState() |
| 311 { | 313 { |
| 312 DEFINE_STATIC_LOCAL(DragState, state, ()); | 314 DEFINE_STATIC_LOCAL(Persistent<DragState>, state, ()); |
| 313 return state; | 315 return *state; |
| 314 } | 316 } |
| 315 | 317 |
| 316 void EventHandler::clear() | 318 void EventHandler::clear() |
| 317 { | 319 { |
| 318 m_hoverTimer.stop(); | 320 m_hoverTimer.stop(); |
| 319 m_cursorUpdateTimer.stop(); | 321 m_cursorUpdateTimer.stop(); |
| 320 m_fakeMouseMoveEventTimer.stop(); | 322 m_fakeMouseMoveEventTimer.stop(); |
| 321 m_activeIntervalTimer.stop(); | 323 m_activeIntervalTimer.stop(); |
| 322 m_resizeScrollableArea = 0; | 324 m_resizeScrollableArea = 0; |
| 323 m_nodeUnderMouse = 0; | 325 m_nodeUnderMouse = 0; |
| (...skipping 3669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3993 } | 3995 } |
| 3994 | 3996 |
| 3995 bool EventHandler::passWidgetMouseDownEventToWidget(const MouseEventWithHitTestR
esults& event) | 3997 bool EventHandler::passWidgetMouseDownEventToWidget(const MouseEventWithHitTestR
esults& event) |
| 3996 { | 3998 { |
| 3997 // Figure out which view to send the event to. | 3999 // Figure out which view to send the event to. |
| 3998 if (!event.targetNode() || !event.targetNode()->renderer() || !event.targetN
ode()->renderer()->isWidget()) | 4000 if (!event.targetNode() || !event.targetNode()->renderer() || !event.targetN
ode()->renderer()->isWidget()) |
| 3999 return false; | 4001 return false; |
| 4000 return false; | 4002 return false; |
| 4001 } | 4003 } |
| 4002 | 4004 |
| 4003 PassRefPtr<Clipboard> EventHandler::createDraggingClipboard() const | 4005 PassRefPtrWillBeRawPtr<Clipboard> EventHandler::createDraggingClipboard() const |
| 4004 { | 4006 { |
| 4005 return Clipboard::create(Clipboard::DragAndDrop, ClipboardWritable, DataObje
ct::create()); | 4007 return Clipboard::create(Clipboard::DragAndDrop, ClipboardWritable, DataObje
ct::create()); |
| 4006 } | 4008 } |
| 4007 | 4009 |
| 4008 void EventHandler::focusDocumentView() | 4010 void EventHandler::focusDocumentView() |
| 4009 { | 4011 { |
| 4010 Page* page = m_frame->page(); | 4012 Page* page = m_frame->page(); |
| 4011 if (!page) | 4013 if (!page) |
| 4012 return; | 4014 return; |
| 4013 page->focusController().setFocusedFrame(m_frame); | 4015 page->focusController().setFocusedFrame(m_frame); |
| 4014 } | 4016 } |
| 4015 | 4017 |
| 4016 unsigned EventHandler::accessKeyModifiers() | 4018 unsigned EventHandler::accessKeyModifiers() |
| 4017 { | 4019 { |
| 4018 #if OS(MACOSX) | 4020 #if OS(MACOSX) |
| 4019 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; | 4021 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; |
| 4020 #else | 4022 #else |
| 4021 return PlatformEvent::AltKey; | 4023 return PlatformEvent::AltKey; |
| 4022 #endif | 4024 #endif |
| 4023 } | 4025 } |
| 4024 | 4026 |
| 4025 } // namespace WebCore | 4027 } // namespace WebCore |
| OLD | NEW |