Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / web / tests / FrameTestHelpers.h
index 6f81d56..9449219 100644 (file)
 #ifndef FrameTestHelpers_h
 #define FrameTestHelpers_h
 
-#include "WebViewImpl.h"
 #include "public/web/WebFrameClient.h"
+#include "public/web/WebViewClient.h"
+#include "web/WebViewImpl.h"
 #include "wtf/PassOwnPtr.h"
 #include <string>
 
 namespace blink {
 
-class WebFrameImpl;
+class WebLocalFrameImpl;
 class WebSettings;
-class WebViewClient;
 
 namespace FrameTestHelpers {
 
@@ -75,10 +75,20 @@ private:
 // frames and need further specialization of WebFrameClient behavior should subclass this.
 class TestWebFrameClient : public WebFrameClient {
 public:
-    virtual WebFrame* createChildFrame(WebFrame* parent, const WebString& frameName) OVERRIDE;
+    virtual WebFrame* createChildFrame(WebLocalFrame* parent, const WebString& frameName) OVERRIDE;
     virtual void frameDetached(WebFrame*) OVERRIDE;
 };
 
+class TestWebViewClient : public WebViewClient {
+public:
+    virtual ~TestWebViewClient() { }
+    virtual void initializeLayerTreeView() OVERRIDE;
+    virtual WebLayerTreeView* layerTreeView() OVERRIDE { return m_layerTreeView.get(); }
+
+private:
+    OwnPtr<WebLayerTreeView> m_layerTreeView;
+};
+
 } // namespace FrameTestHelpers
 } // namespace blink