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

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

Issue 2908643002: [DMC #23] Add CompositionMarker (subclass of DocumentMarker) (Closed)
Patch Set: Attempt to fix Android build by using EXPECT_FALSE() Created 3 years, 6 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 start_offset,
10 unsigned end_offset,
11 Color underline_color,
12 bool thick,
13 Color background_color)
14 : DocumentMarker(DocumentMarker::kComposition, start_offset, end_offset),
15 underline_color_(underline_color),
16 background_color_(background_color),
17 thick_(thick) {}
18
19 Color CompositionMarker::UnderlineColor() const {
20 return underline_color_;
21 }
22
23 bool CompositionMarker::Thick() const {
24 return thick_;
25 }
26
27 Color CompositionMarker::BackgroundColor() const {
28 return background_color_;
29 }
30
31 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698