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

Side by Side Diff: Source/core/dom/EmptyNodeList.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/ElementDataCache.h ('k') | Source/core/dom/ExecutionContext.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) 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2013 Apple Inc. All rights reserved.
3 * Copyright (C) 2014 Samsung Electronics. All rights reserved. 3 * Copyright (C) 2014 Samsung Electronics. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 19 matching lines...) Expand all
30 */ 30 */
31 31
32 #ifndef EmptyNodeList_h 32 #ifndef EmptyNodeList_h
33 #define EmptyNodeList_h 33 #define EmptyNodeList_h
34 34
35 #include "core/dom/NodeList.h" 35 #include "core/dom/NodeList.h"
36 #include "wtf/RefPtr.h" 36 #include "wtf/RefPtr.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class EmptyNodeList FINAL : public NodeList { 40 class EmptyNodeList final : public NodeList {
41 public: 41 public:
42 static PassRefPtrWillBeRawPtr<EmptyNodeList> create(Node& rootNode) 42 static PassRefPtrWillBeRawPtr<EmptyNodeList> create(Node& rootNode)
43 { 43 {
44 return adoptRefWillBeNoop(new EmptyNodeList(rootNode)); 44 return adoptRefWillBeNoop(new EmptyNodeList(rootNode));
45 } 45 }
46 virtual ~EmptyNodeList(); 46 virtual ~EmptyNodeList();
47 47
48 Node& ownerNode() const { return *m_owner; } 48 Node& ownerNode() const { return *m_owner; }
49 49
50 virtual void trace(Visitor*) OVERRIDE; 50 virtual void trace(Visitor*) override;
51 51
52 private: 52 private:
53 explicit EmptyNodeList(Node& rootNode) : m_owner(rootNode) { } 53 explicit EmptyNodeList(Node& rootNode) : m_owner(rootNode) { }
54 54
55 virtual unsigned length() const OVERRIDE { return 0; } 55 virtual unsigned length() const override { return 0; }
56 virtual Node* item(unsigned) const OVERRIDE { return 0; } 56 virtual Node* item(unsigned) const override { return 0; }
57 57
58 virtual bool isEmptyNodeList() const OVERRIDE { return true; } 58 virtual bool isEmptyNodeList() const override { return true; }
59 virtual Node* virtualOwnerNode() const OVERRIDE; 59 virtual Node* virtualOwnerNode() const override;
60 60
61 RefPtrWillBeMember<Node> m_owner; 61 RefPtrWillBeMember<Node> m_owner;
62 }; 62 };
63 63
64 DEFINE_TYPE_CASTS(EmptyNodeList, NodeList, nodeList, nodeList->isEmptyNodeList() , nodeList.isEmptyNodeList()); 64 DEFINE_TYPE_CASTS(EmptyNodeList, NodeList, nodeList, nodeList->isEmptyNodeList() , nodeList.isEmptyNodeList());
65 65
66 } // namespace blink 66 } // namespace blink
67 67
68 #endif // EmptyNodeList_h 68 #endif // EmptyNodeList_h
OLDNEW
« no previous file with comments | « Source/core/dom/ElementDataCache.h ('k') | Source/core/dom/ExecutionContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698