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

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

Issue 2780313002: [WIP] Refactor DocumentMarker (Closed)
Patch Set: Move CompositionMarkerList::at() into this CL 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..16005c09f7456d383e2275590f7dd450471059cd 100644
--- a/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.h
+++ b/third_party/WebKit/Source/core/editing/markers/TextMatchMarker.h
@@ -15,8 +15,16 @@ 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;
+
+ bool activeMatch() const final;
+
+ // TextMatchMarker-specific
+ void setActiveMatch(bool active) { m_activeMatch = active; }
+
bool isRendered() const { return m_state == State::ValidNotNull; }
void setRenderedRect(const LayoutRect& rect) {
@@ -49,6 +57,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