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

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

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/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 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 19 matching lines...) Expand all
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "core/dom/DocumentMarker.h" 32 #include "core/dom/DocumentMarker.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 DocumentMarkerDetails::~DocumentMarkerDetails() 36 DocumentMarkerDetails::~DocumentMarkerDetails()
37 { 37 {
38 } 38 }
39 39
40 class DocumentMarkerDescription FINAL : public DocumentMarkerDetails { 40 class DocumentMarkerDescription final : public DocumentMarkerDetails {
41 public: 41 public:
42 static PassRefPtrWillBeRawPtr<DocumentMarkerDescription> create(const String &); 42 static PassRefPtrWillBeRawPtr<DocumentMarkerDescription> create(const String &);
43 43
44 const String& description() const { return m_description; } 44 const String& description() const { return m_description; }
45 virtual bool isDescription() const OVERRIDE { return true; } 45 virtual bool isDescription() const override { return true; }
46 46
47 private: 47 private:
48 explicit DocumentMarkerDescription(const String& description) 48 explicit DocumentMarkerDescription(const String& description)
49 : m_description(description) 49 : m_description(description)
50 { 50 {
51 } 51 }
52 52
53 String m_description; 53 String m_description;
54 }; 54 };
55 55
56 PassRefPtrWillBeRawPtr<DocumentMarkerDescription> DocumentMarkerDescription::cre ate(const String& description) 56 PassRefPtrWillBeRawPtr<DocumentMarkerDescription> DocumentMarkerDescription::cre ate(const String& description)
57 { 57 {
58 return adoptRefWillBeNoop(new DocumentMarkerDescription(description)); 58 return adoptRefWillBeNoop(new DocumentMarkerDescription(description));
59 } 59 }
60 60
61 inline DocumentMarkerDescription* toDocumentMarkerDescription(DocumentMarkerDeta ils* details) 61 inline DocumentMarkerDescription* toDocumentMarkerDescription(DocumentMarkerDeta ils* details)
62 { 62 {
63 if (details && details->isDescription()) 63 if (details && details->isDescription())
64 return static_cast<DocumentMarkerDescription*>(details); 64 return static_cast<DocumentMarkerDescription*>(details);
65 return 0; 65 return 0;
66 } 66 }
67 67
68 68
69 class DocumentMarkerTextMatch FINAL : public DocumentMarkerDetails { 69 class DocumentMarkerTextMatch final : public DocumentMarkerDetails {
70 public: 70 public:
71 static PassRefPtrWillBeRawPtr<DocumentMarkerTextMatch> instanceFor(bool); 71 static PassRefPtrWillBeRawPtr<DocumentMarkerTextMatch> instanceFor(bool);
72 72
73 bool activeMatch() const { return m_match; } 73 bool activeMatch() const { return m_match; }
74 virtual bool isTextMatch() const OVERRIDE { return true; } 74 virtual bool isTextMatch() const override { return true; }
75 75
76 private: 76 private:
77 explicit DocumentMarkerTextMatch(bool match) 77 explicit DocumentMarkerTextMatch(bool match)
78 : m_match(match) 78 : m_match(match)
79 { 79 {
80 } 80 }
81 81
82 bool m_match; 82 bool m_match;
83 }; 83 };
84 84
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 return details->activeMatch(); 165 return details->activeMatch();
166 return false; 166 return false;
167 } 167 }
168 168
169 void DocumentMarker::trace(Visitor* visitor) 169 void DocumentMarker::trace(Visitor* visitor)
170 { 170 {
171 visitor->trace(m_details); 171 visitor->trace(m_details);
172 } 172 }
173 173
174 } // namespace blink 174 } // namespace blink
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