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

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

Issue 633573004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 | « Source/core/dom/NamedNodeMap.h ('k') | Source/core/dom/NodeFilter.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-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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 virtual bool willRespondToMouseClickEvents(); 587 virtual bool willRespondToMouseClickEvents();
588 virtual bool willRespondToTouchEvents(); 588 virtual bool willRespondToTouchEvents();
589 589
590 enum ShadowTreesTreatment { 590 enum ShadowTreesTreatment {
591 TreatShadowTreesAsDisconnected, 591 TreatShadowTreesAsDisconnected,
592 TreatShadowTreesAsComposed 592 TreatShadowTreesAsComposed
593 }; 593 };
594 594
595 unsigned short compareDocumentPosition(const Node*, ShadowTreesTreatment = T reatShadowTreesAsDisconnected) const; 595 unsigned short compareDocumentPosition(const Node*, ShadowTreesTreatment = T reatShadowTreesAsDisconnected) const;
596 596
597 virtual Node* toNode() OVERRIDE FINAL; 597 virtual Node* toNode() override final;
598 598
599 virtual const AtomicString& interfaceName() const OVERRIDE; 599 virtual const AtomicString& interfaceName() const override;
600 virtual ExecutionContext* executionContext() const OVERRIDE FINAL; 600 virtual ExecutionContext* executionContext() const override final;
601 601
602 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even tListener>, bool useCapture = false) OVERRIDE; 602 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even tListener>, bool useCapture = false) override;
603 virtual bool removeEventListener(const AtomicString& eventType, PassRefPtr<E ventListener>, bool useCapture = false) OVERRIDE; 603 virtual bool removeEventListener(const AtomicString& eventType, PassRefPtr<E ventListener>, bool useCapture = false) override;
604 virtual void removeAllEventListeners() OVERRIDE; 604 virtual void removeAllEventListeners() override;
605 void removeAllEventListenersRecursively(); 605 void removeAllEventListenersRecursively();
606 606
607 // Handlers to do/undo actions on the target node before an event is dispatc hed to it and after the event 607 // Handlers to do/undo actions on the target node before an event is dispatc hed to it and after the event
608 // has been dispatched. The data pointer is handed back by the preDispatch and passed to postDispatch. 608 // has been dispatched. The data pointer is handed back by the preDispatch and passed to postDispatch.
609 virtual void* preDispatchEventHandler(Event*) { return 0; } 609 virtual void* preDispatchEventHandler(Event*) { return 0; }
610 virtual void postDispatchEventHandler(Event*, void* /*dataFromPreDispatch*/) { } 610 virtual void postDispatchEventHandler(Event*, void* /*dataFromPreDispatch*/) { }
611 611
612 using EventTarget::dispatchEvent; 612 using EventTarget::dispatchEvent;
613 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE; 613 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override;
614 614
615 void dispatchScopedEvent(PassRefPtrWillBeRawPtr<Event>); 615 void dispatchScopedEvent(PassRefPtrWillBeRawPtr<Event>);
616 void dispatchScopedEventDispatchMediator(PassRefPtrWillBeRawPtr<EventDispatc hMediator>); 616 void dispatchScopedEventDispatchMediator(PassRefPtrWillBeRawPtr<EventDispatc hMediator>);
617 617
618 virtual void handleLocalEvents(Event*); 618 virtual void handleLocalEvents(Event*);
619 619
620 void dispatchSubtreeModifiedEvent(); 620 void dispatchSubtreeModifiedEvent();
621 bool dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRawPtr<Event> unde rlyingEvent); 621 bool dispatchDOMActivateEvent(int detail, PassRefPtrWillBeRawPtr<Event> unde rlyingEvent);
622 622
623 bool dispatchKeyEvent(const PlatformKeyboardEvent&); 623 bool dispatchKeyEvent(const PlatformKeyboardEvent&);
624 bool dispatchWheelEvent(const PlatformWheelEvent&); 624 bool dispatchWheelEvent(const PlatformWheelEvent&);
625 bool dispatchMouseEvent(const PlatformMouseEvent&, const AtomicString& event Type, int clickCount = 0, Node* relatedTarget = 0); 625 bool dispatchMouseEvent(const PlatformMouseEvent&, const AtomicString& event Type, int clickCount = 0, Node* relatedTarget = 0);
626 bool dispatchGestureEvent(const PlatformGestureEvent&); 626 bool dispatchGestureEvent(const PlatformGestureEvent&);
627 bool dispatchTouchEvent(PassRefPtrWillBeRawPtr<TouchEvent>); 627 bool dispatchTouchEvent(PassRefPtrWillBeRawPtr<TouchEvent>);
628 628
629 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent Options = SendNoEvents); 629 void dispatchSimulatedClick(Event* underlyingEvent, SimulatedClickMouseEvent Options = SendNoEvents);
630 630
631 void dispatchInputEvent(); 631 void dispatchInputEvent();
632 632
633 // Perform the default action for an event. 633 // Perform the default action for an event.
634 virtual void defaultEventHandler(Event*); 634 virtual void defaultEventHandler(Event*);
635 virtual void willCallDefaultEventHandler(const Event&); 635 virtual void willCallDefaultEventHandler(const Event&);
636 636
637 virtual EventTargetData* eventTargetData() OVERRIDE; 637 virtual EventTargetData* eventTargetData() override;
638 virtual EventTargetData& ensureEventTargetData() OVERRIDE; 638 virtual EventTargetData& ensureEventTargetData() override;
639 639
640 void getRegisteredMutationObserversOfType(WillBeHeapHashMap<RawPtrWillBeMemb er<MutationObserver>, MutationRecordDeliveryOptions>&, MutationObserver::Mutatio nType, const QualifiedName* attributeName); 640 void getRegisteredMutationObserversOfType(WillBeHeapHashMap<RawPtrWillBeMemb er<MutationObserver>, MutationRecordDeliveryOptions>&, MutationObserver::Mutatio nType, const QualifiedName* attributeName);
641 void registerMutationObserver(MutationObserver&, MutationObserverOptions, co nst HashSet<AtomicString>& attributeFilter); 641 void registerMutationObserver(MutationObserver&, MutationObserverOptions, co nst HashSet<AtomicString>& attributeFilter);
642 void unregisterMutationObserver(MutationObserverRegistration*); 642 void unregisterMutationObserver(MutationObserverRegistration*);
643 void registerTransientMutationObserver(MutationObserverRegistration*); 643 void registerTransientMutationObserver(MutationObserverRegistration*);
644 void unregisterTransientMutationObserver(MutationObserverRegistration*); 644 void unregisterTransientMutationObserver(MutationObserverRegistration*);
645 void notifyMutationObserversNodeWillDetach(); 645 void notifyMutationObserversNodeWillDetach();
646 646
647 unsigned connectedSubframeCount() const; 647 unsigned connectedSubframeCount() const;
648 void incrementConnectedSubframeCount(unsigned amount = 1); 648 void incrementConnectedSubframeCount(unsigned amount = 1);
649 void decrementConnectedSubframeCount(unsigned amount = 1); 649 void decrementConnectedSubframeCount(unsigned amount = 1);
650 void updateAncestorConnectedSubframeCountForRemoval() const; 650 void updateAncestorConnectedSubframeCountForRemoval() const;
651 void updateAncestorConnectedSubframeCountForInsertion() const; 651 void updateAncestorConnectedSubframeCountForInsertion() const;
652 652
653 PassRefPtrWillBeRawPtr<StaticNodeList> getDestinationInsertionPoints(); 653 PassRefPtrWillBeRawPtr<StaticNodeList> getDestinationInsertionPoints();
654 654
655 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl ag); } 655 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl ag); }
656 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } 656 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); }
657 657
658 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi ldrenFlag); } 658 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi ldrenFlag); }
659 659
660 virtual void trace(Visitor*) OVERRIDE; 660 virtual void trace(Visitor*) override;
661 661
662 unsigned lengthOfContents() const; 662 unsigned lengthOfContents() const;
663 663
664 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) OVERRIDE; 664 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) override;
665 virtual v8::Handle<v8::Object> associateWithWrapper(const WrapperTypeInfo*, v8::Handle<v8::Object> wrapper, v8::Isolate*) OVERRIDE; 665 virtual v8::Handle<v8::Object> associateWithWrapper(const WrapperTypeInfo*, v8::Handle<v8::Object> wrapper, v8::Isolate*) override;
666 666
667 private: 667 private:
668 enum NodeFlags { 668 enum NodeFlags {
669 HasRareDataFlag = 1, 669 HasRareDataFlag = 1,
670 670
671 // Node type flags. These never change once created. 671 // Node type flags. These never change once created.
672 IsTextFlag = 1 << 1, 672 IsTextFlag = 1 << 1,
673 IsContainerFlag = 1 << 2, 673 IsContainerFlag = 1 << 2,
674 IsElementFlag = 1 << 3, 674 IsElementFlag = 1 << 3,
675 IsHTMLFlag = 1 << 4, 675 IsHTMLFlag = 1 << 4,
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 } // namespace blink 886 } // namespace blink
887 887
888 #ifndef NDEBUG 888 #ifndef NDEBUG
889 // Outside the WebCore namespace for ease of invocation from gdb. 889 // Outside the WebCore namespace for ease of invocation from gdb.
890 void showNode(const blink::Node*); 890 void showNode(const blink::Node*);
891 void showTree(const blink::Node*); 891 void showTree(const blink::Node*);
892 void showNodePath(const blink::Node*); 892 void showNodePath(const blink::Node*);
893 #endif 893 #endif
894 894
895 #endif // Node_h 895 #endif // Node_h
OLDNEW
« no previous file with comments | « Source/core/dom/NamedNodeMap.h ('k') | Source/core/dom/NodeFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698