| Index: third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarker.h
|
| diff --git a/third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarker.h b/third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarker.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c8a47323b5b1453c45c77ee0db000df425306d0d
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarker.h
|
| @@ -0,0 +1,40 @@
|
| +// 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 ActiveSuggestionMarker_h
|
| +#define ActiveSuggestionMarker_h
|
| +
|
| +#include "core/editing/markers/MarkerWithFormatting.h"
|
| +
|
| +namespace blink {
|
| +
|
| +// A subclass of DocumentMarker used to store information specific to
|
| +// composition markers. We store what color to display the underline (possibly
|
| +// transparent), whether the underline should be thick or not, and what
|
| +// background color should be used under the marked text (also possibly
|
| +// transparent).
|
| +class CORE_EXPORT ActiveSuggestionMarker final : public MarkerWithFormatting {
|
| + public:
|
| + ActiveSuggestionMarker(unsigned start_offset,
|
| + unsigned end_offset,
|
| + Color underline_color,
|
| + Thickness,
|
| + Color background_color);
|
| +
|
| + // DocumentMarker implementations
|
| + MarkerType GetType() const;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(ActiveSuggestionMarker);
|
| +};
|
| +
|
| +DEFINE_TYPE_CASTS(ActiveSuggestionMarker,
|
| + DocumentMarker,
|
| + marker,
|
| + marker->GetType() == DocumentMarker::kActiveSuggestion,
|
| + marker.GetType() == DocumentMarker::kActiveSuggestion);
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif
|
|
|