Index: components/html_viewer/BUILD.gn |
diff --git a/components/html_viewer/BUILD.gn b/components/html_viewer/BUILD.gn |
index 18170039448707e1465bc8e10f5a9d976280016e..9cea081abaec1ba1bbee0b0db0a2f9e2aae3b567 100644 |
--- a/components/html_viewer/BUILD.gn |
+++ b/components/html_viewer/BUILD.gn |
@@ -67,6 +67,8 @@ source_set("lib") { |
"blink_resource_constants.h", |
"blink_url_request_type_converters.cc", |
"blink_url_request_type_converters.h", |
+ "content_handler_impl.cc", |
+ "content_handler_impl.h", |
"devtools_agent_impl.cc", |
"devtools_agent_impl.h", |
"discardable_memory_allocator.cc", |
@@ -84,8 +86,14 @@ source_set("lib") { |
"global_state.h", |
"html_document.cc", |
"html_document.h", |
+ "html_document_application_delegate.cc", |
+ "html_document_application_delegate.h", |
"html_document_oopif.cc", |
"html_document_oopif.h", |
+ "html_viewer.cc", |
+ "html_viewer.h", |
+ "html_viewer_switches.cc", |
+ "html_viewer_switches.h", |
"media_factory.cc", |
"media_factory.h", |
"mock_web_blob_registry_impl.cc", |
@@ -142,7 +150,9 @@ source_set("lib") { |
"//media/mojo", |
"//mojo/application/public/cpp", |
"//mojo/cc", |
+ "//mojo/common", |
"//mojo/converters/surfaces", |
+ "//mojo/platform_handle", |
"//mojo/services/network/public/cpp", |
"//mojo/services/network/public/interfaces", |
"//net", |
@@ -177,31 +187,58 @@ source_set("lib") { |
data_deps = [ |
"//components/clipboard", |
"//components/view_manager", |
+ "//mojo/services/network:network", |
] |
} |
mojo_native_application("html_viewer") { |
sources = [ |
- "content_handler_impl.cc", |
- "content_handler_impl.h", |
- "html_document_application_delegate.cc", |
- "html_document_application_delegate.h", |
- "html_viewer.cc", |
- "html_viewer.h", |
"html_viewer_main.cc", |
- "html_viewer_switches.cc", |
- "html_viewer_switches.h", |
] |
deps = [ |
":html_viewer_resources_grit", |
":lib", |
- "//mojo/common", |
- "//mojo/platform_handle", |
"//third_party/icu:icudata", |
"//third_party/mojo/src/mojo/public/c/system:for_shared_library", |
"//ui/resources:ui_test_pak", |
] |
- data_deps = [ "//mojo/services/network:network" ] |
+ resources = [ |
+ "$root_out_dir/icudtl.dat", |
+ "$root_out_dir/ui_test.pak", |
+ "$target_gen_dir/html_viewer_resources.pak", |
+ ] |
+ |
+ if (v8_use_external_startup_data) { |
+ resources += [ |
+ "$root_build_dir/natives_blob.bin", |
+ "$root_build_dir/snapshot_blob.bin", |
+ ] |
+ deps += [ "//gin" ] |
+ } |
+} |
+ |
+mojo_native_application("layout_test_html_viewer") { |
+ testonly = true |
+ sources = [ |
+ "layout_test_content_handler_impl.cc", |
+ "layout_test_content_handler_impl.h", |
+ "layout_test_html_viewer.cc", |
+ "layout_test_html_viewer.h", |
+ "layout_test_html_viewer_main.cc", |
+ "web_test_delegate_impl.cc", |
+ "web_test_delegate_impl.h", |
+ ] |
+ deps = [ |
+ ":html_viewer_resources_grit", |
+ ":lib", |
+ "//components/test_runner", |
+ "//third_party/WebKit/public:blink", |
+ "//third_party/WebKit/public:test_support", |
+ "//third_party/icu:icudata", |
+ "//third_party/mojo/src/mojo/public/c/system:for_shared_library", |
+ "//ui/resources:ui_test_pak", |
+ "//url", |
+ ] |
resources = [ |
"$root_out_dir/icudtl.dat", |
"$root_out_dir/ui_test.pak", |