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

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

Issue 857533002: Add support for GestureEvents to Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/core.gni ('k') | sky/engine/core/events/GestureEvent.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 1474 matching lines...) Expand 10 before | Expand all | Expand 10 after
1485 1485
1486 bool Node::dispatchMouseEvent(const PlatformMouseEvent& event, const AtomicStrin g& eventType, 1486 bool Node::dispatchMouseEvent(const PlatformMouseEvent& event, const AtomicStrin g& eventType,
1487 int detail, Node* relatedTarget) 1487 int detail, Node* relatedTarget)
1488 { 1488 {
1489 return EventDispatcher::dispatchEvent(this, MouseEventDispatchMediator::crea te(MouseEvent::create(eventType, document().domWindow(), event, detail, relatedT arget))); 1489 return EventDispatcher::dispatchEvent(this, MouseEventDispatchMediator::crea te(MouseEvent::create(eventType, document().domWindow(), event, detail, relatedT arget)));
1490 } 1490 }
1491 1491
1492 bool Node::dispatchGestureEvent(const PlatformGestureEvent& event) 1492 bool Node::dispatchGestureEvent(const PlatformGestureEvent& event)
1493 { 1493 {
1494 RefPtr<GestureEvent> gestureEvent = GestureEvent::create(document().domWindo w(), event); 1494 RefPtr<GestureEvent> gestureEvent = GestureEvent::create(document().domWindo w(), event);
1495 if (!gestureEvent.get()) 1495 if (!gestureEvent)
1496 return false; 1496 return false;
1497 return EventDispatcher::dispatchEvent(this, GestureEventDispatchMediator::cr eate(gestureEvent)); 1497 return EventDispatcher::dispatchEvent(this, GestureEventDispatchMediator::cr eate(gestureEvent));
1498 } 1498 }
1499 1499
1500 bool Node::dispatchTouchEvent(PassRefPtr<TouchEvent> event) 1500 bool Node::dispatchTouchEvent(PassRefPtr<TouchEvent> event)
1501 { 1501 {
1502 return EventDispatcher::dispatchEvent(this, TouchEventDispatchMediator::crea te(event)); 1502 return EventDispatcher::dispatchEvent(this, TouchEventDispatchMediator::crea te(event));
1503 } 1503 }
1504 1504
1505 void Node::dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEve ntOptions eventOptions) 1505 void Node::dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEve ntOptions eventOptions)
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1738 node->showTreeForThis(); 1738 node->showTreeForThis();
1739 } 1739 }
1740 1740
1741 void showNodePath(const blink::Node* node) 1741 void showNodePath(const blink::Node* node)
1742 { 1742 {
1743 if (node) 1743 if (node)
1744 node->showNodePathForThis(); 1744 node->showNodePathForThis();
1745 } 1745 }
1746 1746
1747 #endif 1747 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/events/GestureEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698