| 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 2137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2148 dispatchScopedEvent(event); | 2148 dispatchScopedEvent(event); |
| 2149 return event->defaultHandled(); | 2149 return event->defaultHandled(); |
| 2150 } | 2150 } |
| 2151 | 2151 |
| 2152 bool Node::dispatchKeyEvent(const PlatformKeyboardEvent& event) | 2152 bool Node::dispatchKeyEvent(const PlatformKeyboardEvent& event) |
| 2153 { | 2153 { |
| 2154 return EventDispatcher::dispatchEvent(this, KeyboardEventDispatchMediator::c
reate(KeyboardEvent::create(event, document().domWindow()))); | 2154 return EventDispatcher::dispatchEvent(this, KeyboardEventDispatchMediator::c
reate(KeyboardEvent::create(event, document().domWindow()))); |
| 2155 } | 2155 } |
| 2156 | 2156 |
| 2157 bool Node::dispatchMouseEvent(const PlatformMouseEvent& event, const AtomicStrin
g& eventType, | 2157 bool Node::dispatchMouseEvent(const PlatformMouseEvent& event, const AtomicStrin
g& eventType, |
| 2158 int detail, Node* relatedTarget) | 2158 int detail, Node* relatedTarget, bool derivesFromTouch) |
| 2159 { | 2159 { |
| 2160 return EventDispatcher::dispatchEvent(this, MouseEventDispatchMediator::crea
te(MouseEvent::create(eventType, document().domWindow(), event, detail, relatedT
arget))); | 2160 return EventDispatcher::dispatchEvent(this, MouseEventDispatchMediator::crea
te(MouseEvent::create(eventType, document().domWindow(), event, detail, relatedT
arget, derivesFromTouch))); |
| 2161 } | 2161 } |
| 2162 | 2162 |
| 2163 bool Node::dispatchGestureEvent(const PlatformGestureEvent& event) | 2163 bool Node::dispatchGestureEvent(const PlatformGestureEvent& event) |
| 2164 { | 2164 { |
| 2165 RefPtrWillBeRawPtr<GestureEvent> gestureEvent = GestureEvent::create(documen
t().domWindow(), event); | 2165 RefPtrWillBeRawPtr<GestureEvent> gestureEvent = GestureEvent::create(documen
t().domWindow(), event); |
| 2166 if (!gestureEvent.get()) | 2166 if (!gestureEvent.get()) |
| 2167 return false; | 2167 return false; |
| 2168 return EventDispatcher::dispatchEvent(this, GestureEventDispatchMediator::cr
eate(gestureEvent)); | 2168 return EventDispatcher::dispatchEvent(this, GestureEventDispatchMediator::cr
eate(gestureEvent)); |
| 2169 } | 2169 } |
| 2170 | 2170 |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2486 node->showTreeForThis(); | 2486 node->showTreeForThis(); |
| 2487 } | 2487 } |
| 2488 | 2488 |
| 2489 void showNodePath(const blink::Node* node) | 2489 void showNodePath(const blink::Node* node) |
| 2490 { | 2490 { |
| 2491 if (node) | 2491 if (node) |
| 2492 node->showNodePathForThis(); | 2492 node->showNodePathForThis(); |
| 2493 } | 2493 } |
| 2494 | 2494 |
| 2495 #endif | 2495 #endif |
| OLD | NEW |