Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(719)

Side by Side Diff: third_party/WebKit/Source/core/editing/markers/CompositionMarker.cpp

Issue 2780313002: [WIP] Refactor DocumentMarker (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698