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

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

Issue 2911733002: [DMC #25] Make DocumentMarker::GetType() virtual (Closed)
Patch Set: Rebase 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GrammarMarker_h 5 #ifndef GrammarMarker_h
6 #define GrammarMarker_h 6 #define GrammarMarker_h
7 7
8 #include "core/editing/markers/SpellCheckMarker.h" 8 #include "core/editing/markers/SpellCheckMarker.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 // A subclass of DocumentMarker used to store information specific to grammar 12 // A subclass of DocumentMarker used to store information specific to grammar
13 // markers. Spelling and grammar markers are identical except that they mark 13 // markers. Spelling and grammar markers are identical except that they mark
14 // either spelling or grammar errors, respectively, so nearly all functionality 14 // either spelling or grammar errors, respectively, so nearly all functionality
15 // is delegated to a common base class, SpellCheckMarker. 15 // is delegated to a common base class, SpellCheckMarker.
16 class CORE_EXPORT GrammarMarker final : public SpellCheckMarker { 16 class CORE_EXPORT GrammarMarker final : public SpellCheckMarker {
17 public: 17 public:
18 GrammarMarker(unsigned start_offset, 18 GrammarMarker(unsigned start_offset,
19 unsigned end_offset, 19 unsigned end_offset,
20 const String& description); 20 const String& description);
21 21
22 private: 22 private:
23 // DocumentMarker implementations
24 MarkerType GetType() const final;
25
23 DISALLOW_COPY_AND_ASSIGN(GrammarMarker); 26 DISALLOW_COPY_AND_ASSIGN(GrammarMarker);
24 }; 27 };
25 28
26 } // namespace blink 29 } // namespace blink
27 30
28 #endif 31 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698