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

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

Issue 345393004: IDL: Support 'stringifier' keyword (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: move handling of unnamed operations Created 6 years, 6 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/frame/Window.idl ('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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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);
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] stringifier;
62 62
63 // WebKit extensions 63 // WebKit extensions
64 [MeasureAs=SelectionBaseNode] readonly attribute Node baseNode; 64 [MeasureAs=SelectionBaseNode] readonly attribute Node baseNode;
65 [MeasureAs=SelectionBaseOffset] readonly attribute long baseOffset; 65 [MeasureAs=SelectionBaseOffset] readonly attribute long baseOffset;
66 [MeasureAs=SelectionExtentNode] readonly attribute Node extentNode; 66 [MeasureAs=SelectionExtentNode] readonly attribute Node extentNode;
67 [MeasureAs=SelectionExtentOffset] 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 [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|Nullable] 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/frame/Window.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698