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

Unified Diff: Source/core/editing/VisibleUnits.h

Issue 1123563003: Improving direction-based selection strategy. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressing rotated text + comment cleanup Created 5 years, 7 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: Source/core/editing/VisibleUnits.h
diff --git a/Source/core/editing/VisibleUnits.h b/Source/core/editing/VisibleUnits.h
index 51365d878588199fc6670df3f71eb976f204b939..184906258a89970af1efcd56f3596251d923e9da 100644
--- a/Source/core/editing/VisibleUnits.h
+++ b/Source/core/editing/VisibleUnits.h
@@ -38,6 +38,8 @@ class PositionWithAffinity;
class LayoutObject;
class Node;
class VisiblePosition;
+class IntPoint;
+class LocalFrame;
enum EWordSide { RightWordIfOnBoundary = false, LeftWordIfOnBoundary = true };
@@ -102,6 +104,10 @@ bool isEndOfEditableOrNonEditableContent(const VisiblePosition&);
// Rect is local to the returned layoutObject
LayoutRect localCaretRectOfPosition(const PositionWithAffinity&, LayoutObject*&);
+// Returns a hit-tested VisiblePosition for the given point in contents-space
+// coordinates.
+VisiblePosition visiblePositionForContentsPoint(const IntPoint&, LocalFrame*);
+
} // namespace blink
#endif // VisibleUnits_h

Powered by Google App Engine
This is Rietveld 408576698