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

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

Issue 356843007: Remove meaningless uses of [TypeChecking=Nullable] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContextBase.idl ('k') | Source/core/svg/SVGAngle.idl » ('j') | 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 23 matching lines...) Expand all
34 ImplementedAs=DOMSelection 34 ImplementedAs=DOMSelection
35 ] interface Selection { 35 ] interface Selection {
36 readonly attribute Node anchorNode; 36 readonly attribute Node anchorNode;
37 readonly attribute long anchorOffset; 37 readonly attribute long anchorOffset;
38 readonly attribute Node focusNode; 38 readonly attribute Node focusNode;
39 readonly attribute long focusOffset; 39 readonly attribute long focusOffset;
40 40
41 readonly attribute boolean isCollapsed; 41 readonly attribute boolean isCollapsed;
42 readonly attribute long rangeCount; 42 readonly attribute long rangeCount;
43 43
44 [RaisesException, TypeChecking=Interface|Nullable] void collapse(Node node, 44 [RaisesException, TypeChecking=Interface] void collapse(Node node,
45 optional long offset); 45 optional long offset );
46 [RaisesException] void collapseToEnd(); 46 [RaisesException] void collapseToEnd();
47 [RaisesException] void collapseToStart(); 47 [RaisesException] void collapseToStart();
48 48
49 [CustomElementCallbacks] void deleteFromDocument(); 49 [CustomElementCallbacks] void deleteFromDocument();
50 boolean containsNode([Default=Undefined] optional Node node, 50 boolean containsNode([Default=Undefined] optional Node node,
51 [Default=Undefined] optional boolean allowPartial); 51 [Default=Undefined] optional boolean allowPartial);
52 [RaisesException] void selectAllChildren([Default=Undefined] optional Node n ode); 52 [RaisesException] void selectAllChildren([Default=Undefined] optional Node n ode);
53 53
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);
(...skipping 14 matching lines...) Expand all
70 // IE's type accessor returns "none", "text" and "control" 70 // IE's type accessor returns "none", "text" and "control"
71 [MeasureAs=SelectionType] readonly attribute DOMString type; 71 [MeasureAs=SelectionType] readonly attribute DOMString type;
72 72
73 [MeasureAs=SelectionModify] void modify([Default=Undefined] optional DOMStri ng alter, 73 [MeasureAs=SelectionModify] void modify([Default=Undefined] optional DOMStri ng alter,
74 [Default=Undefined] optional DOMStri ng direction, 74 [Default=Undefined] optional DOMStri ng direction,
75 [Default=Undefined] optional DOMStri ng granularity); 75 [Default=Undefined] optional DOMStri ng granularity);
76 [MeasureAs=SelectionSetBaseAndExtent, RaisesException] void setBaseAndExtent ([Default=Undefined] optional Node baseNode, 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] void setPosition(Node node,
81 optional long offset); 81 optional long offset);
82 82
83 // IE extentions 83 // IE extentions
84 // http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx 84 // http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx
85 [MeasureAs=SelectionEmpty] void empty(); 85 [MeasureAs=SelectionEmpty] void empty();
86 }; 86 };
87 87
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContextBase.idl ('k') | Source/core/svg/SVGAngle.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698