| Index: third_party/WebKit/Source/core/editing/markers/CompositionMarkerList.h
|
| diff --git a/third_party/WebKit/Source/core/editing/markers/CompositionMarkerList.h b/third_party/WebKit/Source/core/editing/markers/CompositionMarkerList.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..91451e1adbe212ddd2d7e02f53feb5e43c4bf958
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/editing/markers/CompositionMarkerList.h
|
| @@ -0,0 +1,63 @@
|
| +// 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 CompositionMarkerList_h
|
| +#define CompositionMarkerList_h
|
| +
|
| +#include "core/editing/markers/DocumentMarkerList.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class CORE_EXPORT CompositionMarkerList final : public DocumentMarkerList {
|
| + public:
|
| + CompositionMarkerList();
|
| +
|
| + DocumentMarker::MarkerType allowedMarkerType() const final;
|
| + bool isCompositionMarkerList() const final;
|
| +
|
| + size_t size() const final;
|
| + bool empty() const final;
|
| + DocumentMarker* at(size_t index) final;
|
| +
|
| + void add(DocumentMarker*) final;
|
| + void clear() final;
|
| +
|
| + iterator begin() final;
|
| + iterator end() final;
|
| + const_iterator begin() const final;
|
| + const_iterator end() const final;
|
| +
|
| + void appendMarkersToInputList(DocumentMarkerVector* list) const;
|
| +
|
| + DidCopyMarkerOrNot copyMarkers(unsigned startOffset,
|
| + int length,
|
| + DocumentMarkerList* dstList,
|
| + int delta) final;
|
| +
|
| + DidRemoveMarkerOrNot removeMarkers(
|
| + unsigned startOffset,
|
| + int length,
|
| + bool shouldRemovePartiallyOverlappingMarkers) final;
|
| +
|
| + DidShiftMarkerOrNot shiftMarkers(unsigned offset,
|
| + unsigned oldLength,
|
| + unsigned newLength) final;
|
| +
|
| + DECLARE_VIRTUAL_TRACE();
|
| +
|
| + private:
|
| + HeapVector<Member<DocumentMarker>> m_markers;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(CompositionMarkerList);
|
| +};
|
| +
|
| +DEFINE_TYPE_CASTS(CompositionMarkerList,
|
| + DocumentMarkerList,
|
| + list,
|
| + list->isCompositionMarkerList(),
|
| + list.isCompositionMarkerList());
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // CompositionMarkerList_h
|
|
|