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 void endColorChooser(Element*); | 135 void endColorChooser(Element*); |
136 bool hasAutofocusRequest(Document*); | 136 bool hasAutofocusRequest(Document*); |
137 bool hasAutofocusRequest(); | 137 bool hasAutofocusRequest(); |
138 Vector<String> formControlStateOfHistoryItem(ExceptionState&); | 138 Vector<String> formControlStateOfHistoryItem(ExceptionState&); |
139 void setFormControlStateOfHistoryItem(const Vector<String>&, ExceptionState&
); | 139 void setFormControlStateOfHistoryItem(const Vector<String>&, ExceptionState&
); |
140 DOMWindow* pagePopupWindow() const; | 140 DOMWindow* pagePopupWindow() const; |
141 | 141 |
142 PassRefPtrWillBeRawPtr<ClientRect> absoluteCaretBounds(ExceptionState&); | 142 ClientRect* absoluteCaretBounds(ExceptionState&); |
143 | 143 |
144 PassRefPtrWillBeRawPtr<ClientRect> boundingBox(Element*); | 144 ClientRect* boundingBox(Element*); |
145 | 145 |
146 unsigned markerCountForNode(Node*, const String&, ExceptionState&); | 146 unsigned markerCountForNode(Node*, const String&, ExceptionState&); |
147 unsigned activeMarkerCountForNode(Node*); | 147 unsigned activeMarkerCountForNode(Node*); |
148 PassRefPtrWillBeRawPtr<Range> markerRangeForNode(Node*, const String& marker
Type, unsigned index, ExceptionState&); | 148 PassRefPtrWillBeRawPtr<Range> markerRangeForNode(Node*, const String& marker
Type, unsigned index, ExceptionState&); |
149 String markerDescriptionForNode(Node*, const String& markerType, unsigned in
dex, ExceptionState&); | 149 String markerDescriptionForNode(Node*, const String& markerType, unsigned in
dex, ExceptionState&); |
150 void addTextMatchMarker(const Range*, bool isActive); | 150 void addTextMatchMarker(const Range*, bool isActive); |
151 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool)
; | 151 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool)
; |
152 void setMarkedTextMatchesAreHighlighted(Document*, bool); | 152 void setMarkedTextMatchesAreHighlighted(Document*, bool); |
153 | 153 |
154 void setFrameViewPosition(Document*, long x, long y, ExceptionState&); | 154 void setFrameViewPosition(Document*, long x, long y, ExceptionState&); |
155 String viewportAsText(Document*, float devicePixelRatio, int availableWidth,
int availableHeight, ExceptionState&); | 155 String viewportAsText(Document*, float devicePixelRatio, int availableWidth,
int availableHeight, ExceptionState&); |
156 | 156 |
157 bool wasLastChangeUserEdit(Element* textField, ExceptionState&); | 157 bool wasLastChangeUserEdit(Element* textField, ExceptionState&); |
158 bool elementShouldAutoComplete(Element* inputElement, ExceptionState&); | 158 bool elementShouldAutoComplete(Element* inputElement, ExceptionState&); |
159 String suggestedValue(Element*, ExceptionState&); | 159 String suggestedValue(Element*, ExceptionState&); |
160 void setSuggestedValue(Element*, const String&, ExceptionState&); | 160 void setSuggestedValue(Element*, const String&, ExceptionState&); |
161 void setEditingValue(Element* inputElement, const String&, ExceptionState&); | 161 void setEditingValue(Element* inputElement, const String&, ExceptionState&); |
162 void setAutofilled(Element*, bool enabled, ExceptionState&); | 162 void setAutofilled(Element*, bool enabled, ExceptionState&); |
163 void scrollElementToRect(Element*, long x, long y, long w, long h, Exception
State&); | 163 void scrollElementToRect(Element*, long x, long y, long w, long h, Exception
State&); |
164 | 164 |
165 PassRefPtrWillBeRawPtr<Range> rangeFromLocationAndLength(Element* scope, int
rangeLocation, int rangeLength); | 165 PassRefPtrWillBeRawPtr<Range> rangeFromLocationAndLength(Element* scope, int
rangeLocation, int rangeLength); |
166 unsigned locationFromRange(Element* scope, const Range*); | 166 unsigned locationFromRange(Element* scope, const Range*); |
167 unsigned lengthFromRange(Element* scope, const Range*); | 167 unsigned lengthFromRange(Element* scope, const Range*); |
168 String rangeAsText(const Range*); | 168 String rangeAsText(const Range*); |
169 | 169 |
170 DOMPoint* touchPositionAdjustedToBestClickableNode(long x, long y, long widt
h, long height, Document*, ExceptionState&); | 170 DOMPoint* touchPositionAdjustedToBestClickableNode(long x, long y, long widt
h, long height, Document*, ExceptionState&); |
171 Node* touchNodeAdjustedToBestClickableNode(long x, long y, long width, long
height, Document*, ExceptionState&); | 171 Node* touchNodeAdjustedToBestClickableNode(long x, long y, long width, long
height, Document*, ExceptionState&); |
172 DOMPoint* touchPositionAdjustedToBestContextMenuNode(long x, long y, long wi
dth, long height, Document*, ExceptionState&); | 172 DOMPoint* touchPositionAdjustedToBestContextMenuNode(long x, long y, long wi
dth, long height, Document*, ExceptionState&); |
173 Node* touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, lon
g height, Document*, ExceptionState&); | 173 Node* touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, lon
g height, Document*, ExceptionState&); |
174 PassRefPtrWillBeRawPtr<ClientRect> bestZoomableAreaForTouchPoint(long x, lon
g y, long width, long height, Document*, ExceptionState&); | 174 ClientRect* bestZoomableAreaForTouchPoint(long x, long y, long width, long h
eight, Document*, ExceptionState&); |
175 | 175 |
176 int lastSpellCheckRequestSequence(Document*, ExceptionState&); | 176 int lastSpellCheckRequestSequence(Document*, ExceptionState&); |
177 int lastSpellCheckProcessedSequence(Document*, ExceptionState&); | 177 int lastSpellCheckProcessedSequence(Document*, ExceptionState&); |
178 | 178 |
179 Vector<AtomicString> userPreferredLanguages() const; | 179 Vector<AtomicString> userPreferredLanguages() const; |
180 void setUserPreferredLanguages(const Vector<String>&); | 180 void setUserPreferredLanguages(const Vector<String>&); |
181 | 181 |
182 unsigned activeDOMObjectCount(Document*); | 182 unsigned activeDOMObjectCount(Document*); |
183 unsigned wheelEventHandlerCount(Document*); | 183 unsigned wheelEventHandlerCount(Document*); |
184 unsigned scrollEventHandlerCount(Document*); | 184 unsigned scrollEventHandlerCount(Document*); |
(...skipping 30 matching lines...) Expand all Loading... |
215 | 215 |
216 String layerTreeAsText(Document*, unsigned flags, ExceptionState&) const; | 216 String layerTreeAsText(Document*, unsigned flags, ExceptionState&) const; |
217 String layerTreeAsText(Document*, ExceptionState&) const; | 217 String layerTreeAsText(Document*, ExceptionState&) const; |
218 String elementLayerTreeAsText(Element*, unsigned flags, ExceptionState&) con
st; | 218 String elementLayerTreeAsText(Element*, unsigned flags, ExceptionState&) con
st; |
219 String elementLayerTreeAsText(Element*, ExceptionState&) const; | 219 String elementLayerTreeAsText(Element*, ExceptionState&) const; |
220 | 220 |
221 bool scrollsWithRespectTo(Element*, Element*, ExceptionState&); | 221 bool scrollsWithRespectTo(Element*, Element*, ExceptionState&); |
222 | 222 |
223 String scrollingStateTreeAsText(Document*) const; | 223 String scrollingStateTreeAsText(Document*) const; |
224 String mainThreadScrollingReasons(Document*, ExceptionState&) const; | 224 String mainThreadScrollingReasons(Document*, ExceptionState&) const; |
225 PassRefPtrWillBeRawPtr<ClientRectList> nonFastScrollableRects(Document*, Exc
eptionState&) const; | 225 ClientRectList* nonFastScrollableRects(Document*, ExceptionState&) const; |
226 | 226 |
227 void garbageCollectDocumentResources(Document*) const; | 227 void garbageCollectDocumentResources(Document*) const; |
228 void evictAllResources() const; | 228 void evictAllResources() const; |
229 | 229 |
230 unsigned numberOfLiveNodes() const; | 230 unsigned numberOfLiveNodes() const; |
231 unsigned numberOfLiveDocuments() const; | 231 unsigned numberOfLiveDocuments() const; |
232 String dumpRefCountedInstanceCounts() const; | 232 String dumpRefCountedInstanceCounts() const; |
233 Vector<String> consoleMessageArgumentCounts(Document*) const; | 233 Vector<String> consoleMessageArgumentCounts(Document*) const; |
234 PassRefPtrWillBeRawPtr<LocalDOMWindow> openDummyInspectorFrontend(const Stri
ng& url); | 234 PassRefPtrWillBeRawPtr<LocalDOMWindow> openDummyInspectorFrontend(const Stri
ng& url); |
235 void closeDummyInspectorFrontend(); | 235 void closeDummyInspectorFrontend(); |
(...skipping 28 matching lines...) Expand all Loading... |
264 DictionaryTest* dictionaryTest() const; | 264 DictionaryTest* dictionaryTest() const; |
265 UnionTypesTest* unionTypesTest() const; | 265 UnionTypesTest* unionTypesTest() const; |
266 | 266 |
267 Vector<String> getReferencedFilePaths() const; | 267 Vector<String> getReferencedFilePaths() const; |
268 | 268 |
269 void startTrackingRepaints(Document*, ExceptionState&); | 269 void startTrackingRepaints(Document*, ExceptionState&); |
270 void stopTrackingRepaints(Document*, ExceptionState&); | 270 void stopTrackingRepaints(Document*, ExceptionState&); |
271 void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(Node*, Except
ionState&); | 271 void updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(Node*, Except
ionState&); |
272 void forceFullRepaint(Document*, ExceptionState&); | 272 void forceFullRepaint(Document*, ExceptionState&); |
273 | 273 |
274 PassRefPtrWillBeRawPtr<ClientRectList> draggableRegions(Document*, Exception
State&); | 274 ClientRectList* draggableRegions(Document*, ExceptionState&); |
275 PassRefPtrWillBeRawPtr<ClientRectList> nonDraggableRegions(Document*, Except
ionState&); | 275 ClientRectList* nonDraggableRegions(Document*, ExceptionState&); |
276 | 276 |
277 PassRefPtr<DOMArrayBuffer> serializeObject(PassRefPtr<SerializedScriptValue>
) const; | 277 PassRefPtr<DOMArrayBuffer> serializeObject(PassRefPtr<SerializedScriptValue>
) const; |
278 PassRefPtr<SerializedScriptValue> deserializeBuffer(PassRefPtr<DOMArrayBuffe
r>) const; | 278 PassRefPtr<SerializedScriptValue> deserializeBuffer(PassRefPtr<DOMArrayBuffe
r>) const; |
279 | 279 |
280 String getCurrentCursorInfo(Document*, ExceptionState&); | 280 String getCurrentCursorInfo(Document*, ExceptionState&); |
281 | 281 |
282 String markerTextForListItem(Element*); | 282 String markerTextForListItem(Element*); |
283 | 283 |
284 void forceReload(bool endToEnd); | 284 void forceReload(bool endToEnd); |
285 | 285 |
286 String getImageSourceURL(Element*); | 286 String getImageSourceURL(Element*); |
287 | 287 |
288 String selectMenuListText(HTMLSelectElement*); | 288 String selectMenuListText(HTMLSelectElement*); |
289 bool isSelectPopupVisible(Node*); | 289 bool isSelectPopupVisible(Node*); |
290 bool selectPopupItemStyleIsRtl(Node*, int); | 290 bool selectPopupItemStyleIsRtl(Node*, int); |
291 int selectPopupItemStyleFontHeight(Node*, int); | 291 int selectPopupItemStyleFontHeight(Node*, int); |
292 | 292 |
293 PassRefPtrWillBeRawPtr<ClientRect> selectionBounds(ExceptionState&); | 293 ClientRect* selectionBounds(ExceptionState&); |
294 | 294 |
295 bool loseSharedGraphicsContext3D(); | 295 bool loseSharedGraphicsContext3D(); |
296 | 296 |
297 void forceCompositingUpdate(Document*, ExceptionState&); | 297 void forceCompositingUpdate(Document*, ExceptionState&); |
298 | 298 |
299 void setZoomFactor(float); | 299 void setZoomFactor(float); |
300 | 300 |
301 void setShouldRevealPassword(Element*, bool, ExceptionState&); | 301 void setShouldRevealPassword(Element*, bool, ExceptionState&); |
302 | 302 |
303 ScriptPromise createResolvedPromise(ScriptState*, ScriptValue); | 303 ScriptPromise createResolvedPromise(ScriptState*, ScriptValue); |
(...skipping 14 matching lines...) Expand all Loading... |
318 | 318 |
319 void setFocused(bool); | 319 void setFocused(bool); |
320 void setInitialFocus(bool); | 320 void setInitialFocus(bool); |
321 | 321 |
322 bool ignoreLayoutWithPendingStylesheets(Document*); | 322 bool ignoreLayoutWithPendingStylesheets(Document*); |
323 | 323 |
324 void setNetworkStateNotifierTestOnly(bool); | 324 void setNetworkStateNotifierTestOnly(bool); |
325 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe
tworkConnectionInfo. | 325 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe
tworkConnectionInfo. |
326 void setNetworkConnectionInfo(const String&, ExceptionState&); | 326 void setNetworkConnectionInfo(const String&, ExceptionState&); |
327 | 327 |
328 PassRefPtrWillBeRawPtr<ClientRect> boundsInViewportSpace(Element*); | 328 ClientRect* boundsInViewportSpace(Element*); |
329 String serializeNavigationMarkup(); | 329 String serializeNavigationMarkup(); |
330 Vector<String> getTransitionElementIds(); | 330 Vector<String> getTransitionElementIds(); |
331 PassRefPtrWillBeRawPtr<ClientRectList> getTransitionElementRects(); | 331 ClientRectList* getTransitionElementRects(); |
332 void hideAllTransitionElements(); | 332 void hideAllTransitionElements(); |
333 void showAllTransitionElements(); | 333 void showAllTransitionElements(); |
334 void setExitTransitionStylesheetsEnabled(bool); | 334 void setExitTransitionStylesheetsEnabled(bool); |
335 | 335 |
336 unsigned countHitRegions(CanvasRenderingContext2D*); | 336 unsigned countHitRegions(CanvasRenderingContext2D*); |
337 | 337 |
338 void forcePluginPlaceholder(HTMLElement* plugin, PassRefPtrWillBeRawPtr<Docu
mentFragment>, ExceptionState&); | 338 void forcePluginPlaceholder(HTMLElement* plugin, PassRefPtrWillBeRawPtr<Docu
mentFragment>, ExceptionState&); |
339 void forcePluginPlaceholder(HTMLElement* plugin, const PluginPlaceholderOpti
ons&, ExceptionState&); | 339 void forcePluginPlaceholder(HTMLElement* plugin, const PluginPlaceholderOpti
ons&, ExceptionState&); |
340 | 340 |
341 // Scheudle a forced Blink GC run (Oilpan) at the end of event loop. | 341 // Scheudle a forced Blink GC run (Oilpan) at the end of event loop. |
(...skipping 11 matching lines...) Expand all Loading... |
353 bool isUseCounted(Document*, int useCounterId); | 353 bool isUseCounted(Document*, int useCounterId); |
354 | 354 |
355 String unscopeableAttribute(); | 355 String unscopeableAttribute(); |
356 String unscopeableMethod(); | 356 String unscopeableMethod(); |
357 | 357 |
358 private: | 358 private: |
359 explicit Internals(Document*); | 359 explicit Internals(Document*); |
360 Document* contextDocument() const; | 360 Document* contextDocument() const; |
361 LocalFrame* frame() const; | 361 LocalFrame* frame() const; |
362 Vector<String> iconURLs(Document*, int iconTypesMask) const; | 362 Vector<String> iconURLs(Document*, int iconTypesMask) const; |
363 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag
gable, ExceptionState&); | 363 ClientRectList* annotatedRegions(Document*, bool draggable, ExceptionState&)
; |
364 | 364 |
365 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex
ceptionState&); | 365 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex
ceptionState&); |
366 Member<InternalRuntimeFlags> m_runtimeFlags; | 366 Member<InternalRuntimeFlags> m_runtimeFlags; |
367 | 367 |
368 IterationSource* startIteration(ScriptState*, ExceptionState&) override; | 368 IterationSource* startIteration(ScriptState*, ExceptionState&) override; |
369 }; | 369 }; |
370 | 370 |
371 } // namespace blink | 371 } // namespace blink |
372 | 372 |
373 #endif // Internals_h | 373 #endif // Internals_h |
OLD | NEW |