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 import("//mojo/public/mojo_application.gni") | |
6 | |
7 source_set("switches") { | |
8 sources = [ | |
9 "web_view_switches.cc", | |
10 "web_view_switches.h", | |
11 ] | |
12 } | |
13 | |
14 source_set("lib") { | |
15 sources = [ | |
16 "client_initiated_frame_connection.cc", | |
17 "client_initiated_frame_connection.h", | |
18 "find_controller.cc", | |
19 "find_controller.h", | |
20 "frame.cc", | |
21 "frame.h", | |
22 "frame_connection.cc", | |
23 "frame_connection.h", | |
24 "frame_devtools_agent.cc", | |
25 "frame_devtools_agent.h", | |
26 "frame_devtools_agent_delegate.h", | |
27 "frame_tree.cc", | |
28 "frame_tree.h", | |
29 "frame_tree_delegate.cc", | |
30 "frame_tree_delegate.h", | |
31 "frame_user_data.h", | |
32 "frame_utils.cc", | |
33 "frame_utils.h", | |
34 "local_find_options.cc", | |
35 "local_find_options.h", | |
36 "navigation_controller.cc", | |
37 "navigation_controller.h", | |
38 "navigation_entry.cc", | |
39 "navigation_entry.h", | |
40 "pending_web_view_load.cc", | |
41 "pending_web_view_load.h", | |
42 "reload_type.h", | |
43 "url_request_cloneable.cc", | |
44 "url_request_cloneable.h", | |
45 "web_view_application_delegate.cc", | |
46 "web_view_application_delegate.h", | |
47 "web_view_impl.cc", | |
48 "web_view_impl.h", | |
49 ] | |
50 | |
51 deps = [ | |
52 ":switches", | |
53 "//base", | |
54 "//components/clipboard/public/interfaces", | |
55 "//components/devtools_service/public/cpp", | |
56 "//components/devtools_service/public/interfaces", | |
57 "//components/mus/common", | |
58 "//components/mus/public/cpp", | |
59 "//components/mus/public/interfaces", | |
60 "//components/resource_provider/public/interfaces", | |
61 "//components/web_view/test_runner/public/interfaces", | |
62 "//mojo/common:common_base", | |
63 "//mojo/common:url_type_converters", | |
64 "//mojo/converters/geometry", | |
65 "//mojo/public/cpp/bindings", | |
66 "//mojo/services/network/public/interfaces", | |
67 "//mojo/services/tracing/public/cpp", | |
68 "//mojo/services/tracing/public/interfaces", | |
69 "//mojo/shell/public/cpp:sources", | |
70 "//mojo/shell/public/interfaces", | |
71 "//url", | |
72 ] | |
73 | |
74 public_deps = [ | |
75 "//components/web_view/public/interfaces", | |
76 ] | |
77 | |
78 if (is_linux && !is_android) { | |
79 deps += [ "//components/font_service/public/interfaces" ] | |
80 } | |
81 } | |
82 | |
83 mojo_native_application("web_view") { | |
84 sources = [ | |
85 "main.cc", | |
86 ] | |
87 | |
88 deps = [ | |
89 ":lib", | |
90 "//mojo/shell/public/cpp", | |
91 ] | |
92 } | |
93 | |
94 source_set("test_support") { | |
95 testonly = true | |
96 | |
97 sources = [ | |
98 "test_frame_tree_delegate.cc", | |
99 "test_frame_tree_delegate.h", | |
100 ] | |
101 deps = [ | |
102 ":lib", | |
103 "//base", | |
104 "//testing/gtest", | |
105 ] | |
106 } | |
107 | |
108 mojo_native_application("apptests") { | |
109 output_name = "web_view_apptests" | |
110 testonly = true | |
111 | |
112 sources = [ | |
113 "frame_apptest.cc", | |
114 "web_view_apptest.cc", | |
115 ] | |
116 | |
117 deps = [ | |
118 ":lib", | |
119 ":test_support", | |
120 "//base", | |
121 "//base/test:test_config", | |
122 "//components/mus/public/cpp", | |
123 "//components/mus/public/cpp/tests:test_support", | |
124 "//components/mus/public/interfaces", | |
125 "//components/web_view/public/cpp", | |
126 "//components/web_view/public/interfaces", | |
127 "//mojo/shell/public/cpp:sources", | |
128 "//mojo/shell/public/cpp:test_support", | |
129 "//mojo/util:filename_util", | |
130 "//ui/mojo/geometry:interfaces", | |
131 "//ui/mojo/geometry:util", | |
132 "//url:url", | |
133 ] | |
134 | |
135 data_deps = [ | |
136 ":web_view", | |
137 ] | |
138 } | |
OLD | NEW |