Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / html_viewer / html_factory.h
blobaf2c7a3dd53d61d50afcaacacd3d9577626d0545
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_HTML_VIEWER_HTML_FACTORY_H_
6 #define COMPONENTS_HTML_VIEWER_HTML_FACTORY_H_
8 #include "components/html_viewer/html_frame.h"
9 #include "components/html_viewer/html_widget.h"
11 namespace html_viewer {
13 // HTMLFactory is used to create various classes that need to be mocked
14 // for layout tests.
15 class HTMLFactory {
16 public:
17 virtual HTMLFrame* CreateHTMLFrame(HTMLFrame::CreateParams* params) = 0;
18 virtual HTMLWidgetRootLocal* CreateHTMLWidgetRootLocal(
19 HTMLWidgetRootLocal::CreateParams* params) = 0;
21 protected:
22 virtual ~HTMLFactory() {}
25 } // namespace html_viewer
27 #endif // COMPONENTS_HTML_VIEWER_HTML_FACTORY_H_