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

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

Issue 2911723002: [DMC #24] Add SpellingMarker and GrammarMarker (subclasses of DocumentMarker) (Closed)
Patch Set: Add IsSpellCheckMarker() tests 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 #ifndef GrammarMarker_h
6 #define GrammarMarker_h
7
8 #include "core/editing/markers/SpellCheckMarker.h"
9
10 namespace blink {
11
12 // A subclass of DocumentMarker used to store information specific to grammar
13 // markers. Spelling and grammar markers are identical except that they mark
14 // either spelling or grammar errors, respectively, so nearly all functionality
15 // is delegated to a common base class, SpellCheckMarker.
16 class CORE_EXPORT GrammarMarker final : public SpellCheckMarker {
17 public:
18 GrammarMarker(unsigned start_offset,
19 unsigned end_offset,
20 const String& description);
21
22 private:
23 DISALLOW_COPY_AND_ASSIGN(GrammarMarker);
24 };
25
26 } // namespace blink
27
28 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698