| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 if (is_android) { | 5 if (is_android) { |
| 6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
| 7 import("//build/config/android/rules.gni") | 7 import("//build/config/android/rules.gni") |
| 8 } | 8 } |
| 9 | 9 |
| 10 source_set("contents") { | 10 source_set("contents") { |
| 11 visibility = [ "//blimp/client/*" ] | 11 visibility = [ "//blimp/client/*" ] |
| 12 | 12 |
| 13 sources = [ | 13 sources = [ |
| 14 "blimp_contents_impl.cc", | 14 "blimp_contents_impl.cc", |
| 15 "blimp_contents_impl.h", | 15 "blimp_contents_impl.h", |
| 16 "blimp_navigation_controller_delegate.h", | 16 "blimp_navigation_controller_delegate.h", |
| 17 "blimp_navigation_controller_impl.cc", | 17 "blimp_navigation_controller_impl.cc", |
| 18 "blimp_navigation_controller_impl.h", | 18 "blimp_navigation_controller_impl.h", |
| 19 "navigation_feature.cc", |
| 20 "navigation_feature.h", |
| 19 ] | 21 ] |
| 20 | 22 |
| 21 public_deps = [ | 23 public_deps = [ |
| 22 "//base", | 24 "//base", |
| 23 "//blimp/client/public:public_headers", | 25 "//blimp/client/public:public_headers", |
| 26 "//blimp/net", |
| 27 "//net:net", |
| 24 "//url", | 28 "//url", |
| 25 ] | 29 ] |
| 26 | 30 |
| 31 deps = [ |
| 32 "//blimp/common", |
| 33 "//components/url_formatter", |
| 34 ] |
| 35 |
| 27 if (is_android) { | 36 if (is_android) { |
| 28 sources += [ | 37 sources += [ |
| 29 "android/blimp_contents_factory.cc", | 38 "android/blimp_contents_factory.cc", |
| 30 "android/blimp_contents_factory.h", | 39 "android/blimp_contents_factory.h", |
| 31 "android/blimp_contents_impl_android.cc", | 40 "android/blimp_contents_impl_android.cc", |
| 32 "android/blimp_contents_impl_android.h", | 41 "android/blimp_contents_impl_android.h", |
| 33 "android/blimp_contents_jni_registrar.cc", | 42 "android/blimp_contents_jni_registrar.cc", |
| 34 "android/blimp_contents_jni_registrar.h", | 43 "android/blimp_contents_jni_registrar.h", |
| 35 "android/blimp_contents_observer_proxy.cc", | 44 "android/blimp_contents_observer_proxy.cc", |
| 36 "android/blimp_contents_observer_proxy.h", | 45 "android/blimp_contents_observer_proxy.h", |
| 37 "android/blimp_navigation_controller_impl_android.cc", | 46 "android/blimp_navigation_controller_impl_android.cc", |
| 38 "android/blimp_navigation_controller_impl_android.h", | 47 "android/blimp_navigation_controller_impl_android.h", |
| 39 ] | 48 ] |
| 40 | 49 |
| 41 deps = [ | 50 deps += [ ":jni_headers" ] |
| 42 ":jni_headers", | |
| 43 ] | |
| 44 } | 51 } |
| 45 } | 52 } |
| 46 | 53 |
| 54 source_set("test_support") { |
| 55 testonly = true |
| 56 |
| 57 sources = [ |
| 58 "fake_navigation_feature.cc", |
| 59 "fake_navigation_feature.h", |
| 60 "mock_navigation_feature_delegate.cc", |
| 61 "mock_navigation_feature_delegate.h", |
| 62 ] |
| 63 |
| 64 deps = [ |
| 65 "//base", |
| 66 "//skia", |
| 67 "//url", |
| 68 ] |
| 69 |
| 70 public_deps = [ |
| 71 "//blimp/client/core/contents", |
| 72 "//testing/gmock", |
| 73 ] |
| 74 } |
| 75 |
| 47 source_set("unit_tests") { | 76 source_set("unit_tests") { |
| 48 visibility = [ "//blimp/client/core:unit_tests" ] | 77 visibility = [ "//blimp/client/core:unit_tests" ] |
| 49 | 78 |
| 50 testonly = true | 79 testonly = true |
| 51 | 80 |
| 52 sources = [ | 81 sources = [ |
| 53 "blimp_contents_impl_unittest.cc", | 82 "blimp_contents_impl_unittest.cc", |
| 54 "blimp_navigation_controller_impl_unittest.cc", | 83 "blimp_navigation_controller_impl_unittest.cc", |
| 84 "navigation_feature_unittest.cc", |
| 55 ] | 85 ] |
| 56 | 86 |
| 57 deps = [ | 87 deps = [ |
| 58 ":contents", | 88 ":contents", |
| 89 ":test_support", |
| 59 "//base", | 90 "//base", |
| 60 "//blimp/client/public:public_headers", | 91 "//blimp/client/public:public_headers", |
| 92 "//blimp/common", |
| 93 "//blimp/net:test_support", |
| 94 "//net:test_support", |
| 61 "//testing/gtest", | 95 "//testing/gtest", |
| 62 "//url", | 96 "//url", |
| 63 ] | 97 ] |
| 64 } | 98 } |
| 65 | 99 |
| 66 if (is_android) { | 100 if (is_android) { |
| 67 android_library("contents_java") { | 101 android_library("contents_java") { |
| 68 visibility = [ "//blimp/client/*" ] | 102 visibility = [ "//blimp/client/*" ] |
| 69 | 103 |
| 70 java_files = [ | 104 java_files = [ |
| (...skipping 15 matching lines...) Expand all Loading... |
| 86 sources = [ | 120 sources = [ |
| 87 "android/java/src/org/chromium/blimp/core/contents/BlimpContentsFactory.ja
va", | 121 "android/java/src/org/chromium/blimp/core/contents/BlimpContentsFactory.ja
va", |
| 88 "android/java/src/org/chromium/blimp/core/contents/BlimpContentsImpl.java"
, | 122 "android/java/src/org/chromium/blimp/core/contents/BlimpContentsImpl.java"
, |
| 89 "android/java/src/org/chromium/blimp/core/contents/BlimpContentsObserverPr
oxy.java", | 123 "android/java/src/org/chromium/blimp/core/contents/BlimpContentsObserverPr
oxy.java", |
| 90 "android/java/src/org/chromium/blimp/core/contents/BlimpNavigationControll
erImpl.java", | 124 "android/java/src/org/chromium/blimp/core/contents/BlimpNavigationControll
erImpl.java", |
| 91 ] | 125 ] |
| 92 | 126 |
| 93 jni_package = "blimp/client/core/contents" | 127 jni_package = "blimp/client/core/contents" |
| 94 } | 128 } |
| 95 } | 129 } |
| OLD | NEW |