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

Side by Side Diff: third_party/WebKit/Source/core/editing/markers/SpellCheckMarker.h

Issue 2911733002: [DMC #25] Make DocumentMarker::GetType() virtual (Closed)
Patch Set: Rebase Created 3 years, 6 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SpellCheckMarker_h 5 #ifndef SpellCheckMarker_h
6 #define SpellCheckMarker_h 6 #define SpellCheckMarker_h
7 7
8 #include "core/editing/markers/DocumentMarker.h" 8 #include "core/editing/markers/DocumentMarker.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class CORE_EXPORT SpellCheckMarker : public DocumentMarker { 12 class CORE_EXPORT SpellCheckMarker : public DocumentMarker {
13 public: 13 public:
14 SpellCheckMarker(DocumentMarker::MarkerType, 14 SpellCheckMarker(unsigned start_offset,
15 unsigned start_offset,
16 unsigned end_offset, 15 unsigned end_offset,
17 const String& description); 16 const String& description);
18 17
19 const String& Description() const; 18 const String& Description() const;
20 19
21 private: 20 private:
22 String description_; 21 String description_;
23 }; 22 };
24 23
25 DEFINE_TYPE_CASTS(SpellCheckMarker, 24 DEFINE_TYPE_CASTS(SpellCheckMarker,
26 DocumentMarker, 25 DocumentMarker,
27 marker, 26 marker,
28 marker->GetType() == DocumentMarker::kSpelling || 27 marker->GetType() == DocumentMarker::kSpelling ||
29 marker->GetType() == DocumentMarker::kGrammar, 28 marker->GetType() == DocumentMarker::kGrammar,
30 marker.GetType() == DocumentMarker::kSpelling || 29 marker.GetType() == DocumentMarker::kSpelling ||
31 marker.GetType() == DocumentMarker::kGrammar); 30 marker.GetType() == DocumentMarker::kGrammar);
32 31
33 } // namespace blink 32 } // namespace blink
34 33
35 #endif 34 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698