OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CompositionMarker_h |
| 6 #define CompositionMarker_h |
| 7 |
| 8 #include "core/editing/markers/DocumentMarker.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class CORE_EXPORT CompositionMarker final : public DocumentMarker { |
| 13 public: |
| 14 CompositionMarker(unsigned startOffset, |
| 15 unsigned endOffset, |
| 16 Color underlineColor, |
| 17 bool thick, |
| 18 Color backgroundColor); |
| 19 |
| 20 // DocumentMarker implementations |
| 21 CompositionMarker* clone() const final; |
| 22 |
| 23 MarkerType type() const final; |
| 24 |
| 25 Color underlineColor() const final; |
| 26 bool thick() const final; |
| 27 Color backgroundColor() const final; |
| 28 |
| 29 protected: |
| 30 CompositionMarker(const CompositionMarker&) = default; |
| 31 |
| 32 private: |
| 33 Color m_underlineColor; |
| 34 bool m_thick; |
| 35 Color m_backgroundColor; |
| 36 }; |
| 37 |
| 38 DEFINE_TYPE_CASTS(CompositionMarker, |
| 39 DocumentMarker, |
| 40 marker, |
| 41 marker->type() == DocumentMarker::Composition, |
| 42 marker.type() == DocumentMarker::Composition); |
| 43 |
| 44 } // namespace blink |
| 45 |
| 46 #endif // CompositionMarker_h |
OLD | NEW |