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

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

Issue 15017002: WebFrame::selectRange and moveCaret should behave like mouse selection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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/VisiblePosition.h
diff --git a/Source/core/editing/VisiblePosition.h b/Source/core/editing/VisiblePosition.h
index c40b22ebd50e54b22d76649061b73fc4fdf7c649..272172953798175ee33dd5919c0a26a1ae91e3cd 100644
--- a/Source/core/editing/VisiblePosition.h
+++ b/Source/core/editing/VisiblePosition.h
@@ -46,7 +46,9 @@ namespace WebCore {
#define VP_UPSTREAM_IF_POSSIBLE UPSTREAM
class InlineBox;
+class LayoutPoint;
class Node;
+class VisibleSelection;
class VisiblePosition {
public:
@@ -139,6 +141,8 @@ Element* enclosingBlockFlowElement(const VisiblePosition&);
bool isFirstVisiblePositionInNode(const VisiblePosition&, const Node*);
bool isLastVisiblePositionInNode(const VisiblePosition&, const Node*);
+VisiblePosition visiblePositionRespectingEditingBoundary(const VisibleSelection& currentSelection, const LayoutPoint& localPoint, Node* targetNode);
leviw_travelin_and_unemployed 2013/05/21 19:21:40 The dependency on VisibleSelection here is wrong.
cjhopman 2013/05/22 23:45:10 Done.
+
} // namespace WebCore
#ifndef NDEBUG
« no previous file with comments | « Source/WebKit/chromium/tests/data/select_range_span_editable.html ('k') | Source/core/editing/VisiblePosition.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698