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

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

Issue 1409073004: Return EphemeralRange from Editor::findRangeOfString. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Extract text bounds collecting to a function Created 5 years, 1 month 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/Editor.h
diff --git a/third_party/WebKit/Source/core/editing/Editor.h b/third_party/WebKit/Source/core/editing/Editor.h
index dc631f14891633c9e29093b5f8250c8960c9ba1c..a765b9a1331ddca635638e2c46c19f63be5efc7a 100644
--- a/third_party/WebKit/Source/core/editing/Editor.h
+++ b/third_party/WebKit/Source/core/editing/Editor.h
@@ -202,9 +202,10 @@ public:
bool findString(const String&, FindOptions);
- PassRefPtrWillBeRawPtr<Range> findStringAndScrollToVisible(const String&, Range*, FindOptions);
- PassRefPtrWillBeRawPtr<Range> findRangeOfString(const String& target, const EphemeralRange& referenceRange, FindOptions);
- PassRefPtrWillBeRawPtr<Range> findRangeOfString(const String& target, const EphemeralRangeInComposedTree& referenceRange, FindOptions);
+ EphemeralRange findStringAndScrollToVisible(const String&, const EphemeralRange&, FindOptions);
+ EphemeralRangeInComposedTree findStringAndScrollToVisible(const String&, const EphemeralRangeInComposedTree&, FindOptions);
+ EphemeralRange findRangeOfString(const String& target, const EphemeralRange& referenceRange, FindOptions);
+ EphemeralRangeInComposedTree findRangeOfString(const String& target, const EphemeralRangeInComposedTree& referenceRange, FindOptions);
const VisibleSelection& mark() const; // Mark, to be used as emacs uses it.
void setMark(const VisibleSelection&);

Powered by Google App Engine
This is Rietveld 408576698