| Index: third_party/WebKit/Source/core/editing/markers/SpellCheckMarker.h
|
| diff --git a/third_party/WebKit/Source/core/editing/markers/SpellCheckMarker.h b/third_party/WebKit/Source/core/editing/markers/SpellCheckMarker.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f0cd02b68222964c848fa67632c0d419131862cd
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/editing/markers/SpellCheckMarker.h
|
| @@ -0,0 +1,44 @@
|
| +// 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 SpellCheckMarker_h
|
| +#define SpellCheckMarker_h
|
| +
|
| +#include "core/editing/markers/DocumentMarker.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class CORE_EXPORT SpellCheckMarker final : public DocumentMarker {
|
| + public:
|
| + SpellCheckMarker(DocumentMarker::MarkerType,
|
| + unsigned startOffset,
|
| + unsigned endOffset,
|
| + const String& description);
|
| +
|
| + // DocumentMarker implementations
|
| + SpellCheckMarker* clone() const final;
|
| +
|
| + MarkerType type() const final;
|
| +
|
| + const String& description() const final;
|
| +
|
| + protected:
|
| + SpellCheckMarker(const SpellCheckMarker&) = default;
|
| +
|
| + private:
|
| + DocumentMarker::MarkerType m_type;
|
| + String m_description;
|
| +};
|
| +
|
| +DEFINE_TYPE_CASTS(SpellCheckMarker,
|
| + DocumentMarker,
|
| + marker,
|
| + marker->type() == DocumentMarker::Spelling ||
|
| + marker->type() == DocumentMarker::Grammar,
|
| + marker.type() == DocumentMarker::Spelling ||
|
| + marker.type() == DocumentMarker::Grammar);
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // SpellCheckMarker_h
|
|
|