| 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 14 matching lines...) Expand all Loading... |
| 25 */ | 25 */ |
| 26 | 26 |
| 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/StaticNodeList.h" |
| 36 #include "core/page/scrolling/ScrollingCoordinator.h" | 36 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 37 #include "platform/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; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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*, ExceptionState&); | 182 unsigned activeDOMObjectCount(Document*, ExceptionState&); |
| 183 unsigned wheelEventHandlerCount(Document*, ExceptionState&); | 183 unsigned wheelEventHandlerCount(Document*, ExceptionState&); |
| 184 unsigned scrollEventHandlerCount(Document*, ExceptionState&); | 184 unsigned scrollEventHandlerCount(Document*, ExceptionState&); |
| 185 unsigned touchEventHandlerCount(Document*, ExceptionState&); | 185 unsigned touchEventHandlerCount(Document*, ExceptionState&); |
| 186 PassRefPtrWillBeRawPtr<LayerRectList> touchEventTargetLayerRects(Document*,
ExceptionState&); | 186 PassRefPtrWillBeRawPtr<LayerRectList> touchEventTargetLayerRects(Document*,
ExceptionState&); |
| 187 | 187 |
| 188 // This is used to test rect based hit testing like what's done on touch scr
eens. | 188 // This is used to test rect based hit testing like what's done on touch scr
eens. |
| 189 PassRefPtrWillBeRawPtr<NodeList> nodesFromRect(Document*, int x, int y, unsi
gned topPadding, unsigned rightPadding, | 189 PassRefPtrWillBeRawPtr<StaticNodeList> nodesFromRect(Document*, int x, int y
, unsigned topPadding, unsigned rightPadding, |
| 190 unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool
allowShadowContent, bool allowChildFrameContent, ExceptionState&) const; | 190 unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool
allowShadowContent, bool allowChildFrameContent, ExceptionState&) const; |
| 191 | 191 |
| 192 void emitInspectorDidBeginFrame(int frameId = 0); | 192 void emitInspectorDidBeginFrame(int frameId = 0); |
| 193 void emitInspectorDidCancelFrame(); | 193 void emitInspectorDidCancelFrame(); |
| 194 | 194 |
| 195 bool hasSpellingMarker(Document*, int from, int length, ExceptionState&); | 195 bool hasSpellingMarker(Document*, int from, int length, ExceptionState&); |
| 196 bool hasGrammarMarker(Document*, int from, int length, ExceptionState&); | 196 bool hasGrammarMarker(Document*, int from, int length, ExceptionState&); |
| 197 void setContinuousSpellCheckingEnabled(bool enabled, ExceptionState&); | 197 void setContinuousSpellCheckingEnabled(bool enabled, ExceptionState&); |
| 198 | 198 |
| 199 bool isOverwriteModeEnabled(Document*, ExceptionState&); | 199 bool isOverwriteModeEnabled(Document*, ExceptionState&); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 210 InternalProfilers* profilers(); | 210 InternalProfilers* profilers(); |
| 211 unsigned workerThreadCount() const; | 211 unsigned workerThreadCount() const; |
| 212 | 212 |
| 213 void setDeviceProximity(Document*, const String& eventType, double value, do
uble min, double max, ExceptionState&); | 213 void setDeviceProximity(Document*, const String& eventType, double value, do
uble min, double max, ExceptionState&); |
| 214 | 214 |
| 215 String layerTreeAsText(Document*, unsigned flags, ExceptionState&) const; | 215 String layerTreeAsText(Document*, unsigned flags, ExceptionState&) const; |
| 216 String layerTreeAsText(Document*, ExceptionState&) const; | 216 String layerTreeAsText(Document*, ExceptionState&) const; |
| 217 String elementLayerTreeAsText(Element*, unsigned flags, ExceptionState&) con
st; | 217 String elementLayerTreeAsText(Element*, unsigned flags, ExceptionState&) con
st; |
| 218 String elementLayerTreeAsText(Element*, ExceptionState&) const; | 218 String elementLayerTreeAsText(Element*, ExceptionState&) const; |
| 219 | 219 |
| 220 PassRefPtrWillBeRawPtr<NodeList> paintOrderListBeforePromote(Element*, Excep
tionState&); | |
| 221 PassRefPtrWillBeRawPtr<NodeList> paintOrderListAfterPromote(Element*, Except
ionState&); | |
| 222 | |
| 223 bool scrollsWithRespectTo(Element*, Element*, ExceptionState&); | 220 bool scrollsWithRespectTo(Element*, Element*, ExceptionState&); |
| 224 bool isUnclippedDescendant(Element*, ExceptionState&); | 221 bool isUnclippedDescendant(Element*, ExceptionState&); |
| 225 | 222 |
| 226 String repaintRectsAsText(Document*, ExceptionState&) const; | 223 String repaintRectsAsText(Document*, ExceptionState&) const; |
| 227 PassRefPtrWillBeRawPtr<ClientRectList> repaintRects(Element*, ExceptionState
&) const; | 224 PassRefPtrWillBeRawPtr<ClientRectList> repaintRects(Element*, ExceptionState
&) const; |
| 228 | 225 |
| 229 String scrollingStateTreeAsText(Document*, ExceptionState&) const; | 226 String scrollingStateTreeAsText(Document*, ExceptionState&) const; |
| 230 String mainThreadScrollingReasons(Document*, ExceptionState&) const; | 227 String mainThreadScrollingReasons(Document*, ExceptionState&) const; |
| 231 PassRefPtrWillBeRawPtr<ClientRectList> nonFastScrollableRects(Document*, Exc
eptionState&) const; | 228 PassRefPtrWillBeRawPtr<ClientRectList> nonFastScrollableRects(Document*, Exc
eptionState&) const; |
| 232 | 229 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag
gable, ExceptionState&); | 327 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag
gable, ExceptionState&); |
| 331 | 328 |
| 332 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex
ceptionState&); | 329 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex
ceptionState&); |
| 333 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags; | 330 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags; |
| 334 RefPtrWillBeMember<InternalProfilers> m_profilers; | 331 RefPtrWillBeMember<InternalProfilers> m_profilers; |
| 335 }; | 332 }; |
| 336 | 333 |
| 337 } // namespace WebCore | 334 } // namespace WebCore |
| 338 | 335 |
| 339 #endif | 336 #endif |
| OLD | NEW |