Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: components/offline_items_collection/core/BUILD.gn

Issue 2811803006: Add support for pulling icons for OfflineItems (Closed)
Patch Set: More findbugs Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2017 The Chromium Authors. All rights reserved. 1 # Copyright 2017 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 static_library("core") { 10 static_library("core") {
11 sources = [ 11 sources = [
12 "offline_content_aggregator.cc", 12 "offline_content_aggregator.cc",
13 "offline_content_aggregator.h", 13 "offline_content_aggregator.h",
14 "offline_content_provider.h", 14 "offline_content_provider.h",
15 "offline_item.cc", 15 "offline_item.cc",
16 "offline_item.h", 16 "offline_item.h",
17 "offline_item_filter.h", 17 "offline_item_filter.h",
18 "offline_item_state.h", 18 "offline_item_state.h",
19 "throttled_offline_content_provider.cc", 19 "throttled_offline_content_provider.cc",
20 "throttled_offline_content_provider.h", 20 "throttled_offline_content_provider.h",
21 ] 21 ]
22 22
23 public_deps = [ 23 public_deps = [
24 "//base", 24 "//base",
25 "//components/keyed_service/core", 25 "//components/keyed_service/core",
26 "//ui/gfx",
26 "//url", 27 "//url",
27 ] 28 ]
28 29
29 deps = [] 30 deps = [
31 "//ui/gfx/geometry",
32 ]
30 33
31 if (is_android) { 34 if (is_android) {
32 sources += [ 35 sources += [
33 "android/offline_content_aggregator_bridge.cc", 36 "android/offline_content_aggregator_bridge.cc",
34 "android/offline_content_aggregator_bridge.h", 37 "android/offline_content_aggregator_bridge.h",
35 "android/offline_item_bridge.cc", 38 "android/offline_item_bridge.cc",
36 "android/offline_item_bridge.h", 39 "android/offline_item_bridge.h",
40 "android/offline_item_visuals_bridge.cc",
41 "android/offline_item_visuals_bridge.h",
37 ] 42 ]
38 43
39 deps += [ ":jni_headers" ] 44 deps += [ ":jni_headers" ]
40 } 45 }
41 } 46 }
42 47
43 source_set("unit_tests") { 48 source_set("unit_tests") {
44 testonly = true 49 testonly = true
45 50
46 sources = [ 51 sources = [
47 "offline_content_aggregator_unittest.cc", 52 "offline_content_aggregator_unittest.cc",
48 "throttled_offline_content_provider_unittest.cc", 53 "throttled_offline_content_provider_unittest.cc",
49 ] 54 ]
50 55
51 deps = [ 56 deps = [
52 ":core", 57 ":core",
53 "//base/test:test_support", 58 "//base/test:test_support",
54 "//components/offline_items_collection/core/test_support", 59 "//components/offline_items_collection/core/test_support",
55 ] 60 ]
56 } 61 }
57 62
58 if (is_android) { 63 if (is_android) {
59 android_library("core_java") { 64 android_library("core_java") {
60 java_files = [ 65 java_files = [
66 "android/java/src/org/chromium/components/offline_items_collection/bridges /OfflineItemBridge.java",
67 "android/java/src/org/chromium/components/offline_items_collection/bridges /OfflineItemVisualsBridge.java",
61 "android/java/src/org/chromium/components/offline_items_collection/Content Id.java", 68 "android/java/src/org/chromium/components/offline_items_collection/Content Id.java",
62 "android/java/src/org/chromium/components/offline_items_collection/LegacyH elpers.java", 69 "android/java/src/org/chromium/components/offline_items_collection/LegacyH elpers.java",
63 "android/java/src/org/chromium/components/offline_items_collection/Offline ContentAggregatorBridge.java", 70 "android/java/src/org/chromium/components/offline_items_collection/Offline ContentAggregatorBridge.java",
64 "android/java/src/org/chromium/components/offline_items_collection/Offline ContentProvider.java", 71 "android/java/src/org/chromium/components/offline_items_collection/Offline ContentProvider.java",
65 "android/java/src/org/chromium/components/offline_items_collection/Offline Item.java", 72 "android/java/src/org/chromium/components/offline_items_collection/Offline Item.java",
66 "android/java/src/org/chromium/components/offline_items_collection/Offline ItemBridge.java", 73 "android/java/src/org/chromium/components/offline_items_collection/Offline ItemVisuals.java",
74 "android/java/src/org/chromium/components/offline_items_collection/Visuals Callback.java",
67 ] 75 ]
68 76
69 srcjar_deps = [ ":jni_enums" ] 77 srcjar_deps = [ ":jni_enums" ]
70 78
71 deps = [ 79 deps = [
72 "//base:base_java", 80 "//base:base_java",
73 "//third_party/android_tools:android_support_annotations_java", 81 "//third_party/android_tools:android_support_annotations_java",
74 ] 82 ]
75 } 83 }
76 84
77 generate_jni("jni_headers") { 85 generate_jni("jni_headers") {
78 visibility = [ ":*" ] 86 visibility = [ ":*" ]
79 87
80 sources = [ 88 sources = [
81 "android/java/src/org/chromium/components/offline_items_collection/Offline ContentAggregatorBridge.java", 89 "android/java/src/org/chromium/components/offline_items_collection/Offline ContentAggregatorBridge.java",
82 "android/java/src/org/chromium/components/offline_items_collection/Offline ItemBridge.java", 90 "android/java/src/org/chromium/components/offline_items_collection/bridges /OfflineItemBridge.java",
91 "android/java/src/org/chromium/components/offline_items_collection/bridges /OfflineItemVisualsBridge.java",
83 ] 92 ]
84 93
85 jni_package = "components/offline_items_collection/core/android" 94 jni_package = "components/offline_items_collection/core/android"
86 } 95 }
87 96
88 java_cpp_enum("jni_enums") { 97 java_cpp_enum("jni_enums") {
89 visibility = [ ":*" ] 98 visibility = [ ":*" ]
90 99
91 sources = [ 100 sources = [
92 "offline_item_filter.h", 101 "offline_item_filter.h",
93 "offline_item_state.h", 102 "offline_item_state.h",
94 ] 103 ]
95 } 104 }
96 } 105 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698