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 GrammarMarker_h | 5 #ifndef GrammarMarker_h |
6 #define GrammarMarker_h | 6 #define GrammarMarker_h |
7 | 7 |
8 #include "core/editing/markers/SpellCheckMarker.h" | 8 #include "core/editing/markers/SpellCheckMarker.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 // A subclass of DocumentMarker used to store information specific to grammar | 12 // A subclass of DocumentMarker used to store information specific to grammar |
13 // markers. Spelling and grammar markers are identical except that they mark | 13 // markers. Spelling and grammar markers are identical except that they mark |
14 // either spelling or grammar errors, respectively, so nearly all functionality | 14 // either spelling or grammar errors, respectively, so nearly all functionality |
15 // is delegated to a common base class, SpellCheckMarker. | 15 // is delegated to a common base class, SpellCheckMarker. |
16 class CORE_EXPORT GrammarMarker final : public SpellCheckMarker { | 16 class CORE_EXPORT GrammarMarker final : public SpellCheckMarker { |
17 public: | 17 public: |
18 GrammarMarker(unsigned start_offset, | 18 GrammarMarker(unsigned start_offset, |
19 unsigned end_offset, | 19 unsigned end_offset, |
20 const String& description); | 20 const String& description); |
21 | 21 |
22 private: | 22 private: |
| 23 // DocumentMarker implementations |
| 24 MarkerType GetType() const final; |
| 25 |
23 DISALLOW_COPY_AND_ASSIGN(GrammarMarker); | 26 DISALLOW_COPY_AND_ASSIGN(GrammarMarker); |
24 }; | 27 }; |
25 | 28 |
26 } // namespace blink | 29 } // namespace blink |
27 | 30 |
28 #endif | 31 #endif |
OLD | NEW |