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

Unified Diff: public/platform/WebSelectionBound.h

Issue 495673003: Expose a pair of points for selection bound edge coordinates (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add bug Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebSelectionBound.h
diff --git a/public/platform/WebSelectionBound.h b/public/platform/WebSelectionBound.h
index ee636d6e5c6051a307f86cff78ed0e6540027c05..04b67e219a133e895537e8a74a9279e22e58276b 100644
--- a/public/platform/WebSelectionBound.h
+++ b/public/platform/WebSelectionBound.h
@@ -5,6 +5,7 @@
#ifndef WebSelectionBound_h
#define WebSelectionBound_h
+#include "public/platform/WebPoint.h"
#include "public/platform/WebRect.h"
namespace blink {
@@ -32,7 +33,14 @@ struct WebSelectionBound {
// The one-dimensional rect of the bound's edge in layer coordinates, not to
// be confused with the selection region.
+ // FIXME: Remove when downstream code uses |edge{Top|Bottom}InLayer|,
+ // crbug.com/405666.
WebRect edgeRectInLayer;
+
+ // The bottom and top coordinates of the edge (caret), in layer coordinates,
+ // that define the selection bound.
+ WebPoint edgeTopInLayer;
+ WebPoint edgeBottomInLayer;
};
} // namespace blink
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698