| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 String visiblePlaceholder(Element*); | 133 String visiblePlaceholder(Element*); |
| 134 void selectColorInColorChooser(Element*, const String& colorValue); | 134 void selectColorInColorChooser(Element*, const String& colorValue); |
| 135 bool hasAutofocusRequest(Document*); | 135 bool hasAutofocusRequest(Document*); |
| 136 bool hasAutofocusRequest(); | 136 bool hasAutofocusRequest(); |
| 137 Vector<String> formControlStateOfHistoryItem(ExceptionState&); | 137 Vector<String> formControlStateOfHistoryItem(ExceptionState&); |
| 138 void setFormControlStateOfHistoryItem(const Vector<String>&, ExceptionState&
); | 138 void setFormControlStateOfHistoryItem(const Vector<String>&, ExceptionState&
); |
| 139 void setEnableMockPagePopup(bool, ExceptionState&); | 139 void setEnableMockPagePopup(bool, ExceptionState&); |
| 140 PassRefPtrWillBeRawPtr<PagePopupController> pagePopupController(); | 140 PassRefPtrWillBeRawPtr<PagePopupController> pagePopupController(); |
| 141 | 141 |
| 142 PassRefPtr<ClientRect> unscaledViewportRect(ExceptionState&); | 142 PassRefPtrWillBeRawPtr<ClientRect> unscaledViewportRect(ExceptionState&); |
| 143 | 143 |
| 144 PassRefPtr<ClientRect> absoluteCaretBounds(ExceptionState&); | 144 PassRefPtrWillBeRawPtr<ClientRect> absoluteCaretBounds(ExceptionState&); |
| 145 | 145 |
| 146 PassRefPtr<ClientRect> boundingBox(Element*, ExceptionState&); | 146 PassRefPtrWillBeRawPtr<ClientRect> boundingBox(Element*, ExceptionState&); |
| 147 | 147 |
| 148 PassRefPtr<ClientRectList> inspectorHighlightRects(Document*, ExceptionState
&); | 148 PassRefPtrWillBeRawPtr<ClientRectList> inspectorHighlightRects(Document*, Ex
ceptionState&); |
| 149 | 149 |
| 150 unsigned markerCountForNode(Node*, const String&, ExceptionState&); | 150 unsigned markerCountForNode(Node*, const String&, ExceptionState&); |
| 151 unsigned activeMarkerCountForNode(Node*, ExceptionState&); | 151 unsigned activeMarkerCountForNode(Node*, ExceptionState&); |
| 152 PassRefPtrWillBeRawPtr<Range> markerRangeForNode(Node*, const String& marker
Type, unsigned index, ExceptionState&); | 152 PassRefPtrWillBeRawPtr<Range> markerRangeForNode(Node*, const String& marker
Type, unsigned index, ExceptionState&); |
| 153 String markerDescriptionForNode(Node*, const String& markerType, unsigned in
dex, ExceptionState&); | 153 String markerDescriptionForNode(Node*, const String& markerType, unsigned in
dex, ExceptionState&); |
| 154 void addTextMatchMarker(const Range*, bool isActive); | 154 void addTextMatchMarker(const Range*, bool isActive); |
| 155 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool,
ExceptionState&); | 155 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool,
ExceptionState&); |
| 156 void setMarkedTextMatchesAreHighlighted(Document*, bool, ExceptionState&); | 156 void setMarkedTextMatchesAreHighlighted(Document*, bool, ExceptionState&); |
| 157 | 157 |
| 158 void setScrollViewPosition(Document*, long x, long y, ExceptionState&); | 158 void setScrollViewPosition(Document*, long x, long y, ExceptionState&); |
| 159 String viewportAsText(Document*, float devicePixelRatio, int availableWidth,
int availableHeight, ExceptionState&); | 159 String viewportAsText(Document*, float devicePixelRatio, int availableWidth,
int availableHeight, ExceptionState&); |
| 160 | 160 |
| 161 bool wasLastChangeUserEdit(Element* textField, ExceptionState&); | 161 bool wasLastChangeUserEdit(Element* textField, ExceptionState&); |
| 162 bool elementShouldAutoComplete(Element* inputElement, ExceptionState&); | 162 bool elementShouldAutoComplete(Element* inputElement, ExceptionState&); |
| 163 String suggestedValue(Element*, ExceptionState&); | 163 String suggestedValue(Element*, ExceptionState&); |
| 164 void setSuggestedValue(Element*, const String&, ExceptionState&); | 164 void setSuggestedValue(Element*, const String&, ExceptionState&); |
| 165 void setEditingValue(Element* inputElement, const String&, ExceptionState&); | 165 void setEditingValue(Element* inputElement, const String&, ExceptionState&); |
| 166 void setAutofilled(Element*, bool enabled, ExceptionState&); | 166 void setAutofilled(Element*, bool enabled, ExceptionState&); |
| 167 void scrollElementToRect(Element*, long x, long y, long w, long h, Exception
State&); | 167 void scrollElementToRect(Element*, long x, long y, long w, long h, Exception
State&); |
| 168 | 168 |
| 169 PassRefPtrWillBeRawPtr<Range> rangeFromLocationAndLength(Element* scope, int
rangeLocation, int rangeLength, ExceptionState&); | 169 PassRefPtrWillBeRawPtr<Range> rangeFromLocationAndLength(Element* scope, int
rangeLocation, int rangeLength, ExceptionState&); |
| 170 unsigned locationFromRange(Element* scope, const Range*, ExceptionState&); | 170 unsigned locationFromRange(Element* scope, const Range*, ExceptionState&); |
| 171 unsigned lengthFromRange(Element* scope, const Range*, ExceptionState&); | 171 unsigned lengthFromRange(Element* scope, const Range*, ExceptionState&); |
| 172 String rangeAsText(const Range*, ExceptionState&); | 172 String rangeAsText(const Range*, ExceptionState&); |
| 173 | 173 |
| 174 PassRefPtrWillBeRawPtr<DOMPoint> touchPositionAdjustedToBestClickableNode(lo
ng x, long y, long width, long height, Document*, ExceptionState&); | 174 PassRefPtrWillBeRawPtr<DOMPoint> touchPositionAdjustedToBestClickableNode(lo
ng x, long y, long width, long height, Document*, ExceptionState&); |
| 175 Node* touchNodeAdjustedToBestClickableNode(long x, long y, long width, long
height, Document*, ExceptionState&); | 175 Node* touchNodeAdjustedToBestClickableNode(long x, long y, long width, long
height, Document*, ExceptionState&); |
| 176 PassRefPtrWillBeRawPtr<DOMPoint> touchPositionAdjustedToBestContextMenuNode(
long x, long y, long width, long height, Document*, ExceptionState&); | 176 PassRefPtrWillBeRawPtr<DOMPoint> touchPositionAdjustedToBestContextMenuNode(
long x, long y, long width, long height, Document*, ExceptionState&); |
| 177 Node* touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, lon
g height, Document*, ExceptionState&); | 177 Node* touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, lon
g height, Document*, ExceptionState&); |
| 178 PassRefPtr<ClientRect> bestZoomableAreaForTouchPoint(long x, long y, long wi
dth, long height, Document*, ExceptionState&); | 178 PassRefPtrWillBeRawPtr<ClientRect> bestZoomableAreaForTouchPoint(long x, lon
g y, long width, long height, Document*, ExceptionState&); |
| 179 | 179 |
| 180 int lastSpellCheckRequestSequence(Document*, ExceptionState&); | 180 int lastSpellCheckRequestSequence(Document*, ExceptionState&); |
| 181 int lastSpellCheckProcessedSequence(Document*, ExceptionState&); | 181 int lastSpellCheckProcessedSequence(Document*, ExceptionState&); |
| 182 | 182 |
| 183 Vector<AtomicString> userPreferredLanguages() const; | 183 Vector<AtomicString> userPreferredLanguages() const; |
| 184 void setUserPreferredLanguages(const Vector<String>&); | 184 void setUserPreferredLanguages(const Vector<String>&); |
| 185 | 185 |
| 186 unsigned activeDOMObjectCount(Document*, ExceptionState&); | 186 unsigned activeDOMObjectCount(Document*, ExceptionState&); |
| 187 unsigned wheelEventHandlerCount(Document*, ExceptionState&); | 187 unsigned wheelEventHandlerCount(Document*, ExceptionState&); |
| 188 unsigned touchEventHandlerCount(Document*, ExceptionState&); | 188 unsigned touchEventHandlerCount(Document*, ExceptionState&); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 PassRefPtr<NodeList> paintOrderListBeforePromote(Element*, ExceptionState&); | 223 PassRefPtr<NodeList> paintOrderListBeforePromote(Element*, ExceptionState&); |
| 224 PassRefPtr<NodeList> paintOrderListAfterPromote(Element*, ExceptionState&); | 224 PassRefPtr<NodeList> paintOrderListAfterPromote(Element*, ExceptionState&); |
| 225 | 225 |
| 226 bool scrollsWithRespectTo(Element*, Element*, ExceptionState&); | 226 bool scrollsWithRespectTo(Element*, Element*, ExceptionState&); |
| 227 bool isUnclippedDescendant(Element*, ExceptionState&); | 227 bool isUnclippedDescendant(Element*, ExceptionState&); |
| 228 bool needsCompositedScrolling(Element*, ExceptionState&); | 228 bool needsCompositedScrolling(Element*, ExceptionState&); |
| 229 | 229 |
| 230 void setNeedsCompositedScrolling(Element*, unsigned value, ExceptionState&); | 230 void setNeedsCompositedScrolling(Element*, unsigned value, ExceptionState&); |
| 231 | 231 |
| 232 String repaintRectsAsText(Document*, ExceptionState&) const; | 232 String repaintRectsAsText(Document*, ExceptionState&) const; |
| 233 PassRefPtr<ClientRectList> repaintRects(Element*, ExceptionState&) const; | 233 PassRefPtrWillBeRawPtr<ClientRectList> repaintRects(Element*, ExceptionState
&) const; |
| 234 | 234 |
| 235 String scrollingStateTreeAsText(Document*, ExceptionState&) const; | 235 String scrollingStateTreeAsText(Document*, ExceptionState&) const; |
| 236 String mainThreadScrollingReasons(Document*, ExceptionState&) const; | 236 String mainThreadScrollingReasons(Document*, ExceptionState&) const; |
| 237 PassRefPtr<ClientRectList> nonFastScrollableRects(Document*, ExceptionState&
) const; | 237 PassRefPtrWillBeRawPtr<ClientRectList> nonFastScrollableRects(Document*, Exc
eptionState&) const; |
| 238 | 238 |
| 239 void garbageCollectDocumentResources(Document*, ExceptionState&) const; | 239 void garbageCollectDocumentResources(Document*, ExceptionState&) const; |
| 240 void evictAllResources() const; | 240 void evictAllResources() const; |
| 241 | 241 |
| 242 void allowRoundingHacks() const; | 242 void allowRoundingHacks() const; |
| 243 | 243 |
| 244 unsigned numberOfLiveNodes() const; | 244 unsigned numberOfLiveNodes() const; |
| 245 unsigned numberOfLiveDocuments() const; | 245 unsigned numberOfLiveDocuments() const; |
| 246 String dumpRefCountedInstanceCounts() const; | 246 String dumpRefCountedInstanceCounts() const; |
| 247 Vector<String> consoleMessageArgumentCounts(Document*) const; | 247 Vector<String> consoleMessageArgumentCounts(Document*) const; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 277 PassRefPtrWillBeRawPtr<MallocStatistics> mallocStatistics() const; | 277 PassRefPtrWillBeRawPtr<MallocStatistics> mallocStatistics() const; |
| 278 PassRefPtrWillBeRawPtr<TypeConversions> typeConversions() const; | 278 PassRefPtrWillBeRawPtr<TypeConversions> typeConversions() const; |
| 279 | 279 |
| 280 Vector<String> getReferencedFilePaths() const; | 280 Vector<String> getReferencedFilePaths() const; |
| 281 | 281 |
| 282 void startTrackingRepaints(Document*, ExceptionState&); | 282 void startTrackingRepaints(Document*, ExceptionState&); |
| 283 void stopTrackingRepaints(Document*, ExceptionState&); | 283 void stopTrackingRepaints(Document*, ExceptionState&); |
| 284 void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(ExceptionStat
e&); | 284 void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(ExceptionStat
e&); |
| 285 void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(Node*, Except
ionState&); | 285 void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(Node*, Except
ionState&); |
| 286 | 286 |
| 287 PassRefPtr<ClientRectList> draggableRegions(Document*, ExceptionState&); | 287 PassRefPtrWillBeRawPtr<ClientRectList> draggableRegions(Document*, Exception
State&); |
| 288 PassRefPtr<ClientRectList> nonDraggableRegions(Document*, ExceptionState&); | 288 PassRefPtrWillBeRawPtr<ClientRectList> nonDraggableRegions(Document*, Except
ionState&); |
| 289 | 289 |
| 290 PassRefPtr<ArrayBuffer> serializeObject(PassRefPtr<SerializedScriptValue>) c
onst; | 290 PassRefPtr<ArrayBuffer> serializeObject(PassRefPtr<SerializedScriptValue>) c
onst; |
| 291 PassRefPtr<SerializedScriptValue> deserializeBuffer(PassRefPtr<ArrayBuffer>)
const; | 291 PassRefPtr<SerializedScriptValue> deserializeBuffer(PassRefPtr<ArrayBuffer>)
const; |
| 292 | 292 |
| 293 String getCurrentCursorInfo(Document*, ExceptionState&); | 293 String getCurrentCursorInfo(Document*, ExceptionState&); |
| 294 | 294 |
| 295 String markerTextForListItem(Element*, ExceptionState&); | 295 String markerTextForListItem(Element*, ExceptionState&); |
| 296 | 296 |
| 297 void forceReload(bool endToEnd); | 297 void forceReload(bool endToEnd); |
| 298 | 298 |
| 299 String getImageSourceURL(Element*, ExceptionState&); | 299 String getImageSourceURL(Element*, ExceptionState&); |
| 300 | 300 |
| 301 bool isSelectPopupVisible(Node*); | 301 bool isSelectPopupVisible(Node*); |
| 302 | 302 |
| 303 PassRefPtr<ClientRect> selectionBounds(ExceptionState&); | 303 PassRefPtrWillBeRawPtr<ClientRect> selectionBounds(ExceptionState&); |
| 304 String baseURL(Document*, ExceptionState&); | 304 String baseURL(Document*, ExceptionState&); |
| 305 | 305 |
| 306 bool loseSharedGraphicsContext3D(); | 306 bool loseSharedGraphicsContext3D(); |
| 307 | 307 |
| 308 void forceCompositingUpdate(Document*, ExceptionState&); | 308 void forceCompositingUpdate(Document*, ExceptionState&); |
| 309 | 309 |
| 310 bool isCompositorFramePending(Document*, ExceptionState&); | 310 bool isCompositorFramePending(Document*, ExceptionState&); |
| 311 | 311 |
| 312 void setZoomFactor(float); | 312 void setZoomFactor(float); |
| 313 | 313 |
| 314 void setShouldRevealPassword(Element*, bool, ExceptionState&); | 314 void setShouldRevealPassword(Element*, bool, ExceptionState&); |
| 315 | 315 |
| 316 ScriptPromise createPromise(ExecutionContext*); | 316 ScriptPromise createPromise(ExecutionContext*); |
| 317 ScriptPromise createResolvedPromise(ExecutionContext*, ScriptValue); | 317 ScriptPromise createResolvedPromise(ExecutionContext*, ScriptValue); |
| 318 ScriptPromise createRejectedPromise(ExecutionContext*, ScriptValue); | 318 ScriptPromise createRejectedPromise(ExecutionContext*, ScriptValue); |
| 319 ScriptPromise addOneToPromise(ExecutionContext*, ScriptPromise); | 319 ScriptPromise addOneToPromise(ExecutionContext*, ScriptPromise); |
| 320 | 320 |
| 321 void trace(Visitor*); | 321 void trace(Visitor*); |
| 322 | 322 |
| 323 void startSpeechInput(Element*); | 323 void startSpeechInput(Element*); |
| 324 void setValueForUser(Element*, const String&); | 324 void setValueForUser(Element*, const String&); |
| 325 | 325 |
| 326 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength); | 326 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength); |
| 327 | 327 |
| 328 private: | 328 private: |
| 329 explicit Internals(Document*); | 329 explicit Internals(Document*); |
| 330 Document* contextDocument() const; | 330 Document* contextDocument() const; |
| 331 LocalFrame* frame() const; | 331 LocalFrame* frame() const; |
| 332 Vector<String> iconURLs(Document*, int iconTypesMask) const; | 332 Vector<String> iconURLs(Document*, int iconTypesMask) const; |
| 333 PassRefPtr<ClientRectList> annotatedRegions(Document*, bool draggable, Excep
tionState&); | 333 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag
gable, ExceptionState&); |
| 334 | 334 |
| 335 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex
ceptionState&); | 335 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex
ceptionState&); |
| 336 RefPtrWillBeMember<DOMWindow> m_frontendWindow; | 336 RefPtrWillBeMember<DOMWindow> m_frontendWindow; |
| 337 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel; | 337 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel; |
| 338 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags; | 338 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags; |
| 339 RefPtrWillBeMember<InternalProfilers> m_profilers; | 339 RefPtrWillBeMember<InternalProfilers> m_profilers; |
| 340 }; | 340 }; |
| 341 | 341 |
| 342 } // namespace WebCore | 342 } // namespace WebCore |
| 343 | 343 |
| 344 #endif | 344 #endif |
| OLD | NEW |