summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/editing/markers/document_marker.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/editing/markers/document_marker.h')
-rw-r--r--chromium/third_party/blink/renderer/core/editing/markers/document_marker.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/core/editing/markers/document_marker.h b/chromium/third_party/blink/renderer/core/editing/markers/document_marker.h
index cf25dce4d00..a0523366bc0 100644
--- a/chromium/third_party/blink/renderer/core/editing/markers/document_marker.h
+++ b/chromium/third_party/blink/renderer/core/editing/markers/document_marker.h
@@ -25,7 +25,6 @@
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "third_party/blink/renderer/core/core_export.h"
-#include "third_party/blink/renderer/platform/graphics/color.h"
#include "third_party/blink/renderer/platform/heap/handle.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
@@ -46,6 +45,7 @@ class CORE_EXPORT DocumentMarker : public GarbageCollected<DocumentMarker> {
kActiveSuggestionMarkerIndex,
kSuggestionMarkerIndex,
kTextFragmentMarkerIndex,
+ kHighlightMarkerIndex,
kMarkerTypeIndexesCount
};
@@ -57,6 +57,7 @@ class CORE_EXPORT DocumentMarker : public GarbageCollected<DocumentMarker> {
kActiveSuggestion = 1 << kActiveSuggestionMarkerIndex,
kSuggestion = 1 << kSuggestionMarkerIndex,
kTextFragment = 1 << kTextFragmentMarkerIndex,
+ kHighlight = 1 << kHighlightMarkerIndex
};
class MarkerTypesIterator
@@ -125,6 +126,7 @@ class CORE_EXPORT DocumentMarker : public GarbageCollected<DocumentMarker> {
static MarkerTypes TextMatch() { return MarkerTypes(kTextMatch); }
static MarkerTypes Suggestion() { return MarkerTypes(kSuggestion); }
static MarkerTypes TextFragment() { return MarkerTypes(kTextFragment); }
+ static MarkerTypes Highlight() { return MarkerTypes(kHighlight); }
bool Contains(MarkerType type) const { return mask_ & type; }
bool Intersects(const MarkerTypes& types) const {
@@ -145,6 +147,8 @@ class CORE_EXPORT DocumentMarker : public GarbageCollected<DocumentMarker> {
unsigned mask_;
};
+ DocumentMarker(const DocumentMarker&) = delete;
+ DocumentMarker& operator=(const DocumentMarker&) = delete;
virtual ~DocumentMarker();
virtual MarkerType GetType() const = 0;
@@ -175,8 +179,6 @@ class CORE_EXPORT DocumentMarker : public GarbageCollected<DocumentMarker> {
private:
unsigned start_offset_;
unsigned end_offset_;
-
- DISALLOW_COPY_AND_ASSIGN(DocumentMarker);
};
using DocumentMarkerVector = HeapVector<Member<DocumentMarker>>;