OLD | NEW |
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 12 matching lines...) Expand all Loading... |
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
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 // This is based off of Mozilla's Selection interface | 30 // This is based off of Mozilla's Selection interface |
31 // https://developer.mozilla.org/En/DOM/Selection | 31 // https://developer.mozilla.org/En/DOM/Selection |
32 [ | 32 [ |
33 JSGenerateIsReachable=ImplFrame, | |
34 InterfaceName=Selection | 33 InterfaceName=Selection |
35 ] interface DOMSelection { | 34 ] interface DOMSelection { |
36 readonly attribute Node anchorNode; | 35 readonly attribute Node anchorNode; |
37 readonly attribute long anchorOffset; | 36 readonly attribute long anchorOffset; |
38 readonly attribute Node focusNode; | 37 readonly attribute Node focusNode; |
39 readonly attribute long focusOffset; | 38 readonly attribute long focusOffset; |
40 | 39 |
41 readonly attribute boolean isCollapsed; | 40 readonly attribute boolean isCollapsed; |
42 readonly attribute long rangeCount; | 41 readonly attribute long rangeCount; |
43 | 42 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 raises(DOMException); | 87 raises(DOMException); |
89 void setPosition(in [Optional=DefaultIsUndefined] Node node, | 88 void setPosition(in [Optional=DefaultIsUndefined] Node node, |
90 in [Optional=DefaultIsUndefined] long offset) | 89 in [Optional=DefaultIsUndefined] long offset) |
91 raises(DOMException); | 90 raises(DOMException); |
92 | 91 |
93 // IE extentions | 92 // IE extentions |
94 // http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx | 93 // http://msdn.microsoft.com/en-us/library/ms535869(VS.85).aspx |
95 void empty(); | 94 void empty(); |
96 }; | 95 }; |
97 | 96 |
OLD | NEW |