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

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

Issue 645443003: Move parts of core/dom to C++11 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed nit 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/DocumentLifecycleNotifier.h ('k') | Source/core/dom/DocumentMarkerController.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 * This file is part of the DOM implementation for WebCore. 2 * This file is part of the DOM implementation for WebCore.
3 * 3 *
4 * Copyright (C) 2006 Apple Computer, Inc. 4 * Copyright (C) 2006 Apple Computer, Inc.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 void trace(Visitor*); 129 void trace(Visitor*);
130 130
131 private: 131 private:
132 MarkerType m_type; 132 MarkerType m_type;
133 unsigned m_startOffset; 133 unsigned m_startOffset;
134 unsigned m_endOffset; 134 unsigned m_endOffset;
135 RefPtrWillBeMember<DocumentMarkerDetails> m_details; 135 RefPtrWillBeMember<DocumentMarkerDetails> m_details;
136 uint32_t m_hash; 136 uint32_t m_hash;
137 }; 137 };
138 138
139 typedef WillBeHeapVector<RawPtrWillBeMember<DocumentMarker> > DocumentMarkerVect or; 139 using DocumentMarkerVector = WillBeHeapVector<RawPtrWillBeMember<DocumentMarker> >;
140 140
141 inline DocumentMarkerDetails* DocumentMarker::details() const 141 inline DocumentMarkerDetails* DocumentMarker::details() const
142 { 142 {
143 return m_details.get(); 143 return m_details.get();
144 } 144 }
145 145
146 class DocumentMarkerDetails : public RefCountedWillBeGarbageCollectedFinalized<D ocumentMarkerDetails> 146 class DocumentMarkerDetails : public RefCountedWillBeGarbageCollectedFinalized<D ocumentMarkerDetails>
147 { 147 {
148 public: 148 public:
149 DocumentMarkerDetails() { } 149 DocumentMarkerDetails() { }
150 virtual ~DocumentMarkerDetails(); 150 virtual ~DocumentMarkerDetails();
151 virtual bool isDescription() const { return false; } 151 virtual bool isDescription() const { return false; }
152 virtual bool isTextMatch() const { return false; } 152 virtual bool isTextMatch() const { return false; }
153 153
154 virtual void trace(Visitor*) { } 154 virtual void trace(Visitor*) { }
155 }; 155 };
156 156
157 } // namespace blink 157 } // namespace blink
158 158
159 #endif // DocumentMarker_h 159 #endif // DocumentMarker_h
OLDNEW
« no previous file with comments | « Source/core/dom/DocumentLifecycleNotifier.h ('k') | Source/core/dom/DocumentMarkerController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698