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 #include "components/html_viewer/layout_test_html_viewer.h" | |
6 | |
7 #include "components/html_viewer/global_state.h" | |
8 #include "components/html_viewer/layout_test_content_handler_impl.h" | |
9 #include "components/test_runner/web_test_interfaces.h" | |
10 | |
11 | |
jam
2015/07/09 16:48:27
nit: extra line
jochen (gone - plz use gerrit)
2015/07/10 07:53:43
done
| |
12 namespace html_viewer { | |
13 | |
14 LayoutTestHTMLViewer::LayoutTestHTMLViewer() { | |
15 } | |
16 | |
17 LayoutTestHTMLViewer::~LayoutTestHTMLViewer() { | |
18 } | |
19 | |
20 void LayoutTestHTMLViewer::Initialize(mojo::ApplicationImpl* app) { | |
21 HTMLViewer::Initialize(app); | |
22 global_state()->InitIfNecessary(gfx::Size(800, 600), 1.f); | |
23 test_interfaces_.reset(new test_runner::WebTestInterfaces); | |
24 test_interfaces_->ResetAll(); | |
25 test_delegate_.set_test_interfaces(test_interfaces_.get()); | |
26 test_interfaces_->SetDelegate(&test_delegate_); | |
27 } | |
28 | |
29 void LayoutTestHTMLViewer::Create( | |
30 mojo::ApplicationConnection* connection, | |
31 mojo::InterfaceRequest<mojo::ContentHandler> request) { | |
32 new LayoutTestContentHandlerImpl(global_state(), app(), request.Pass(), | |
33 test_interfaces_.get(), | |
34 &test_delegate_); | |
35 } | |
36 | |
37 } // namespace html_viewer | |
OLD | NEW |