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

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

Issue 868133003: Remove touch events from 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/dom/Document.idl ('k') | sky/engine/core/dom/Node.cpp » ('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-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 class QualifiedName; 65 class QualifiedName;
66 class RegisteredEventListener; 66 class RegisteredEventListener;
67 class RenderBox; 67 class RenderBox;
68 class RenderBoxModelObject; 68 class RenderBoxModelObject;
69 class RenderObject; 69 class RenderObject;
70 class RenderStyle; 70 class RenderStyle;
71 class ShadowRoot; 71 class ShadowRoot;
72 template <typename NodeType> class StaticNodeTypeList; 72 template <typename NodeType> class StaticNodeTypeList;
73 typedef StaticNodeTypeList<Node> StaticNodeList; 73 typedef StaticNodeTypeList<Node> StaticNodeList;
74 class Text; 74 class Text;
75 class TouchEvent;
76 class WeakNodeMap; 75 class WeakNodeMap;
77 76
78 const int nodeStyleChangeShift = 19; 77 const int nodeStyleChangeShift = 19;
79 78
80 enum StyleChangeType { 79 enum StyleChangeType {
81 NoStyleChange = 0, 80 NoStyleChange = 0,
82 LocalStyleChange = 1 << nodeStyleChangeShift, 81 LocalStyleChange = 1 << nodeStyleChangeShift,
83 SubtreeStyleChange = 2 << nodeStyleChangeShift, 82 SubtreeStyleChange = 2 << nodeStyleChangeShift,
84 NeedsReattachStyleChange = 3 << nodeStyleChangeShift, 83 NeedsReattachStyleChange = 3 << nodeStyleChangeShift,
85 }; 84 };
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 #ifndef NDEBUG 434 #ifndef NDEBUG
436 virtual void formatForDebugger(char* buffer, unsigned length) const; 435 virtual void formatForDebugger(char* buffer, unsigned length) const;
437 436
438 void showNode(const char* prefix = "") const; 437 void showNode(const char* prefix = "") const;
439 void showTreeForThis() const; 438 void showTreeForThis() const;
440 void showNodePathForThis() const; 439 void showNodePathForThis() const;
441 void showTreeAndMark(const Node* markedNode1, const char* markedLabel1, cons t Node* markedNode2 = 0, const char* markedLabel2 = 0) const; 440 void showTreeAndMark(const Node* markedNode1, const char* markedLabel1, cons t Node* markedNode2 = 0, const char* markedLabel2 = 0) const;
442 #endif 441 #endif
443 442
444 bool willRespondToMouseMoveEvents(); 443 bool willRespondToMouseMoveEvents();
445 bool willRespondToTouchEvents();
446 444
447 virtual bool willRespondToMouseClickEvents(); 445 virtual bool willRespondToMouseClickEvents();
448 446
449 enum ShadowTreesTreatment { 447 enum ShadowTreesTreatment {
450 TreatShadowTreesAsDisconnected, 448 TreatShadowTreesAsDisconnected,
451 TreatShadowTreesAsComposed 449 TreatShadowTreesAsComposed
452 }; 450 };
453 451
454 unsigned short compareDocumentPosition(const Node*, ShadowTreesTreatment = T reatShadowTreesAsDisconnected) const; 452 unsigned short compareDocumentPosition(const Node*, ShadowTreesTreatment = T reatShadowTreesAsDisconnected) const;
455 453
(...skipping 10 matching lines...) Expand all
466 464
467 void dispatchScopedEvent(PassRefPtr<Event>); 465 void dispatchScopedEvent(PassRefPtr<Event>);
468 void dispatchScopedEventDispatchMediator(PassRefPtr<EventDispatchMediator>); 466 void dispatchScopedEventDispatchMediator(PassRefPtr<EventDispatchMediator>);
469 467
470 virtual void handleLocalEvents(Event*); 468 virtual void handleLocalEvents(Event*);
471 469
472 bool dispatchDOMActivateEvent(int detail, PassRefPtr<Event> underlyingEvent) ; 470 bool dispatchDOMActivateEvent(int detail, PassRefPtr<Event> underlyingEvent) ;
473 471
474 bool dispatchKeyEvent(const PlatformKeyboardEvent&); 472 bool dispatchKeyEvent(const PlatformKeyboardEvent&);
475 bool dispatchGestureEvent(const PlatformGestureEvent&); 473 bool dispatchGestureEvent(const PlatformGestureEvent&);
476 bool dispatchTouchEvent(PassRefPtr<TouchEvent>);
477 474
478 void dispatchInputEvent(); 475 void dispatchInputEvent();
479 476
480 // Perform the default action for an event. 477 // Perform the default action for an event.
481 virtual void defaultEventHandler(Event*); 478 virtual void defaultEventHandler(Event*);
482 479
483 virtual EventTargetData* eventTargetData() override; 480 virtual EventTargetData* eventTargetData() override;
484 virtual EventTargetData& ensureEventTargetData() override; 481 virtual EventTargetData& ensureEventTargetData() override;
485 482
486 void getRegisteredMutationObserversOfType(HashMap<RawPtr<MutationObserver>, MutationRecordDeliveryOptions>&, MutationObserver::MutationType, const Qualified Name* attributeName); 483 void getRegisteredMutationObserversOfType(HashMap<RawPtr<MutationObserver>, MutationRecordDeliveryOptions>&, MutationObserver::MutationType, const Qualified Name* attributeName);
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 } // namespace blink 695 } // namespace blink
699 696
700 #ifndef NDEBUG 697 #ifndef NDEBUG
701 // Outside the WebCore namespace for ease of invocation from gdb. 698 // Outside the WebCore namespace for ease of invocation from gdb.
702 void showNode(const blink::Node*); 699 void showNode(const blink::Node*);
703 void showTree(const blink::Node*); 700 void showTree(const blink::Node*);
704 void showNodePath(const blink::Node*); 701 void showNodePath(const blink::Node*);
705 #endif 702 #endif
706 703
707 #endif // SKY_ENGINE_CORE_DOM_NODE_H_ 704 #endif // SKY_ENGINE_CORE_DOM_NODE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Document.idl ('k') | sky/engine/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698