summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/editing/markers/composition_marker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/editing/markers/composition_marker.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/editing/markers/composition_marker.cc24
1 files changed, 24 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/editing/markers/composition_marker.cc b/chromium/third_party/blink/renderer/core/editing/markers/composition_marker.cc
new file mode 100644
index 00000000000..954fa2ae1e1
--- /dev/null
+++ b/chromium/third_party/blink/renderer/core/editing/markers/composition_marker.cc
@@ -0,0 +1,24 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "third_party/blink/renderer/core/editing/markers/composition_marker.h"
+
+namespace blink {
+
+CompositionMarker::CompositionMarker(unsigned start_offset,
+ unsigned end_offset,
+ Color underline_color,
+ ui::mojom::ImeTextSpanThickness thickness,
+ Color background_color)
+ : StyleableMarker(start_offset,
+ end_offset,
+ underline_color,
+ thickness,
+ background_color) {}
+
+DocumentMarker::MarkerType CompositionMarker::GetType() const {
+ return DocumentMarker::kComposition;
+}
+
+} // namespace blink