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/TextMatchMarker.h

Issue 2780313002: [WIP] Refactor DocumentMarker (Closed)
Patch Set: Move accessor methods into derived classes Created 3 years, 9 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/TextMatchMarker.h
diff --git a/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.h b/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.h
index dbdc360b5653f53b40d7d808c1189f7d028bc2a5..e04d342a0834cfdd8d0bcf68e73ef27c5ebe4299 100644
--- a/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.h
+++ b/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.h
@@ -15,7 +15,13 @@ class CORE_EXPORT TextMatchMarker final : public DocumentMarker {
public:
TextMatchMarker(unsigned startOffset, unsigned endOffset, bool activeMatch);
+ // DocumentMarker implementations
TextMatchMarker* clone() const final;
+ MarkerType type() const final;
+
+ // TextMatchMarker-specific
+ bool activeMatch() const;
+ void setActiveMatch(bool active) { m_activeMatch = active; }
bool isRendered() const { return m_state == State::ValidNotNull; }
@@ -49,6 +55,7 @@ class CORE_EXPORT TextMatchMarker final : public DocumentMarker {
private:
enum class State { Invalid, ValidNull, ValidNotNull };
+ bool m_activeMatch;
LayoutRect m_renderedRect;
State m_state;
};

Powered by Google App Engine
This is Rietveld 408576698