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

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

Issue 870073003: Remove mouse 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
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
11 * version 2 of the License, or (at your option) any later version. 11 * version 2 of the License, or (at your option) any later version.
12 * 12 *
13 * This library is distributed in the hope that it will be useful, 13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details. 16 * Library General Public License for more details.
17 * 17 *
18 * You should have received a copy of the GNU Library General Public License 18 * You should have received a copy of the GNU Library General Public License
19 * along with this library; see the file COPYING.LIB. If not, write to 19 * along with this library; see the file COPYING.LIB. If not, write to
20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA. 21 * Boston, MA 02110-1301, USA.
22 * 22 *
23 */ 23 */
24 24
25 #ifndef SKY_ENGINE_CORE_DOM_NODE_H_ 25 #ifndef SKY_ENGINE_CORE_DOM_NODE_H_
26 #define SKY_ENGINE_CORE_DOM_NODE_H_ 26 #define SKY_ENGINE_CORE_DOM_NODE_H_
27 27
28 #include "sky/engine/bindings/core/v8/ExceptionStatePlaceholder.h" 28 #include "sky/engine/bindings/core/v8/ExceptionStatePlaceholder.h"
29 #include "sky/engine/core/dom/MutationObserver.h" 29 #include "sky/engine/core/dom/MutationObserver.h"
30 #include "sky/engine/core/dom/SimulatedClickOptions.h"
31 #include "sky/engine/core/dom/TreeScope.h" 30 #include "sky/engine/core/dom/TreeScope.h"
32 #include "sky/engine/core/dom/TreeShared.h" 31 #include "sky/engine/core/dom/TreeShared.h"
33 #include "sky/engine/core/editing/EditingBoundary.h" 32 #include "sky/engine/core/editing/EditingBoundary.h"
34 #include "sky/engine/core/events/EventTarget.h" 33 #include "sky/engine/core/events/EventTarget.h"
35 #include "sky/engine/core/inspector/InspectorCounters.h" 34 #include "sky/engine/core/inspector/InspectorCounters.h"
36 #include "sky/engine/core/rendering/style/RenderStyleConstants.h" 35 #include "sky/engine/core/rendering/style/RenderStyleConstants.h"
37 #include "sky/engine/platform/geometry/LayoutRect.h" 36 #include "sky/engine/platform/geometry/LayoutRect.h"
38 #include "sky/engine/platform/heap/Handle.h" 37 #include "sky/engine/platform/heap/Handle.h"
39 #include "sky/engine/platform/weborigin/KURLHash.h" 38 #include "sky/engine/platform/weborigin/KURLHash.h"
40 #include "sky/engine/wtf/Forward.h" 39 #include "sky/engine/wtf/Forward.h"
(...skipping 15 matching lines...) Expand all
56 class LocalFrame; 55 class LocalFrame;
57 class HTMLQualifiedName; 56 class HTMLQualifiedName;
58 class IntRect; 57 class IntRect;
59 class KeyboardEvent; 58 class KeyboardEvent;
60 class NSResolver; 59 class NSResolver;
61 class NodeEventContext; 60 class NodeEventContext;
62 class NodeList; 61 class NodeList;
63 class NodeRareData; 62 class NodeRareData;
64 class PlatformGestureEvent; 63 class PlatformGestureEvent;
65 class PlatformKeyboardEvent; 64 class PlatformKeyboardEvent;
66 class PlatformMouseEvent;
67 class PlatformWheelEvent;
68 class QualifiedName; 65 class QualifiedName;
69 class RegisteredEventListener; 66 class RegisteredEventListener;
70 class RenderBox; 67 class RenderBox;
71 class RenderBoxModelObject; 68 class RenderBoxModelObject;
72 class RenderObject; 69 class RenderObject;
73 class RenderStyle; 70 class RenderStyle;
74 class ShadowRoot; 71 class ShadowRoot;
75 template <typename NodeType> class StaticNodeTypeList; 72 template <typename NodeType> class StaticNodeTypeList;
76 typedef StaticNodeTypeList<Node> StaticNodeList; 73 typedef StaticNodeTypeList<Node> StaticNodeList;
77 class Text; 74 class Text;
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 virtual bool dispatchEvent(PassRefPtr<Event>) override; 465 virtual bool dispatchEvent(PassRefPtr<Event>) override;
469 466
470 void dispatchScopedEvent(PassRefPtr<Event>); 467 void dispatchScopedEvent(PassRefPtr<Event>);
471 void dispatchScopedEventDispatchMediator(PassRefPtr<EventDispatchMediator>); 468 void dispatchScopedEventDispatchMediator(PassRefPtr<EventDispatchMediator>);
472 469
473 virtual void handleLocalEvents(Event*); 470 virtual void handleLocalEvents(Event*);
474 471
475 bool dispatchDOMActivateEvent(int detail, PassRefPtr<Event> underlyingEvent) ; 472 bool dispatchDOMActivateEvent(int detail, PassRefPtr<Event> underlyingEvent) ;
476 473
477 bool dispatchKeyEvent(const PlatformKeyboardEvent&); 474 bool dispatchKeyEvent(const PlatformKeyboardEvent&);
478 bool dispatchWheelEvent(const PlatformWheelEvent&);
479 bool dispatchMouseEvent(const PlatformMouseEvent&, const AtomicString& event Type, int clickCount = 0, Node* relatedTarget = 0);
480 bool dispatchGestureEvent(const PlatformGestureEvent&); 475 bool dispatchGestureEvent(const PlatformGestureEvent&);
481 bool dispatchTouchEvent(PassRefPtr<TouchEvent>); 476 bool dispatchTouchEvent(PassRefPtr<TouchEvent>);
482 477
483 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent Options = SendNoEvents);
484
485 void dispatchInputEvent(); 478 void dispatchInputEvent();
486 479
487 // Perform the default action for an event. 480 // Perform the default action for an event.
488 virtual void defaultEventHandler(Event*); 481 virtual void defaultEventHandler(Event*);
489 482
490 virtual EventTargetData* eventTargetData() override; 483 virtual EventTargetData* eventTargetData() override;
491 virtual EventTargetData& ensureEventTargetData() override; 484 virtual EventTargetData& ensureEventTargetData() override;
492 485
493 void getRegisteredMutationObserversOfType(HashMap<RawPtr<MutationObserver>, MutationRecordDeliveryOptions>&, MutationObserver::MutationType, const Qualified Name* attributeName); 486 void getRegisteredMutationObserversOfType(HashMap<RawPtr<MutationObserver>, MutationRecordDeliveryOptions>&, MutationObserver::MutationType, const Qualified Name* attributeName);
494 void registerMutationObserver(MutationObserver&, MutationObserverOptions, co nst HashSet<AtomicString>& attributeFilter); 487 void registerMutationObserver(MutationObserver&, MutationObserverOptions, co nst HashSet<AtomicString>& attributeFilter);
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 } // namespace blink 698 } // namespace blink
706 699
707 #ifndef NDEBUG 700 #ifndef NDEBUG
708 // Outside the WebCore namespace for ease of invocation from gdb. 701 // Outside the WebCore namespace for ease of invocation from gdb.
709 void showNode(const blink::Node*); 702 void showNode(const blink::Node*);
710 void showTree(const blink::Node*); 703 void showTree(const blink::Node*);
711 void showNodePath(const blink::Node*); 704 void showNodePath(const blink::Node*);
712 #endif 705 #endif
713 706
714 #endif // SKY_ENGINE_CORE_DOM_NODE_H_ 707 #endif // SKY_ENGINE_CORE_DOM_NODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698