OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef SpellCheckMarker_h | |
6 #define SpellCheckMarker_h | |
7 | |
8 #include "core/editing/markers/DocumentMarker.h" | |
9 | |
10 namespace blink { | |
11 | |
12 class CORE_EXPORT SpellCheckMarker : public DocumentMarker { | |
13 public: | |
14 SpellCheckMarker(DocumentMarker::MarkerType, | |
15 unsigned start_offset, | |
16 unsigned end_offset, | |
17 const String& description); | |
18 | |
19 const String& Description() const; | |
20 | |
21 private: | |
22 String description_; | |
yosin_UTC9
2017/05/29 05:13:48
nit: s/String/const String/
| |
23 }; | |
24 | |
25 DEFINE_TYPE_CASTS(SpellCheckMarker, | |
26 DocumentMarker, | |
27 marker, | |
28 marker->GetType() == DocumentMarker::kSpelling || | |
29 marker->GetType() == DocumentMarker::kGrammar, | |
30 marker.GetType() == DocumentMarker::kSpelling || | |
31 marker.GetType() == DocumentMarker::kGrammar); | |
32 | |
33 } // namespace blink | |
34 | |
35 #endif | |
OLD | NEW |