| 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 1428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1439 | 1439 |
| 1440 bool Node::dispatchDOMActivateEvent(int detail, PassRefPtr<Event> underlyingEven
t) | 1440 bool Node::dispatchDOMActivateEvent(int detail, PassRefPtr<Event> underlyingEven
t) |
| 1441 { | 1441 { |
| 1442 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); | 1442 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); |
| 1443 RefPtr<UIEvent> event = UIEvent::create(EventTypeNames::DOMActivate, true, t
rue, document().domWindow(), detail); | 1443 RefPtr<UIEvent> event = UIEvent::create(EventTypeNames::DOMActivate, true, t
rue, document().domWindow(), detail); |
| 1444 event->setUnderlyingEvent(underlyingEvent); | 1444 event->setUnderlyingEvent(underlyingEvent); |
| 1445 dispatchScopedEvent(event); | 1445 dispatchScopedEvent(event); |
| 1446 return event->defaultHandled(); | 1446 return event->defaultHandled(); |
| 1447 } | 1447 } |
| 1448 | 1448 |
| 1449 bool Node::dispatchKeyEvent(const PlatformKeyboardEvent& event) | |
| 1450 { | |
| 1451 return EventDispatcher::dispatchEvent(this, KeyboardEventDispatchMediator::c
reate(KeyboardEvent::create(event, document().domWindow()))); | |
| 1452 } | |
| 1453 | |
| 1454 void Node::dispatchInputEvent() | 1449 void Node::dispatchInputEvent() |
| 1455 { | 1450 { |
| 1456 dispatchScopedEvent(Event::createBubble(EventTypeNames::input)); | 1451 dispatchScopedEvent(Event::createBubble(EventTypeNames::input)); |
| 1457 } | 1452 } |
| 1458 | 1453 |
| 1459 void Node::defaultEventHandler(Event* event) | 1454 void Node::defaultEventHandler(Event* event) |
| 1460 { | 1455 { |
| 1461 if (event->target() != this) | 1456 if (event->target() != this) |
| 1462 return; | 1457 return; |
| 1463 const AtomicString& eventType = event->type(); | 1458 const AtomicString& eventType = event->type(); |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1644 node->showTreeForThis(); | 1639 node->showTreeForThis(); |
| 1645 } | 1640 } |
| 1646 | 1641 |
| 1647 void showNodePath(const blink::Node* node) | 1642 void showNodePath(const blink::Node* node) |
| 1648 { | 1643 { |
| 1649 if (node) | 1644 if (node) |
| 1650 node->showNodePathForThis(); | 1645 node->showNodePathForThis(); |
| 1651 } | 1646 } |
| 1652 | 1647 |
| 1653 #endif | 1648 #endif |
| OLD | NEW |