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

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

Issue 2780313002: [WIP] Refactor DocumentMarker (Closed)
Patch Set: Move CompositionMarkerList::at() into this CL 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 #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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/BUILD.gn ('k') | third_party/WebKit/Source/core/editing/markers/CompositionMarker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698