OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #ifndef COMPONENTS_HTML_VIEWER_HTML_FACTORY_H_ | |
6 #define COMPONENTS_HTML_VIEWER_HTML_FACTORY_H_ | |
7 | |
8 #include "components/html_viewer/html_frame.h" | |
9 #include "components/html_viewer/html_widget.h" | |
10 | |
11 namespace html_viewer { | |
12 | |
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; | |
20 | |
21 protected: | |
22 virtual ~HTMLFactory() {} | |
23 }; | |
24 | |
25 } // namespace html_viewer | |
26 | |
27 #endif // COMPONENTS_HTML_VIEWER_HTML_FACTORY_H_ | |
OLD | NEW |