Vectorize website settings icons in omnibox
[chromium-blink-merge.git] / components / html_viewer / layout_test_html_viewer.cc
blobc015a3dc363606ec1dadfc2b2ec1daf35cf6a8b9
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 #include "components/html_viewer/layout_test_html_viewer.h"
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"
11 namespace html_viewer {
13 LayoutTestHTMLViewer::LayoutTestHTMLViewer() {
16 LayoutTestHTMLViewer::~LayoutTestHTMLViewer() {
19 void LayoutTestHTMLViewer::Initialize(mojo::ApplicationImpl* app) {
20 HTMLViewer::Initialize(app);
21 global_state()->InitIfNecessary(gfx::Size(800, 600), 1.f);
22 test_interfaces_.reset(new test_runner::WebTestInterfaces);
23 test_interfaces_->ResetAll();
24 test_delegate_.set_test_interfaces(test_interfaces_.get());
25 test_interfaces_->SetDelegate(&test_delegate_);
28 void LayoutTestHTMLViewer::Create(
29 mojo::ApplicationConnection* connection,
30 mojo::InterfaceRequest<mojo::ContentHandler> request) {
31 new LayoutTestContentHandlerImpl(global_state(), app(), request.Pass(),
32 test_interfaces_.get(),
33 &test_delegate_);
36 } // namespace html_viewer