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

Side by Side Diff: Source/core/dom/Node.h

Issue 216523002: Oilpan: Replace most of RefPtrs for Event objects with oilpan's transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
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, 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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even tListener>, bool useCapture = false) OVERRIDE; 610 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even tListener>, bool useCapture = false) OVERRIDE;
611 virtual bool removeEventListener(const AtomicString& eventType, EventListene r*, bool useCapture = false) OVERRIDE; 611 virtual bool removeEventListener(const AtomicString& eventType, EventListene r*, bool useCapture = false) OVERRIDE;
612 virtual void removeAllEventListeners() OVERRIDE; 612 virtual void removeAllEventListeners() OVERRIDE;
613 613
614 // Handlers to do/undo actions on the target node before an event is dispatc hed to it and after the event 614 // Handlers to do/undo actions on the target node before an event is dispatc hed to it and after the event
615 // has been dispatched. The data pointer is handed back by the preDispatch and passed to postDispatch. 615 // has been dispatched. The data pointer is handed back by the preDispatch and passed to postDispatch.
616 virtual void* preDispatchEventHandler(Event*) { return 0; } 616 virtual void* preDispatchEventHandler(Event*) { return 0; }
617 virtual void postDispatchEventHandler(Event*, void* /*dataFromPreDispatch*/) { } 617 virtual void postDispatchEventHandler(Event*, void* /*dataFromPreDispatch*/) { }
618 618
619 using EventTarget::dispatchEvent; 619 using EventTarget::dispatchEvent;
620 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; 620 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE;
621 621
622 void dispatchScopedEvent(PassRefPtr<Event>); 622 void dispatchScopedEvent(PassRefPtrWillBeRawPtr<Event>);
623 void dispatchScopedEventDispatchMediator(PassRefPtr<EventDispatchMediator>); 623 void dispatchScopedEventDispatchMediator(PassRefPtr<EventDispatchMediator>);
624 624
625 virtual void handleLocalEvents(Event*); 625 virtual void handleLocalEvents(Event*);
626 626
627 void dispatchSubtreeModifiedEvent(); 627 void dispatchSubtreeModifiedEvent();
628 bool dispatchDOMActivateEvent(int detail, PassRefPtr<Event> underlyingEvent) ; 628 bool dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRawPtr<Event> unde rlyingEvent);
629 629
630 bool dispatchKeyEvent(const PlatformKeyboardEvent&); 630 bool dispatchKeyEvent(const PlatformKeyboardEvent&);
631 bool dispatchWheelEvent(const PlatformWheelEvent&); 631 bool dispatchWheelEvent(const PlatformWheelEvent&);
632 bool dispatchMouseEvent(const PlatformMouseEvent&, const AtomicString& event Type, int clickCount = 0, Node* relatedTarget = 0); 632 bool dispatchMouseEvent(const PlatformMouseEvent&, const AtomicString& event Type, int clickCount = 0, Node* relatedTarget = 0);
633 bool dispatchGestureEvent(const PlatformGestureEvent&); 633 bool dispatchGestureEvent(const PlatformGestureEvent&);
634 bool dispatchTouchEvent(PassRefPtr<TouchEvent>); 634 bool dispatchTouchEvent(PassRefPtrWillBeRawPtr<TouchEvent>);
635 635
636 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent Options = SendNoEvents); 636 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent Options = SendNoEvents);
637 637
638 void dispatchInputEvent(); 638 void dispatchInputEvent();
639 639
640 // Perform the default action for an event. 640 // Perform the default action for an event.
641 virtual void defaultEventHandler(Event*); 641 virtual void defaultEventHandler(Event*);
642 virtual void willCallDefaultEventHandler(const Event&); 642 virtual void willCallDefaultEventHandler(const Event&);
643 643
644 virtual EventTargetData* eventTargetData() OVERRIDE; 644 virtual EventTargetData* eventTargetData() OVERRIDE;
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 } // namespace WebCore 902 } // namespace WebCore
903 903
904 #ifndef NDEBUG 904 #ifndef NDEBUG
905 // Outside the WebCore namespace for ease of invocation from gdb. 905 // Outside the WebCore namespace for ease of invocation from gdb.
906 void showNode(const WebCore::Node*); 906 void showNode(const WebCore::Node*);
907 void showTree(const WebCore::Node*); 907 void showTree(const WebCore::Node*);
908 void showNodePath(const WebCore::Node*); 908 void showNodePath(const WebCore::Node*);
909 #endif 909 #endif
910 910
911 #endif 911 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698