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

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

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 #include "core/editing/markers/SpellCheckMarker.h"
6
7 namespace blink {
8
9 SpellCheckMarker::SpellCheckMarker(DocumentMarker::MarkerType type,
10 unsigned startOffset,
11 unsigned endOffset,
12 const String& description)
13 : DocumentMarker(startOffset, endOffset),
14 m_type(type),
15 m_description(description) {
16 DCHECK(type == DocumentMarker::Spelling || type == DocumentMarker::Grammar);
17 }
18
19 SpellCheckMarker* SpellCheckMarker::clone() const {
20 return new SpellCheckMarker(*this);
21 }
22
23 DocumentMarker::MarkerType SpellCheckMarker::type() const {
24 return m_type;
25 }
26
27 const String& SpellCheckMarker::description() const {
28 return m_description;
29 }
30
31 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698