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

Unified Diff: core/page/Selection.idl

Issue 540533002: Roll IDL to Dartium37 (r181268) (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 6 years, 3 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 | « core/page/PagePopupController.idl ('k') | core/speech/SpeechInputEvent.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/page/Selection.idl
diff --git a/core/page/Selection.idl b/core/page/Selection.idl
index 9c5b2d7e4cf0d53b86ff9f2b995b5fca7f3b5774..53b0826171bd7f6edf7d947f72554f62c79f969f 100644
--- a/core/page/Selection.idl
+++ b/core/page/Selection.idl
@@ -30,6 +30,7 @@
// This is based off of Mozilla's Selection interface
// https://developer.mozilla.org/En/DOM/Selection
[
+ WillBeGarbageCollected,
ImplementedAs=DOMSelection
] interface Selection {
readonly attribute Node anchorNode;
@@ -40,8 +41,8 @@
readonly attribute boolean isCollapsed;
readonly attribute long rangeCount;
- [RaisesException] void collapse([Default=Undefined] optional Node node,
- [Default=Undefined] optional long index);
+ [RaisesException, TypeChecking=Interface|Nullable] void collapse(Node node,
+ optional long offset);
[RaisesException] void collapseToEnd();
[RaisesException] void collapseToStart();
@@ -60,27 +61,27 @@
[NotEnumerable] DOMString toString();
// WebKit extensions
- readonly attribute Node baseNode;
- readonly attribute long baseOffset;
- readonly attribute Node extentNode;
- readonly attribute long extentOffset;
+ [MeasureAs=SelectionBaseNode] readonly attribute Node baseNode;
+ [MeasureAs=SelectionBaseOffset] readonly attribute long baseOffset;
+ [MeasureAs=SelectionExtentNode] readonly attribute Node extentNode;
+ [MeasureAs=SelectionExtentOffset] readonly attribute long extentOffset;
// WebKit's "type" accessor returns "None", "Range" and "Caret"
// IE's type accessor returns "none", "text" and "control"
- readonly attribute DOMString type;
+ [MeasureAs=SelectionType] readonly attribute DOMString type;
- void modify([Default=Undefined] optional DOMString alter,
- [Default=Undefined] optional DOMString direction,
- [Default=Undefined] optional DOMString granularity);
- [RaisesException] void setBaseAndExtent([Default=Undefined] optional Node baseNode,
- [Default=Undefined] optional long baseOffset,
- [Default=Undefined] optional Node extentNode,
- [Default=Undefined] optional long extentOffset);
- [RaisesException, ImplementedAs=collapse] void setPosition([Default=Undefined] optional Node node,
- [Default=Undefined] optional long offset);
+ [MeasureAs=SelectionModify] void modify([Default=Undefined] optional DOMString alter,
+ [Default=Undefined] optional DOMString direction,
+ [Default=Undefined] optional DOMString granularity);
+ [MeasureAs=SelectionSetBaseAndExtent, RaisesException] void setBaseAndExtent([Default=Undefined] optional Node baseNode,
+ [Default=Undefined] optional long baseOffset,
+ [Default=Undefined] optional Node extentNode,
+ [Default=Undefined] optional long extentOffset);
+ [ImplementedAs=collapse, MeasureAs=SelectionSetPosition, RaisesException, TypeChecking=Interface|Nullable] void setPosition(Node node,
+ optional long offset);
// IE extentions
// http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx
- void empty();
+ [MeasureAs=SelectionEmpty] void empty();
};
« no previous file with comments | « core/page/PagePopupController.idl ('k') | core/speech/SpeechInputEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698