2008-08-08 Beth Dakin <bdakin@apple.com>
[WebKit-https.git] / WebCore / editing / Editor.h
index 14de1e340b4b6ebee152a457f1d08426afe41f6a..28ef6b7269967f71fa765ff46b4758b983257efc 100644 (file)
@@ -253,6 +253,12 @@ public:
     void setKillRingToYankedState();
 
     PassRefPtr<Range> selectedRange();
+    
+    // We should make these functions private when their callers in Frame are moved over here to Editor
+    enum Visibility { BeforeVisibleArea, InsideVisibleArea, AfterVisibleArea };
+    Visibility rangeVisibility(Range*) const;
+    PassRefPtr<Range> firstVisibleRange(Range*, const String&, bool forward, bool caseFlag);
+    PassRefPtr<Range> lastVisibleRange(Range*, const String&, bool forward, bool caseFlag);
 
 private:
     Frame* m_frame;