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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
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:
Download patch
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/templates/html/impl/impl_Range.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 34f36244dfdc398a7c4d3dd59a85ebc50ae69cd7..090bb7ad7f39b5be5f573e8d99f105f02df1186a 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -19606,6 +19606,9 @@ typedef void RtcStatsCallback(RtcStatsResponse response);
@Unstable
class Range extends NativeFieldWrapperClass1 {
factory Range() => document.$dom_createRange();
+
+ factory Range.fromPoint(Point point) =>
+ document.$dom_caretRangeFromPoint(point.x, point.y);
Range.internal();
@DomName('Range.END_TO_END')
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/templates/html/impl/impl_Range.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698