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

Side by Side Diff: third_party/WebKit/Source/core/editing/Selection.idl

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 16 matching lines...) Expand all
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 // http://w3c.github.io/selection-api/#idl-def-Selection 30 // http://w3c.github.io/selection-api/#idl-def-Selection
31 31
32 // TODO(yoichio): All long types should be unsigned long. crbug.com/391673 32 // TODO(yoichio): All long types should be unsigned long. crbug.com/391673
33 // TODO(philipj): No arguments are optional in the spec, but some should be: 33 // TODO(philipj): No arguments are optional in the spec, but some should be:
34 // https://github.com/w3c/selection-api/issues/30 34 // https://github.com/w3c/selection-api/issues/30
35 [ 35 [
36 ImplementedAs=DOMSelection, 36 ImplementedAs=DOMSelection,
37 WillBeGarbageCollected, 37 GarbageCollected,
38 ] interface Selection { 38 ] interface Selection {
39 [MeasureAs=SelectionAnchorNode] readonly attribute Node? anchorNode; 39 [MeasureAs=SelectionAnchorNode] readonly attribute Node? anchorNode;
40 [MeasureAs=SelectionAnchorOffset] readonly attribute long anchorOffset; 40 [MeasureAs=SelectionAnchorOffset] readonly attribute long anchorOffset;
41 [MeasureAs=SelectionFocusNode] readonly attribute Node? focusNode; 41 [MeasureAs=SelectionFocusNode] readonly attribute Node? focusNode;
42 [MeasureAs=SelectionFocusOffset] readonly attribute long focusOffset; 42 [MeasureAs=SelectionFocusOffset] readonly attribute long focusOffset;
43 [MeasureAs=SelectionIsCollapsed] readonly attribute boolean isCollapsed; 43 [MeasureAs=SelectionIsCollapsed] readonly attribute boolean isCollapsed;
44 [MeasureAs=SelectionRangeCount] readonly attribute long rangeCount; 44 [MeasureAs=SelectionRangeCount] readonly attribute long rangeCount;
45 [MeasureAs=SelectionType] readonly attribute DOMString type; 45 [MeasureAs=SelectionType] readonly attribute DOMString type;
46 [MeasureAs=SelectionGetRangeAt, RaisesException] Range getRangeAt(long index ); 46 [MeasureAs=SelectionGetRangeAt, RaisesException] Range getRangeAt(long index );
47 [MeasureAs=SelectionAddRange] void addRange(Range range); 47 [MeasureAs=SelectionAddRange] void addRange(Range range);
(...skipping 27 matching lines...) Expand all
75 [MeasureAs=SelectionBaseNode] readonly attribute Node? baseNode; 75 [MeasureAs=SelectionBaseNode] readonly attribute Node? baseNode;
76 [MeasureAs=SelectionBaseOffset] readonly attribute long baseOffset; 76 [MeasureAs=SelectionBaseOffset] readonly attribute long baseOffset;
77 [MeasureAs=SelectionExtentNode] readonly attribute Node? extentNode; 77 [MeasureAs=SelectionExtentNode] readonly attribute Node? extentNode;
78 [MeasureAs=SelectionExtentOffset] readonly attribute long extentOffset; 78 [MeasureAs=SelectionExtentOffset] readonly attribute long extentOffset;
79 79
80 // https://github.com/w3c/selection-api/issues/37 80 // https://github.com/w3c/selection-api/issues/37
81 [MeasureAs=SelectionModify] void modify([Default=Undefined] optional DOMStri ng alter, 81 [MeasureAs=SelectionModify] void modify([Default=Undefined] optional DOMStri ng alter,
82 [Default=Undefined] optional DOMStri ng direction, 82 [Default=Undefined] optional DOMStri ng direction,
83 [Default=Undefined] optional DOMStri ng granularity); 83 [Default=Undefined] optional DOMStri ng granularity);
84 }; 84 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698