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 #include "core/editing/markers/CompositionMarker.h" |
| 6 |
| 7 namespace blink { |
| 8 |
| 9 CompositionMarker::CompositionMarker(unsigned startOffset, |
| 10 unsigned endOffset, |
| 11 Color underlineColor, |
| 12 bool thick, |
| 13 Color backgroundColor) |
| 14 : DocumentMarker(startOffset, endOffset), |
| 15 m_underlineColor(underlineColor), |
| 16 m_thick(thick), |
| 17 m_backgroundColor(backgroundColor) {} |
| 18 |
| 19 CompositionMarker* CompositionMarker::clone() const { |
| 20 return new CompositionMarker(*this); |
| 21 } |
| 22 |
| 23 DocumentMarker::MarkerType CompositionMarker::type() const { |
| 24 return DocumentMarker::Composition; |
| 25 } |
| 26 |
| 27 Color CompositionMarker::underlineColor() const { |
| 28 return m_underlineColor; |
| 29 } |
| 30 |
| 31 bool CompositionMarker::thick() const { |
| 32 return m_thick; |
| 33 } |
| 34 |
| 35 Color CompositionMarker::backgroundColor() const { |
| 36 return m_backgroundColor; |
| 37 } |
| 38 |
| 39 } // namespace blink |
OLD | NEW |