class CanvasRenderingContext2D;
class ClientRect;
class ClientRectList;
-class WebKitPoint;
+class DOMPoint;
class DOMStringList;
class LocalDOMWindow;
+class DictionaryTest;
class Document;
class DocumentMarker;
class Element;
class ExceptionState;
class ExecutionContext;
class GCObservation;
+class HTMLElement;
class HTMLMediaElement;
class InternalProfilers;
class InternalRuntimeFlags;
class InternalSettings;
+class Iterator;
class LayerRectList;
class LocalFrame;
class Node;
typedef StaticNodeTypeList<Node> StaticNodeList;
class TypeConversions;
-class Internals FINAL : public RefCountedWillBeGarbageCollectedFinalized<Internals>, public ScriptWrappable, public ContextLifecycleObserver {
+class Internals FINAL : public GarbageCollectedFinalized<Internals>, public ScriptWrappable, public ContextLifecycleObserver {
+ DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtrWillBeRawPtr<Internals> create(Document*);
+ static Internals* create(Document*);
virtual ~Internals();
static void resetToConsistentState(Page*);
String address(Node*);
- PassRefPtrWillBeRawPtr<GCObservation> observeGC(ScriptValue);
+ GCObservation* observeGC(ScriptValue);
bool isPreloaded(const String& url);
bool isLoadingFromMemoryCache(const String& url);
- void crash();
-
- void setStyleResolverStatsEnabled(bool);
- String styleResolverStatsReport(ExceptionState&) const;
- String styleResolverStatsTotalsReport(ExceptionState&) const;
-
bool isSharingStyle(Element*, Element*) const;
PassRefPtrWillBeRawPtr<CSSStyleDeclaration> computedStyleIncludingVisitedInfo(Node*) const;
- PassRefPtrWillBeRawPtr<ShadowRoot> createUserAgentShadowRoot(Element* host);
-
ShadowRoot* shadowRoot(Element* host);
ShadowRoot* youngestShadowRoot(Element* host);
ShadowRoot* oldestShadowRoot(Element* host);
bool hasContentElement(const Node*, ExceptionState&) const;
size_t countElementShadow(const Node*, ExceptionState&) const;
const AtomicString& shadowPseudoId(Element*);
- void setShadowPseudoId(Element*, const AtomicString&);
// CSS Animation / Transition testing.
void pauseAnimations(double pauseTime, ExceptionState&);
String visiblePlaceholder(Element*);
void selectColorInColorChooser(Element*, const String& colorValue);
+ void endColorChooser(Element*);
bool hasAutofocusRequest(Document*);
bool hasAutofocusRequest();
Vector<String> formControlStateOfHistoryItem(ExceptionState&);
void setEnableMockPagePopup(bool, ExceptionState&);
PassRefPtrWillBeRawPtr<PagePopupController> pagePopupController();
- PassRefPtrWillBeRawPtr<ClientRect> unscaledViewportRect(ExceptionState&);
-
PassRefPtrWillBeRawPtr<ClientRect> absoluteCaretBounds(ExceptionState&);
PassRefPtrWillBeRawPtr<ClientRect> boundingBox(Element*);
unsigned lengthFromRange(Element* scope, const Range*);
String rangeAsText(const Range*);
- PassRefPtrWillBeRawPtr<WebKitPoint> touchPositionAdjustedToBestClickableNode(long x, long y, long width, long height, Document*, ExceptionState&);
+ DOMPoint* touchPositionAdjustedToBestClickableNode(long x, long y, long width, long height, Document*, ExceptionState&);
Node* touchNodeAdjustedToBestClickableNode(long x, long y, long width, long height, Document*, ExceptionState&);
- PassRefPtrWillBeRawPtr<WebKitPoint> touchPositionAdjustedToBestContextMenuNode(long x, long y, long width, long height, Document*, ExceptionState&);
+ DOMPoint* touchPositionAdjustedToBestContextMenuNode(long x, long y, long width, long height, Document*, ExceptionState&);
Node* touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, long height, Document*, ExceptionState&);
PassRefPtrWillBeRawPtr<ClientRect> bestZoomableAreaForTouchPoint(long x, long y, long width, long height, Document*, ExceptionState&);
unsigned wheelEventHandlerCount(Document*);
unsigned scrollEventHandlerCount(Document*);
unsigned touchEventHandlerCount(Document*);
- PassRefPtrWillBeRawPtr<LayerRectList> touchEventTargetLayerRects(Document*, ExceptionState&);
+ LayerRectList* touchEventTargetLayerRects(Document*, ExceptionState&);
// This is used to test rect based hit testing like what's done on touch screens.
PassRefPtrWillBeRawPtr<StaticNodeList> nodesFromRect(Document*, int x, int y, unsigned topPadding, unsigned rightPadding,
unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allowChildFrameContent, ExceptionState&) const;
- void emitInspectorDidBeginFrame(int frameId = 0);
- void emitInspectorDidCancelFrame();
-
bool hasSpellingMarker(Document*, int from, int length);
bool hasGrammarMarker(Document*, int from, int length);
void setContinuousSpellCheckingEnabled(bool);
void mediaPlayerRequestFullscreen(HTMLMediaElement*);
double effectiveMediaVolume(HTMLMediaElement*);
+ void mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement *, bool);
+
void registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme);
void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(const String& scheme);
- PassRefPtrWillBeRawPtr<TypeConversions> typeConversions() const;
+ TypeConversions* typeConversions() const;
PrivateScriptTest* privateScriptTest() const;
+ DictionaryTest* dictionaryTest() const;
Vector<String> getReferencedFilePaths() const;
int selectPopupItemStyleFontHeight(Node*, int);
PassRefPtrWillBeRawPtr<ClientRect> selectionBounds(ExceptionState&);
- String baseURL(Document*);
bool loseSharedGraphicsContext3D();
unsigned countHitRegions(CanvasRenderingContext2D*);
+ void forcePluginPlaceholder(HTMLElement* plugin, const String& htmlSource, ExceptionState&);
+ void forcePluginPlaceholder(HTMLElement* plugin, const Dictionary& options, ExceptionState&);
+
+ Iterator* iterator(ScriptState*, ExceptionState&);
+
private:
explicit Internals(Document*);
Document* contextDocument() const;
PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool draggable, ExceptionState&);
DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, ExceptionState&);
- RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags;
- RefPtrWillBeMember<InternalProfilers> m_profilers;
+ Member<InternalRuntimeFlags> m_runtimeFlags;
+ Member<InternalProfilers> m_profilers;
};
} // namespace blink
-#endif
+#endif // Internals_h