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

Side by Side 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, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 [RaisesException] void extend([Default=Undefined] optional Node node, 54 [RaisesException] void extend([Default=Undefined] optional Node node,
55 [Default=Undefined] optional long offset); 55 [Default=Undefined] optional long offset);
56 56
57 [RaisesException] Range getRangeAt([Default=Undefined] optional long index); 57 [RaisesException] Range getRangeAt([Default=Undefined] optional long index);
58 void removeAllRanges(); 58 void removeAllRanges();
59 void addRange([Default=Undefined] optional Range range); 59 void addRange([Default=Undefined] optional Range range);
60 60
61 [NotEnumerable] DOMString toString(); 61 [NotEnumerable] DOMString toString();
62 62
63 // WebKit extensions 63 // WebKit extensions
64 readonly attribute Node baseNode; 64 [MeasureAs=SelectionBaseNode] readonly attribute Node baseNode;
65 readonly attribute long baseOffset; 65 [MeasureAs=SelectionBaseOffset] readonly attribute long baseOffset;
66 readonly attribute Node extentNode; 66 [MeasureAs=SelectionExtentNode] readonly attribute Node extentNode;
67 readonly attribute long extentOffset; 67 [MeasureAs=SelectionExtentOffset] readonly attribute long extentOffset;
68 68
69 // WebKit's "type" accessor returns "None", "Range" and "Caret" 69 // WebKit's "type" accessor returns "None", "Range" and "Caret"
70 // IE's type accessor returns "none", "text" and "control" 70 // IE's type accessor returns "none", "text" and "control"
71 readonly attribute DOMString type; 71 [MeasureAs=SelectionType] readonly attribute DOMString type;
72 72
73 void modify([Default=Undefined] optional DOMString alter, 73 [MeasureAs=SelectionModify] void modify([Default=Undefined] optional DOMStri ng alter,
74 [Default=Undefined] optional DOMString direction, 74 [Default=Undefined] optional DOMStri ng direction,
75 [Default=Undefined] optional DOMString granularity); 75 [Default=Undefined] optional DOMStri ng granularity);
76 [RaisesException] void setBaseAndExtent([Default=Undefined] optional Node ba seNode, 76 [MeasureAs=SelectionSetBaseAndExtent, RaisesException] void setBaseAndExtent ([Default=Undefined] optional Node baseNode,
77 [Default=Undefined] optional long baseOffset, 77 [Default=Undefined] optional long baseOffset,
78 [Default=Undefined] optional Node extentNode, 78 [Default=Undefined] optional Node extentNode,
79 [Default=Undefined] optional long extentOffset); 79 [Default=Undefined] optional long extentOffset);
80 [ImplementedAs=collapse, MeasureAs=SelectionSetPosition, RaisesException, Ty peChecking=Interface|Nullable] void setPosition(Node node, 80 [ImplementedAs=collapse, MeasureAs=SelectionSetPosition, RaisesException, Ty peChecking=Interface|Nullable] void setPosition(Node node,
81 optional long offset); 81 optional long offset);
82
83 82
84 // IE extentions 83 // IE extentions
85 // http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx 84 // http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx
86 void empty(); 85 [MeasureAs=SelectionEmpty] void empty();
87 }; 86 };
88 87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698