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

Side by Side Diff: Source/core/dom/StaticNodeList.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/ShadowTreeStyleSheetCollection.h ('k') | Source/core/dom/StringCallback.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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 23 matching lines...) Expand all
34 #include "wtf/RefPtr.h" 34 #include "wtf/RefPtr.h"
35 #include "wtf/Vector.h" 35 #include "wtf/Vector.h"
36 #include <v8.h> 36 #include <v8.h>
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class Element; 40 class Element;
41 class Node; 41 class Node;
42 42
43 template <typename NodeType> 43 template <typename NodeType>
44 class StaticNodeTypeList FINAL : public NodeList { 44 class StaticNodeTypeList final : public NodeList {
45 public: 45 public:
46 static PassRefPtrWillBeRawPtr<StaticNodeTypeList> adopt(WillBeHeapVector<Ref PtrWillBeMember<NodeType> >& nodes); 46 static PassRefPtrWillBeRawPtr<StaticNodeTypeList> adopt(WillBeHeapVector<Ref PtrWillBeMember<NodeType> >& nodes);
47 47
48 static PassRefPtrWillBeRawPtr<StaticNodeTypeList> createEmpty() 48 static PassRefPtrWillBeRawPtr<StaticNodeTypeList> createEmpty()
49 { 49 {
50 return adoptRefWillBeNoop(new StaticNodeTypeList); 50 return adoptRefWillBeNoop(new StaticNodeTypeList);
51 } 51 }
52 52
53 virtual ~StaticNodeTypeList(); 53 virtual ~StaticNodeTypeList();
54 54
55 virtual unsigned length() const OVERRIDE; 55 virtual unsigned length() const override;
56 virtual NodeType* item(unsigned index) const OVERRIDE; 56 virtual NodeType* item(unsigned index) const override;
57 57
58 virtual void trace(Visitor*) OVERRIDE; 58 virtual void trace(Visitor*) override;
59 59
60 private: 60 private:
61 ptrdiff_t AllocationSize() 61 ptrdiff_t AllocationSize()
62 { 62 {
63 return m_nodes.capacity() * sizeof(RefPtrWillBeMember<NodeType>); 63 return m_nodes.capacity() * sizeof(RefPtrWillBeMember<NodeType>);
64 } 64 }
65 65
66 WillBeHeapVector<RefPtrWillBeMember<NodeType> > m_nodes; 66 WillBeHeapVector<RefPtrWillBeMember<NodeType> > m_nodes;
67 }; 67 };
68 68
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 template <typename NodeType> 101 template <typename NodeType>
102 void StaticNodeTypeList<NodeType>::trace(Visitor* visitor) 102 void StaticNodeTypeList<NodeType>::trace(Visitor* visitor)
103 { 103 {
104 visitor->trace(m_nodes); 104 visitor->trace(m_nodes);
105 NodeList::trace(visitor); 105 NodeList::trace(visitor);
106 } 106 }
107 107
108 } // namespace blink 108 } // namespace blink
109 109
110 #endif // StaticNodeList_h 110 #endif // StaticNodeList_h
OLDNEW
« no previous file with comments | « Source/core/dom/ShadowTreeStyleSheetCollection.h ('k') | Source/core/dom/StringCallback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698