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

Unified Diff: third_party/WebKit/Source/core/editing/VisibleSelection.h

Issue 1738623004: Rename enums/functions that collide in chromium style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-4
Patch Set: get-names-5: rebase-and-stuff Created 4 years, 10 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/VisibleSelection.h
diff --git a/third_party/WebKit/Source/core/editing/VisibleSelection.h b/third_party/WebKit/Source/core/editing/VisibleSelection.h
index 1916386ce1e2b1af77f0874972a7c5091025757e..25608c3818df9d6371433a500d7ad130e93cda2a 100644
--- a/third_party/WebKit/Source/core/editing/VisibleSelection.h
+++ b/third_party/WebKit/Source/core/editing/VisibleSelection.h
@@ -79,7 +79,7 @@ public:
static VisibleSelectionTemplate selectionFromContentsOfNode(Node*);
- SelectionType selectionType() const { return m_selectionType; }
+ SelectionType getSelectionType() const { return m_selectionType; }
void setAffinity(TextAffinity affinity) { m_affinity = affinity; }
TextAffinity affinity() const { return m_affinity; }
@@ -102,10 +102,10 @@ public:
bool operator==(const VisibleSelectionTemplate&) const;
bool operator!=(const VisibleSelectionTemplate& other) const { return !operator==(other); }
- bool isNone() const { return selectionType() == NoSelection; }
- bool isCaret() const { return selectionType() == CaretSelection; }
- bool isRange() const { return selectionType() == RangeSelection; }
- bool isCaretOrRange() const { return selectionType() != NoSelection; }
+ bool isNone() const { return getSelectionType() == NoSelection; }
+ bool isCaret() const { return getSelectionType() == CaretSelection; }
+ bool isRange() const { return getSelectionType() == RangeSelection; }
+ bool isCaretOrRange() const { return getSelectionType() != NoSelection; }
bool isNonOrphanedRange() const { return isRange() && !start().isOrphan() && !end().isOrphan(); }
bool isNonOrphanedCaretOrRange() const { return isCaretOrRange() && !start().isOrphan() && !end().isOrphan(); }

Powered by Google App Engine
This is Rietveld 408576698