blob: 54badaf4361c5a7cbec83877b35227deb78a6632 [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_GRAMMAR_MARKER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_MARKERS_GRAMMAR_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 grammar
// 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 GrammarMarker final : public SpellCheckMarker {
public:
GrammarMarker(unsigned start_offset,
unsigned end_offset,
const String& description);
private:
// DocumentMarker implementations
MarkerType GetType() const final;
DISALLOW_COPY_AND_ASSIGN(GrammarMarker);
};
} // namespace blink
#endif