OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * |
| 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions |
| 6 * are met: |
| 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright |
| 11 * notice, this list of conditions and the following disclaimer in the |
| 12 * documentation and/or other materials provided with the distribution. |
| 13 * |
| 14 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY |
| 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 17 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY |
| 18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ |
| 25 |
| 26 module window { |
| 27 interface [ |
| 28 OmitConstructor |
| 29 ] Internals { |
| 30 DOMString address(in Node node); |
| 31 |
| 32 DOMString elementRenderTreeAsText(in Element element) raises(DOMExceptio
n); |
| 33 boolean isPreloaded(in Document document, in DOMString url); |
| 34 |
| 35 unsigned long numberOfScopedHTMLStyleChildren(in Node scope) raises(DOME
xception); |
| 36 |
| 37 #if defined(ENABLE_SHADOW_DOM) |
| 38 ShadowRoot ensureShadowRoot(in Element host) raises (DOMException); |
| 39 ShadowRoot shadowRoot(in Element host) raises (DOMException); |
| 40 ShadowRoot youngestShadowRoot(in Element host) raises (DOMException); |
| 41 ShadowRoot oldestShadowRoot(in Element host) raises (DOMException); |
| 42 ShadowRoot youngerShadowRoot(in Node root) raises (DOMException); |
| 43 ShadowRoot olderShadowRoot(in Node root) raises (DOMException); |
| 44 #else |
| 45 Node ensureShadowRoot(in Element host) raises (DOMException); |
| 46 Node shadowRoot(in Element host) raises (DOMException); |
| 47 Node youngestShadowRoot(in Element host) raises (DOMException); |
| 48 Node oldestShadowRoot(in Element host) raises (DOMException); |
| 49 Node youngerShadowRoot(in Node root) raises (DOMException); |
| 50 #endif |
| 51 Element includerFor(in Node node) raises (DOMException); |
| 52 void removeShadowRoot(in Element host) raises (DOMException); |
| 53 DOMString shadowPseudoId(in Element element) raises (DOMException); |
| 54 Element createContentElement(in Document document) raises(DOMException); |
| 55 Element getElementByIdInShadowRoot(in Node shadowRoot, in DOMString id)
raises(DOMException); |
| 56 boolean isValidContentSelect(in Element contentElement) raises(DOMExcept
ion); |
| 57 |
| 58 boolean attached(in Node node) raises(DOMException); |
| 59 |
| 60 #if defined(ENABLE_INPUT_COLOR) && ENABLE_INPUT_COLOR |
| 61 void selectColorInColorChooser(in Element element, in DOMString colorVal
ue); |
| 62 #endif |
| 63 |
| 64 ClientRect boundingBox(in Element element) raises(DOMException); |
| 65 |
| 66 ClientRectList inspectorHighlightRects(in Document document) raises (DOM
Exception); |
| 67 |
| 68 unsigned long markerCountForNode(in Node node, in DOMString markerType)
raises(DOMException); |
| 69 Range markerRangeForNode(in Node node, in DOMString markerType, in unsig
ned long index) raises(DOMException); |
| 70 DOMString markerDescriptionForNode(in Node node, in DOMString markerType
, in unsigned long index) raises(DOMException); |
| 71 |
| 72 void setScrollViewPosition(in Document document, in long x, in long y) r
aises(DOMException); |
| 73 |
| 74 void setPagination(in Document document, in DOMString mode, in long gap)
raises(DOMException); |
| 75 |
| 76 boolean wasLastChangeUserEdit(in Element textField) raises (DOMException
); |
| 77 DOMString suggestedValue(in Element inputElement) raises (DOMException); |
| 78 void setSuggestedValue(in Element inputElement, in DOMString value) rais
es (DOMException); |
| 79 |
| 80 void paintControlTints(in Document document) raises (DOMException); |
| 81 |
| 82 void scrollElementToRect(in Element element, in long x, in long y, in lo
ng w, in long h) raises (DOMException); |
| 83 |
| 84 Range rangeFromLocationAndLength(in Element scope, in long rangeLocation
, in long rangeLength) raises (DOMException); |
| 85 unsigned long locationFromRange(in Element scope, in Range range) raises
(DOMException); |
| 86 unsigned long lengthFromRange(in Element scope, in Range range) raises (
DOMException); |
| 87 DOMString rangeAsText(in Range range) raises (DOMException); |
| 88 |
| 89 #if defined(ENABLE_TOUCH_ADJUSTMENT) && ENABLE_TOUCH_ADJUSTMENT |
| 90 WebKitPoint touchPositionAdjustedToBestClickableNode(in long x, in long
y, in long width, in long height, in Document document) raises (DOMException); |
| 91 Node touchNodeAdjustedToBestClickableNode(in long x, in long y, in long
width, in long height, in Document document) raises (DOMException); |
| 92 #endif |
| 93 |
| 94 long lastSpellCheckRequestSequence(in Document document) raises (DOMExce
ption); |
| 95 long lastSpellCheckProcessedSequence(in Document document) raises (DOMEx
ception); |
| 96 |
| 97 void setMediaPlaybackRequiresUserGesture(in Document document, in boolea
n enabled) raises(DOMException); |
| 98 |
| 99 #if defined(ENABLE_VIDEO_TRACK) && ENABLE_VIDEO_TRACK |
| 100 void setShouldDisplayTrackKind(in Document document, in DOMString kind,
in boolean enabled) raises (DOMException); |
| 101 boolean shouldDisplayTrackKind(in Document document, in DOMString trackK
ind) raises (DOMException); |
| 102 #endif |
| 103 |
| 104 attribute [Custom] Array userPreferredLanguages; |
| 105 |
| 106 unsigned long wheelEventHandlerCount(in Document document) raises (DOMEx
ception); |
| 107 unsigned long touchEventHandlerCount(in Document document) raises (DOMEx
ception); |
| 108 |
| 109 NodeList nodesFromRect(in Document document, in long x, in long y, |
| 110 in unsigned long topPadding, in unsigned long rightPadding, in unsig
ned long bottomPadding, in unsigned long leftPadding, |
| 111 in boolean ignoreClipping) raises (DOMException); |
| 112 |
| 113 void emitInspectorDidBeginFrame(); |
| 114 void emitInspectorDidCancelFrame(); |
| 115 |
| 116 boolean hasSpellingMarker(in Document document, in long from, in long le
ngth) raises (DOMException); |
| 117 boolean hasGrammarMarker(in Document document, in long from, in long len
gth) raises (DOMException); |
| 118 |
| 119 readonly attribute InternalSettings settings; |
| 120 |
| 121 #if defined(ENABLE_BATTERY_STATUS) && ENABLE_BATTERY_STATUS |
| 122 void setBatteryStatus(in Document document, in DOMString eventType, in b
oolean charging, in double chargingTime, in double dischargingTime, in double le
vel) raises (DOMException); |
| 123 #endif |
| 124 |
| 125 [Conditional=INSPECTOR] unsigned long numberOfLiveNodes(); |
| 126 [Conditional=INSPECTOR] unsigned long numberOfLiveDocuments(); |
| 127 }; |
| 128 } |
| 129 |
OLD | NEW |