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

Unified Diff: Source/core/editing/Selection.idl

Issue 1283233003: Move some members of the Selection interface out of the non-standard section (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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: Source/core/editing/Selection.idl
diff --git a/Source/core/editing/Selection.idl b/Source/core/editing/Selection.idl
index a7ad07b414cbc02147f84e07a9b0386b600e5cb4..5b5904865aa352d1d202a6d9665da03c306e113d 100644
--- a/Source/core/editing/Selection.idl
+++ b/Source/core/editing/Selection.idl
@@ -40,14 +40,19 @@
readonly attribute long focusOffset;
readonly attribute boolean isCollapsed;
readonly attribute long rangeCount;
+ [MeasureAs=SelectionType] readonly attribute DOMString type;
[RaisesException] Range getRangeAt(long index);
void addRange(Range range);
// TODO(yoichio): Implement removeRange. crbug.com/391673
//void removeRange(Range range);
void removeAllRanges();
+ [MeasureAs=SelectionEmpty] void empty();
// TODO(yoichio): The node argument should not be nullable. crbug.com/391673
// TODO(philipj): The offset argument should not have a default value.
[RaisesException] void collapse(Node? node, optional long offset = 0);
+ // TODO(yoichio): The node argument should not be nullable. crbug.com/391673
+ // TODO(philipj): The offset argument should not have a default value.
+ [ImplementedAs=collapse, MeasureAs=SelectionSetPosition, RaisesException] void setPosition(Node? node, optional long offset = 0);
[RaisesException] void collapseToStart();
[RaisesException] void collapseToEnd();
// TODO(philipj): The offset argument should not have a default value.
@@ -75,17 +80,8 @@
[MeasureAs=SelectionExtentNode] readonly attribute Node? extentNode;
[MeasureAs=SelectionExtentOffset] readonly attribute long extentOffset;
- // https://github.com/w3c/selection-api/issues/14
- [MeasureAs=SelectionType] readonly attribute DOMString type;
-
- // https://github.com/w3c/selection-api/issues/36
- [MeasureAs=SelectionEmpty] void empty();
-
// https://github.com/w3c/selection-api/issues/37
[MeasureAs=SelectionModify] void modify([Default=Undefined] optional DOMString alter,
[Default=Undefined] optional DOMString direction,
[Default=Undefined] optional DOMString granularity);
-
- // https://github.com/w3c/selection-api/issues/38
- [ImplementedAs=collapse, MeasureAs=SelectionSetPosition, RaisesException] void setPosition(Node? node, optional long offset = 0);
};
« 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