| 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 16 matching lines...) Expand all Loading... |
| 27 #ifndef Internals_h | 27 #ifndef Internals_h |
| 28 #define Internals_h | 28 #define Internals_h |
| 29 | 29 |
| 30 #include "bindings/v8/ExceptionStatePlaceholder.h" | 30 #include "bindings/v8/ExceptionStatePlaceholder.h" |
| 31 #include "bindings/v8/ScriptPromise.h" | 31 #include "bindings/v8/ScriptPromise.h" |
| 32 #include "bindings/v8/ScriptValue.h" | 32 #include "bindings/v8/ScriptValue.h" |
| 33 #include "core/css/CSSComputedStyleDeclaration.h" | 33 #include "core/css/CSSComputedStyleDeclaration.h" |
| 34 #include "core/dom/ContextLifecycleObserver.h" | 34 #include "core/dom/ContextLifecycleObserver.h" |
| 35 #include "core/dom/NodeList.h" | 35 #include "core/dom/NodeList.h" |
| 36 #include "core/page/scrolling/ScrollingCoordinator.h" | 36 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 37 #include "heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
| 38 #include "wtf/ArrayBuffer.h" | 38 #include "wtf/ArrayBuffer.h" |
| 39 #include "wtf/PassRefPtr.h" | 39 #include "wtf/PassRefPtr.h" |
| 40 #include "wtf/RefCounted.h" | 40 #include "wtf/RefCounted.h" |
| 41 #include "wtf/text/WTFString.h" | 41 #include "wtf/text/WTFString.h" |
| 42 | 42 |
| 43 namespace WebCore { | 43 namespace WebCore { |
| 44 | 44 |
| 45 class ClientRect; | 45 class ClientRect; |
| 46 class ClientRectList; | 46 class ClientRectList; |
| 47 class DOMPoint; | 47 class DOMPoint; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 PassRefPtr<ClientRect> unscaledViewportRect(ExceptionState&); | 142 PassRefPtr<ClientRect> unscaledViewportRect(ExceptionState&); |
| 143 | 143 |
| 144 PassRefPtr<ClientRect> absoluteCaretBounds(ExceptionState&); | 144 PassRefPtr<ClientRect> absoluteCaretBounds(ExceptionState&); |
| 145 | 145 |
| 146 PassRefPtr<ClientRect> boundingBox(Element*, ExceptionState&); | 146 PassRefPtr<ClientRect> boundingBox(Element*, ExceptionState&); |
| 147 | 147 |
| 148 PassRefPtr<ClientRectList> inspectorHighlightRects(Document*, ExceptionState
&); | 148 PassRefPtr<ClientRectList> inspectorHighlightRects(Document*, ExceptionState
&); |
| 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 PassRefPtr<Range> markerRangeForNode(Node*, const String& markerType, unsign
ed 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 PassRefPtr<Range> rangeFromLocationAndLength(Element* scope, int rangeLocati
on, 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 PassRefPtr<ClientRect> bestZoomableAreaForTouchPoint(long x, long y, long wi
dth, long height, Document*, ExceptionState&); |
| 179 | 179 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |