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

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

Issue 813163007: Enable strict type checking for Selection.selectAllChildren() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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
« no previous file with comments | « Source/core/editing/DOMSelection.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 readonly attribute boolean isCollapsed; 47 readonly attribute boolean isCollapsed;
48 [RaisesException] void collapse(Node? node, optional long offset = 0); 48 [RaisesException] void collapse(Node? node, optional long offset = 0);
49 [RaisesException] void collapseToStart(); 49 [RaisesException] void collapseToStart();
50 [RaisesException] void collapseToEnd(); 50 [RaisesException] void collapseToEnd();
51 51
52 // We mark offset as optional, defaulting to 0; this differs from spec. 52 // We mark offset as optional, defaulting to 0; this differs from spec.
53 // http://crbug.com/384966 53 // http://crbug.com/384966
54 [RaisesException, TypeChecking=Interface] void extend(Node node, optional lo ng offset = 0); 54 [RaisesException, TypeChecking=Interface] void extend(Node node, optional lo ng offset = 0);
55 55
56 [RaisesException] void selectAllChildren(Node node); 56 [RaisesException, TypeChecking=Interface] void selectAllChildren(Node node);
57 [CustomElementCallbacks] void deleteFromDocument(); 57 [CustomElementCallbacks] void deleteFromDocument();
58 58
59 readonly attribute long rangeCount; 59 readonly attribute long rangeCount;
60 [RaisesException] Range getRangeAt(long index); 60 [RaisesException] Range getRangeAt(long index);
61 void addRange(Range range); 61 void addRange(Range range);
62 void removeAllRanges(); 62 void removeAllRanges();
63 63
64 [NotEnumerable] stringifier; 64 [NotEnumerable] stringifier;
65 65
66 // Firefox extensions 66 // Firefox extensions
(...skipping 17 matching lines...) Expand all
84 [MeasureAs=SelectionSetBaseAndExtent, RaisesException] void setBaseAndExtent ([Default=Undefined] optional Node baseNode, 84 [MeasureAs=SelectionSetBaseAndExtent, RaisesException] void setBaseAndExtent ([Default=Undefined] optional Node baseNode,
85 [Default=Undefined] optional long baseOffset, 85 [Default=Undefined] optional long baseOffset,
86 [Default=Undefined] optional Node extentNode, 86 [Default=Undefined] optional Node extentNode,
87 [Default=Undefined] optional long extentOffset); 87 [Default=Undefined] optional long extentOffset);
88 [ImplementedAs=collapse, MeasureAs=SelectionSetPosition, RaisesException] vo id setPosition(Node? node, optional long offset = 0); 88 [ImplementedAs=collapse, MeasureAs=SelectionSetPosition, RaisesException] vo id setPosition(Node? node, optional long offset = 0);
89 89
90 // IE extensions 90 // IE extensions
91 // http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx 91 // http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx
92 [MeasureAs=SelectionEmpty] void empty(); 92 [MeasureAs=SelectionEmpty] void empty();
93 }; 93 };
OLDNEW
« no previous file with comments | « Source/core/editing/DOMSelection.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698