OLD | NEW |
| (Empty) |
1 # Copyright 2016 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 if (is_android) { | |
6 import("//build/config/android/config.gni") | |
7 import("//build/config/android/rules.gni") | |
8 } | |
9 | |
10 source_set("contents") { | |
11 visibility = [ "//blimp/client/core/*" ] | |
12 | |
13 sources = [ | |
14 "blimp_contents_impl.cc", | |
15 "blimp_contents_impl.h", | |
16 "blimp_contents_manager.cc", | |
17 "blimp_contents_manager.h", | |
18 "blimp_contents_view_impl.cc", | |
19 "blimp_contents_view_impl.h", | |
20 "blimp_navigation_controller_delegate.h", | |
21 "blimp_navigation_controller_impl.cc", | |
22 "blimp_navigation_controller_impl.h", | |
23 "ime_feature.cc", | |
24 "ime_feature.h", | |
25 "navigation_feature.cc", | |
26 "navigation_feature.h", | |
27 "tab_control_feature.cc", | |
28 "tab_control_feature.h", | |
29 ] | |
30 | |
31 public_deps = [ | |
32 "//base", | |
33 "//blimp/client/core/compositor", | |
34 "//blimp/client/core/render_widget", | |
35 "//blimp/client/public:public_headers", | |
36 "//blimp/net", | |
37 "//net:net", | |
38 "//ui/base/ime:text_input_types", | |
39 "//ui/gfx:native_widget_types", | |
40 "//ui/gfx/geometry:geometry", | |
41 "//url", | |
42 ] | |
43 | |
44 deps = [ | |
45 "//blimp/common", | |
46 "//components/url_formatter", | |
47 "//skia", | |
48 ] | |
49 | |
50 if (is_android) { | |
51 sources += [ | |
52 "android/blimp_contents_impl_android.cc", | |
53 "android/blimp_contents_impl_android.h", | |
54 "android/blimp_contents_jni_registrar.cc", | |
55 "android/blimp_contents_jni_registrar.h", | |
56 "android/blimp_contents_observer_proxy.cc", | |
57 "android/blimp_contents_observer_proxy.h", | |
58 "android/blimp_navigation_controller_impl_android.cc", | |
59 "android/blimp_navigation_controller_impl_android.h", | |
60 "android/blimp_view.cc", | |
61 "android/blimp_view.h", | |
62 "android/ime_helper_dialog.cc", | |
63 "android/ime_helper_dialog.h", | |
64 "blimp_contents_view_impl_android.cc", | |
65 "blimp_contents_view_impl_android.h", | |
66 ] | |
67 | |
68 public_deps += [ "//ui/android" ] | |
69 | |
70 deps += [ | |
71 ":jni_headers", | |
72 "//cc", | |
73 "//ui/android", | |
74 "//ui/events:events", | |
75 ] | |
76 } else { | |
77 sources += [ | |
78 "blimp_contents_view_impl_aura.cc", | |
79 "blimp_contents_view_impl_aura.h", | |
80 ] | |
81 } | |
82 } | |
83 | |
84 source_set("test_support") { | |
85 visibility = [ "//blimp/client/core/contents:unit_tests" ] | |
86 | |
87 testonly = true | |
88 | |
89 sources = [ | |
90 "fake_navigation_feature.cc", | |
91 "fake_navigation_feature.h", | |
92 "mock_ime_feature_delegate.cc", | |
93 "mock_ime_feature_delegate.h", | |
94 "mock_navigation_feature_delegate.cc", | |
95 "mock_navigation_feature_delegate.h", | |
96 ] | |
97 | |
98 deps = [ | |
99 "//base", | |
100 "//skia", | |
101 "//url", | |
102 ] | |
103 | |
104 public_deps = [ | |
105 ":contents", | |
106 "//testing/gmock", | |
107 ] | |
108 } | |
109 | |
110 source_set("unit_tests") { | |
111 visibility = [ "//blimp/client/core:unit_tests" ] | |
112 | |
113 testonly = true | |
114 | |
115 sources = [ | |
116 "blimp_contents_impl_unittest.cc", | |
117 "blimp_contents_manager_unittest.cc", | |
118 "blimp_contents_observer_unittest.cc", | |
119 "blimp_navigation_controller_impl_unittest.cc", | |
120 "ime_feature_unittest.cc", | |
121 "navigation_feature_unittest.cc", | |
122 "tab_control_feature_unittest.cc", | |
123 ] | |
124 | |
125 deps = [ | |
126 ":contents", | |
127 ":test_support", | |
128 "//base", | |
129 "//blimp/client/public:public_headers", | |
130 "//blimp/client/test", | |
131 "//blimp/common", | |
132 "//blimp/net:test_support", | |
133 "//net", | |
134 "//net:test_support", | |
135 "//testing/gtest", | |
136 "//ui/gfx:native_widget_types", | |
137 "//ui/gfx:test_support", | |
138 "//ui/gfx/geometry:geometry", | |
139 "//url", | |
140 ] | |
141 | |
142 if (is_android) { | |
143 deps += [ "//ui/android" ] | |
144 } | |
145 } | |
146 | |
147 if (is_android) { | |
148 android_library("contents_java") { | |
149 visibility = [ | |
150 "//blimp/client/app:blimp_test_java_core_deps", | |
151 "//blimp/client/core/*", | |
152 ] | |
153 | |
154 java_files = [ | |
155 "android/java/src/org/chromium/blimp/core/contents/BlimpContentsImpl.java"
, | |
156 "android/java/src/org/chromium/blimp/core/contents/BlimpContentsObserverPr
oxy.java", | |
157 "android/java/src/org/chromium/blimp/core/contents/BlimpNavigationControll
erImpl.java", | |
158 "android/java/src/org/chromium/blimp/core/contents/BlimpView.java", | |
159 "android/java/src/org/chromium/blimp/core/contents/input/ImeEditText.java"
, | |
160 "android/java/src/org/chromium/blimp/core/contents/input/ImeHelperDialog.j
ava", | |
161 "android/java/src/org/chromium/blimp/core/contents/input/WebInputConfirmat
ionPanel.java", | |
162 ] | |
163 | |
164 deps = [ | |
165 "//base:base_java", | |
166 "//blimp/client/core/resources:java_resources", | |
167 "//blimp/client/public:public_headers_java", | |
168 "//third_party/android_tools:android_support_v7_appcompat_java", | |
169 "//ui/android:ui_java", | |
170 ] | |
171 } | |
172 | |
173 generate_jni("jni_headers") { | |
174 visibility = [ ":*" ] | |
175 | |
176 sources = [ | |
177 "android/java/src/org/chromium/blimp/core/contents/BlimpContentsImpl.java"
, | |
178 "android/java/src/org/chromium/blimp/core/contents/BlimpContentsObserverPr
oxy.java", | |
179 "android/java/src/org/chromium/blimp/core/contents/BlimpNavigationControll
erImpl.java", | |
180 "android/java/src/org/chromium/blimp/core/contents/BlimpView.java", | |
181 "android/java/src/org/chromium/blimp/core/contents/input/ImeHelperDialog.j
ava", | |
182 ] | |
183 | |
184 jni_package = "blimp/client/core/contents" | |
185 } | |
186 } | |
OLD | NEW |