| OLD | NEW |
| 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 |
| OLD | NEW |