blob: 645e49e17bd0a145845f53fd36b2c801da923dc6 [file] [log] [blame]
// 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 THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_MARKERS_ACTIVE_SUGGESTION_MARKER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_MARKERS_ACTIVE_SUGGESTION_MARKER_H_
#include "third_party/blink/renderer/core/editing/markers/styleable_marker.h"
namespace blink {
// A subclass of StyleableMarker used to represent ActiveSuggestion markers,
// which are used to mark the region of text an open spellcheck or suggestion
// menu pertains to.
class CORE_EXPORT ActiveSuggestionMarker final : public StyleableMarker {
public:
ActiveSuggestionMarker(unsigned start_offset,
unsigned end_offset,
Color underline_color,
ui::mojom::ImeTextSpanThickness,
ui::mojom::ImeTextSpanUnderlineStyle underline_style,
Color text_color,
Color background_color);
// DocumentMarker implementations
MarkerType GetType() const final;
private:
DISALLOW_COPY_AND_ASSIGN(ActiveSuggestionMarker);
};
} // namespace blink
#endif