#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 {
// 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