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