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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 16975002: Adding Range constructor for document.caretRangeFromPoint. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 390b778abef1bffd2f1359e09be56dfe5dcc43db..f175d057ba691217c17bcb44d19747010ad030cb 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -18226,6 +18226,9 @@ typedef void RtcStatsCallback(RtcStatsResponse response);
class Range native "Range" {
factory Range() => document.$dom_createRange();
+ factory Range.fromPoint(Point point) =>
+ document.$dom_caretRangeFromPoint(point.x, point.y);
+
@DomName('Range.END_TO_END')
@DocsEditable
static const int END_TO_END = 2;
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698