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

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

Issue 268663005: Add use counters for a number of extensions and non-standard APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: measure HTMLPreElementWrap internally also Created 6 years, 8 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
Index: Source/core/page/Selection.idl
diff --git a/Source/core/page/Selection.idl b/Source/core/page/Selection.idl
index dee956d98e940dfe5bea208e64d1be16e4a71a5a..53b0826171bd7f6edf7d947f72554f62c79f969f 100644
--- a/Source/core/page/Selection.idl
+++ b/Source/core/page/Selection.idl
@@ -61,28 +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);
+ [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);
-
+ optional long offset);
// IE extentions
// http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx
- void empty();
+ [MeasureAs=SelectionEmpty] void empty();
};

Powered by Google App Engine
This is Rietveld 408576698