Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: sky/engine/core/dom/Node.cpp

Issue 874823002: Move GestureEvent to NewEventDispatcher (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Build fixes Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/dom/Node.h ('k') | sky/engine/core/events/Event.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #include "sky/engine/core/dom/UserActionElementSet.h" 52 #include "sky/engine/core/dom/UserActionElementSet.h"
53 #include "sky/engine/core/dom/WeakNodeMap.h" 53 #include "sky/engine/core/dom/WeakNodeMap.h"
54 #include "sky/engine/core/dom/shadow/ElementShadow.h" 54 #include "sky/engine/core/dom/shadow/ElementShadow.h"
55 #include "sky/engine/core/dom/shadow/InsertionPoint.h" 55 #include "sky/engine/core/dom/shadow/InsertionPoint.h"
56 #include "sky/engine/core/dom/shadow/ShadowRoot.h" 56 #include "sky/engine/core/dom/shadow/ShadowRoot.h"
57 #include "sky/engine/core/editing/htmlediting.h" 57 #include "sky/engine/core/editing/htmlediting.h"
58 #include "sky/engine/core/events/Event.h" 58 #include "sky/engine/core/events/Event.h"
59 #include "sky/engine/core/events/EventDispatchMediator.h" 59 #include "sky/engine/core/events/EventDispatchMediator.h"
60 #include "sky/engine/core/events/EventDispatcher.h" 60 #include "sky/engine/core/events/EventDispatcher.h"
61 #include "sky/engine/core/events/EventListener.h" 61 #include "sky/engine/core/events/EventListener.h"
62 #include "sky/engine/core/events/GestureEvent.h"
63 #include "sky/engine/core/events/KeyboardEvent.h" 62 #include "sky/engine/core/events/KeyboardEvent.h"
64 #include "sky/engine/core/events/TextEvent.h" 63 #include "sky/engine/core/events/TextEvent.h"
65 #include "sky/engine/core/events/UIEvent.h" 64 #include "sky/engine/core/events/UIEvent.h"
66 #include "sky/engine/core/frame/LocalFrame.h" 65 #include "sky/engine/core/frame/LocalFrame.h"
67 #include "sky/engine/core/frame/Settings.h" 66 #include "sky/engine/core/frame/Settings.h"
68 #include "sky/engine/core/html/HTMLAnchorElement.h" 67 #include "sky/engine/core/html/HTMLAnchorElement.h"
69 #include "sky/engine/core/html/HTMLStyleElement.h" 68 #include "sky/engine/core/html/HTMLStyleElement.h"
70 #include "sky/engine/core/page/EventHandler.h" 69 #include "sky/engine/core/page/EventHandler.h"
71 #include "sky/engine/core/page/Page.h" 70 #include "sky/engine/core/page/Page.h"
72 #include "sky/engine/core/rendering/RenderBox.h" 71 #include "sky/engine/core/rendering/RenderBox.h"
(...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 event->setUnderlyingEvent(underlyingEvent); 1444 event->setUnderlyingEvent(underlyingEvent);
1446 dispatchScopedEvent(event); 1445 dispatchScopedEvent(event);
1447 return event->defaultHandled(); 1446 return event->defaultHandled();
1448 } 1447 }
1449 1448
1450 bool Node::dispatchKeyEvent(const PlatformKeyboardEvent& event) 1449 bool Node::dispatchKeyEvent(const PlatformKeyboardEvent& event)
1451 { 1450 {
1452 return EventDispatcher::dispatchEvent(this, KeyboardEventDispatchMediator::c reate(KeyboardEvent::create(event, document().domWindow()))); 1451 return EventDispatcher::dispatchEvent(this, KeyboardEventDispatchMediator::c reate(KeyboardEvent::create(event, document().domWindow())));
1453 } 1452 }
1454 1453
1455 bool Node::dispatchGestureEvent(const PlatformGestureEvent& event)
1456 {
1457 RefPtr<GestureEvent> gestureEvent = GestureEvent::create(document().domWindo w(), event);
1458 if (!gestureEvent)
1459 return false;
1460 return EventDispatcher::dispatchEvent(this, GestureEventDispatchMediator::cr eate(gestureEvent));
1461 }
1462
1463 void Node::dispatchInputEvent() 1454 void Node::dispatchInputEvent()
1464 { 1455 {
1465 dispatchScopedEvent(Event::createBubble(EventTypeNames::input)); 1456 dispatchScopedEvent(Event::createBubble(EventTypeNames::input));
1466 } 1457 }
1467 1458
1468 void Node::defaultEventHandler(Event* event) 1459 void Node::defaultEventHandler(Event* event)
1469 { 1460 {
1470 if (event->target() != this) 1461 if (event->target() != this)
1471 return; 1462 return;
1472 const AtomicString& eventType = event->type(); 1463 const AtomicString& eventType = event->type();
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1663 node->showTreeForThis(); 1654 node->showTreeForThis();
1664 } 1655 }
1665 1656
1666 void showNodePath(const blink::Node* node) 1657 void showNodePath(const blink::Node* node)
1667 { 1658 {
1668 if (node) 1659 if (node)
1669 node->showNodePathForThis(); 1660 node->showNodePathForThis();
1670 } 1661 }
1671 1662
1672 #endif 1663 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Node.h ('k') | sky/engine/core/events/Event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698