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 THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_MARKERS_SPELLING_MARKER_H_ 6 #define THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_MARKERS_SPELLING_MARKER_H_ 7 8 #include "third_party/blink/renderer/core/editing/markers/spell_check_marker.h" 9 10 namespace blink { 11 12 // A subclass of DocumentMarker used to store information specific to spelling 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 SpellingMarker final : public SpellCheckMarker { 17 public: 18 SpellingMarker(unsigned start_offset, 19 unsigned end_offset, 20 const String& description); 21 22 private: 23 // DocumentMarker implementations 24 MarkerType GetType() const final; 25 26 DISALLOW_COPY_AND_ASSIGN(SpellingMarker); 27 }; 28 29 } // namespace blink 30 31 #endif 32