blob: 0267b788f4bd703dff5cddf0527791f3ba68c594 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_MARKERS_SPELLING_MARKER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_MARKERS_SPELLING_MARKER_H_
#include "third_party/blink/renderer/core/editing/markers/spell_check_marker.h"
namespace blink {
// A subclass of DocumentMarker used to store information specific to spelling
// markers. Spelling and grammar markers are identical except that they mark
// either spelling or grammar errors, respectively, so nearly all functionality
// is delegated to a common base class, SpellCheckMarker.
class CORE_EXPORT SpellingMarker final : public SpellCheckMarker {
public:
SpellingMarker(unsigned start_offset,
unsigned end_offset,
const String& description);
private:
// DocumentMarker implementations
MarkerType GetType() const final;
DISALLOW_COPY_AND_ASSIGN(SpellingMarker);
};
} // namespace blink
#endif