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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarker.h

Issue 2911733002: [DMC #25] Make DocumentMarker::GetType() virtual (Closed)
Patch Set: Rebase Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/markers/DocumentMarker.h
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h b/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h
index 23c7e245536ac90f7f7fc5980c28945abd0538f5..c9611e49dbeb056d02ab52ad30131a99e74a0876 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h
@@ -133,7 +133,7 @@ class CORE_EXPORT DocumentMarker
const String& description);
virtual ~DocumentMarker();
- MarkerType GetType() const { return type_; }
+ virtual MarkerType GetType() const = 0;
unsigned StartOffset() const { return start_offset_; }
unsigned EndOffset() const { return end_offset_; }
@@ -155,10 +155,9 @@ class CORE_EXPORT DocumentMarker
DEFINE_INLINE_VIRTUAL_TRACE() {}
protected:
- DocumentMarker(MarkerType, unsigned start_offset, unsigned end_offset);
+ DocumentMarker(unsigned start_offset, unsigned end_offset);
private:
- MarkerType type_;
unsigned start_offset_;
unsigned end_offset_;

Powered by Google App Engine
This is Rietveld 408576698