| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #include "core/dom/shadow/FlatTreeTraversal.h" | 59 #include "core/dom/shadow/FlatTreeTraversal.h" |
| 60 #include "core/dom/shadow/InsertionPoint.h" | 60 #include "core/dom/shadow/InsertionPoint.h" |
| 61 #include "core/dom/shadow/ShadowRoot.h" | 61 #include "core/dom/shadow/ShadowRoot.h" |
| 62 #include "core/editing/EditingUtilities.h" | 62 #include "core/editing/EditingUtilities.h" |
| 63 #include "core/editing/markers/DocumentMarkerController.h" | 63 #include "core/editing/markers/DocumentMarkerController.h" |
| 64 #include "core/events/Event.h" | 64 #include "core/events/Event.h" |
| 65 #include "core/events/EventDispatchMediator.h" | 65 #include "core/events/EventDispatchMediator.h" |
| 66 #include "core/events/EventDispatcher.h" | 66 #include "core/events/EventDispatcher.h" |
| 67 #include "core/events/EventListener.h" | 67 #include "core/events/EventListener.h" |
| 68 #include "core/events/GestureEvent.h" | 68 #include "core/events/GestureEvent.h" |
| 69 #include "core/events/InputEvent.h" |
| 69 #include "core/events/KeyboardEvent.h" | 70 #include "core/events/KeyboardEvent.h" |
| 70 #include "core/events/MouseEvent.h" | 71 #include "core/events/MouseEvent.h" |
| 71 #include "core/events/MutationEvent.h" | 72 #include "core/events/MutationEvent.h" |
| 72 #include "core/events/PointerEvent.h" | 73 #include "core/events/PointerEvent.h" |
| 73 #include "core/events/TextEvent.h" | 74 #include "core/events/TextEvent.h" |
| 74 #include "core/events/TouchEvent.h" | 75 #include "core/events/TouchEvent.h" |
| 75 #include "core/events/UIEvent.h" | 76 #include "core/events/UIEvent.h" |
| 76 #include "core/events/WheelEvent.h" | 77 #include "core/events/WheelEvent.h" |
| 77 #include "core/frame/EventHandlerRegistry.h" | 78 #include "core/frame/EventHandlerRegistry.h" |
| 78 #include "core/frame/LocalDOMWindow.h" | 79 #include "core/frame/LocalDOMWindow.h" |
| (...skipping 1998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2077 return dispatchEvent(event); | 2078 return dispatchEvent(event); |
| 2078 } | 2079 } |
| 2079 | 2080 |
| 2080 void Node::dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEve
ntOptions eventOptions, SimulatedClickCreationScope scope) | 2081 void Node::dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEve
ntOptions eventOptions, SimulatedClickCreationScope scope) |
| 2081 { | 2082 { |
| 2082 EventDispatcher::dispatchSimulatedClick(*this, underlyingEvent, eventOptions
, scope); | 2083 EventDispatcher::dispatchSimulatedClick(*this, underlyingEvent, eventOptions
, scope); |
| 2083 } | 2084 } |
| 2084 | 2085 |
| 2085 void Node::dispatchInputEvent() | 2086 void Node::dispatchInputEvent() |
| 2086 { | 2087 { |
| 2087 dispatchScopedEvent(Event::createBubble(EventTypeNames::input)); | 2088 if (RuntimeEnabledFeatures::inputEventEnabled()) { |
| 2089 InputEventInit eventInitDict; |
| 2090 eventInitDict.setBubbles(true); |
| 2091 dispatchScopedEvent(InputEvent::create(EventTypeNames::input, eventInitD
ict)); |
| 2092 } else { |
| 2093 dispatchScopedEvent(Event::createBubble(EventTypeNames::input)); |
| 2094 } |
| 2088 } | 2095 } |
| 2089 | 2096 |
| 2090 void Node::defaultEventHandler(Event* event) | 2097 void Node::defaultEventHandler(Event* event) |
| 2091 { | 2098 { |
| 2092 if (event->target() != this) | 2099 if (event->target() != this) |
| 2093 return; | 2100 return; |
| 2094 const AtomicString& eventType = event->type(); | 2101 const AtomicString& eventType = event->type(); |
| 2095 if (eventType == EventTypeNames::keydown || eventType == EventTypeNames::key
press) { | 2102 if (eventType == EventTypeNames::keydown || eventType == EventTypeNames::key
press) { |
| 2096 if (event->isKeyboardEvent()) { | 2103 if (event->isKeyboardEvent()) { |
| 2097 if (LocalFrame* frame = document().frame()) | 2104 if (LocalFrame* frame = document().frame()) |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2434 | 2441 |
| 2435 void showNodePath(const blink::Node* node) | 2442 void showNodePath(const blink::Node* node) |
| 2436 { | 2443 { |
| 2437 if (node) | 2444 if (node) |
| 2438 node->showNodePathForThis(); | 2445 node->showNodePathForThis(); |
| 2439 else | 2446 else |
| 2440 fprintf(stderr, "Cannot showNodePath for (nil)\n"); | 2447 fprintf(stderr, "Cannot showNodePath for (nil)\n"); |
| 2441 } | 2448 } |
| 2442 | 2449 |
| 2443 #endif | 2450 #endif |
| OLD | NEW |