Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / testing / Internals.h
index dec51c1..5ea85c6 100644 (file)
@@ -45,19 +45,22 @@ namespace blink {
 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;
@@ -71,9 +74,10 @@ template <typename NodeType> class StaticNodeTypeList;
 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*);
@@ -82,23 +86,15 @@ public:
 
     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);
@@ -108,7 +104,6 @@ public:
     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&);
@@ -135,6 +130,7 @@ public:
 
     String visiblePlaceholder(Element*);
     void selectColorInColorChooser(Element*, const String& colorValue);
+    void endColorChooser(Element*);
     bool hasAutofocusRequest(Document*);
     bool hasAutofocusRequest();
     Vector<String> formControlStateOfHistoryItem(ExceptionState&);
@@ -142,8 +138,6 @@ public:
     void setEnableMockPagePopup(bool, ExceptionState&);
     PassRefPtrWillBeRawPtr<PagePopupController> pagePopupController();
 
-    PassRefPtrWillBeRawPtr<ClientRect> unscaledViewportRect(ExceptionState&);
-
     PassRefPtrWillBeRawPtr<ClientRect> absoluteCaretBounds(ExceptionState&);
 
     PassRefPtrWillBeRawPtr<ClientRect> boundingBox(Element*);
@@ -172,9 +166,9 @@ public:
     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&);
 
@@ -188,15 +182,12 @@ public:
     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);
@@ -258,11 +249,14 @@ public:
     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;
 
@@ -291,7 +285,6 @@ public:
     int selectPopupItemStyleFontHeight(Node*, int);
 
     PassRefPtrWillBeRawPtr<ClientRect> selectionBounds(ExceptionState&);
-    String baseURL(Document*);
 
     bool loseSharedGraphicsContext3D();
 
@@ -326,6 +319,11 @@ public:
 
     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;
@@ -334,10 +332,10 @@ private:
     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