| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 1989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2000 void Node::dispatchScopedEvent(PassRefPtrWillBeRawPtr<Event> event) | 2000 void Node::dispatchScopedEvent(PassRefPtrWillBeRawPtr<Event> event) |
| 2001 { | 2001 { |
| 2002 dispatchScopedEventDispatchMediator(EventDispatchMediator::create(event)); | 2002 dispatchScopedEventDispatchMediator(EventDispatchMediator::create(event)); |
| 2003 } | 2003 } |
| 2004 | 2004 |
| 2005 void Node::dispatchScopedEventDispatchMediator(PassRefPtrWillBeRawPtr<EventDispa
tchMediator> eventDispatchMediator) | 2005 void Node::dispatchScopedEventDispatchMediator(PassRefPtrWillBeRawPtr<EventDispa
tchMediator> eventDispatchMediator) |
| 2006 { | 2006 { |
| 2007 EventDispatcher::dispatchScopedEvent(*this, eventDispatchMediator); | 2007 EventDispatcher::dispatchScopedEvent(*this, eventDispatchMediator); |
| 2008 } | 2008 } |
| 2009 | 2009 |
| 2010 bool Node::dispatchEvent(PassRefPtrWillBeRawPtr<Event> event) | 2010 bool Node::dispatchEventInternal(PassRefPtrWillBeRawPtr<Event> event) |
| 2011 { | 2011 { |
| 2012 if (event->isMouseEvent()) | 2012 if (event->isMouseEvent()) |
| 2013 return EventDispatcher::dispatchEvent(*this, MouseEventDispatchMediator:
:create(static_pointer_cast<MouseEvent>(event), MouseEventDispatchMediator::Synt
heticMouseEvent)); | 2013 return EventDispatcher::dispatchEvent(*this, MouseEventDispatchMediator:
:create(static_pointer_cast<MouseEvent>(event), MouseEventDispatchMediator::Synt
heticMouseEvent)); |
| 2014 if (event->isTouchEvent()) | 2014 if (event->isTouchEvent()) |
| 2015 return dispatchTouchEvent(static_pointer_cast<TouchEvent>(event)); | 2015 return dispatchTouchEvent(static_pointer_cast<TouchEvent>(event)); |
| 2016 if (event->isPointerEvent()) | 2016 if (event->isPointerEvent()) |
| 2017 return dispatchPointerEvent(static_pointer_cast<PointerEvent>(event)); | 2017 return dispatchPointerEvent(static_pointer_cast<PointerEvent>(event)); |
| 2018 | 2018 |
| 2019 return EventDispatcher::dispatchEvent(*this, EventDispatchMediator::create(e
vent)); | 2019 return EventDispatcher::dispatchEvent(*this, EventDispatchMediator::create(e
vent)); |
| 2020 } | 2020 } |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2411 | 2411 |
| 2412 void showNodePath(const blink::Node* node) | 2412 void showNodePath(const blink::Node* node) |
| 2413 { | 2413 { |
| 2414 if (node) | 2414 if (node) |
| 2415 node->showNodePathForThis(); | 2415 node->showNodePathForThis(); |
| 2416 else | 2416 else |
| 2417 fprintf(stderr, "Cannot showNodePath for (nil)\n"); | 2417 fprintf(stderr, "Cannot showNodePath for (nil)\n"); |
| 2418 } | 2418 } |
| 2419 | 2419 |
| 2420 #endif | 2420 #endif |
| OLD | NEW |