| Index: third_party/WebKit/Source/core/editing/markers/TextMatchMarkerList.h
|
| diff --git a/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerList.h b/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerList.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8f9df9846714cf0bd6635c7b45a23c2d62741939
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerList.h
|
| @@ -0,0 +1,54 @@
|
| +// 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 TextMatchMarkerList_h
|
| +#define TextMatchMarkerList_h
|
| +
|
| +#include "core/editing/markers/DocumentMarkerList.h"
|
| +
|
| +#include "core/editing/markers/TextMatchMarker.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class DocumentMarker;
|
| +
|
| +class TextMatchMarkerList : public DocumentMarkerList {
|
| + public:
|
| + explicit TextMatchMarkerList(DocumentMarkerController*);
|
| +
|
| + // DocumentMarkerList implementations
|
| + DocumentMarker::MarkerType allowedMarkerType() const final;
|
| +
|
| + TextMatchMarker* at(size_t index) override;
|
| +
|
| + void clear() final;
|
| +
|
| + bool copyMarkers(unsigned startOffset,
|
| + int length,
|
| + Node* dstNode,
|
| + int delta) const;
|
| + void removeMarkers(unsigned startOffset,
|
| + int length,
|
| + bool shouldRemovePartiallyOverlappingMarkers,
|
| + bool* didRemoveMarker) final;
|
| + bool shiftMarkers(unsigned startOffset,
|
| + unsigned oldLength,
|
| + unsigned newLength) final;
|
| +
|
| + // TextMatchMarkerList-specific methods
|
| + void appendRenderedRectsToInputList(const Node&,
|
| + Vector<IntRect>* result) const;
|
| + void invalidateRects();
|
| + void push_back(DocumentMarker*);
|
| + bool setTextMatchMarkersActive(unsigned startOffset,
|
| + unsigned endOffset,
|
| + bool active);
|
| +
|
| + DECLARE_VIRTUAL_TRACE();
|
| + DISALLOW_COPY_AND_ASSIGN(TextMatchMarkerList);
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // TextMatchMarkerList_h
|
|
|