summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/editing/markers/suggestion_marker.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/editing/markers/suggestion_marker.h')
-rw-r--r--chromium/third_party/blink/renderer/core/editing/markers/suggestion_marker.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/editing/markers/suggestion_marker.h b/chromium/third_party/blink/renderer/core/editing/markers/suggestion_marker.h
index 3289450d94a..81d0d0b9b12 100644
--- a/chromium/third_party/blink/renderer/core/editing/markers/suggestion_marker.h
+++ b/chromium/third_party/blink/renderer/core/editing/markers/suggestion_marker.h
@@ -20,6 +20,7 @@ class SuggestionMarkerProperties;
class CORE_EXPORT SuggestionMarker final : public StyleableMarker {
public:
enum class SuggestionType { kMisspelling, kNotMisspelling };
+ enum class RemoveOnFinishComposing { kRemove, kDoNotRemove };
SuggestionMarker(unsigned start_offset,
unsigned end_offset,
@@ -32,6 +33,7 @@ class CORE_EXPORT SuggestionMarker final : public StyleableMarker {
int32_t Tag() const;
const Vector<String>& Suggestions() const;
bool IsMisspelling() const;
+ bool NeedsRemovalOnFinishComposing() const;
Color SuggestionHighlightColor() const;
// Replace the suggestion at suggestion_index with new_suggestion.
@@ -47,6 +49,7 @@ class CORE_EXPORT SuggestionMarker final : public StyleableMarker {
const int32_t tag_;
Vector<String> suggestions_;
const SuggestionType suggestion_type_;
+ const RemoveOnFinishComposing remove_on_finish_composing_;
const Color suggestion_highlight_color_;
DISALLOW_COPY_AND_ASSIGN(SuggestionMarker);