1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
|
# Copyright 2025 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
assert(is_android)
source_set("tab_model") {
public = [
"android_live_tab_context.h",
"tab_collection_tab_model_impl.h",
"tab_model.h",
"tab_model_jni_bridge.h",
"tab_model_list.h",
"tab_model_list_observer.h",
"tab_model_observer.h",
"tab_model_observer_jni_bridge.h",
]
public_deps = [
"//base",
"//chrome/browser/flags:chrome_browser_flags_enums_srcjar",
"//chrome/browser/flags:flags_android",
"//chrome/browser/ui/tabs:tab_list_interface",
"//components/omnibox/browser:location_bar",
"//components/sessions",
"//components/sync_sessions",
"//components/tab_groups",
"//components/tabs:public",
"//url",
]
}
source_set("impl") {
sources = [
"android_live_tab_context.cc",
"android_live_tab_context_wrapper.cc",
"android_live_tab_context_wrapper.h",
"tab_collection_tab_model_impl.cc",
"tab_model.cc",
"tab_model_jni_bridge.cc",
"tab_model_list.cc",
"tab_model_observer.cc",
"tab_model_observer_jni_bridge.cc",
]
public_deps = [ "//chrome/browser:browser_public_dependencies" ]
deps = [
":tab_model",
"//chrome/android:chrome_jni_headers",
"//chrome/browser:browser_process",
"//chrome/browser/profiles:profile",
"//chrome/browser/sync",
"//chrome/browser/ui:browser_navigator_params_headers",
"//content/public/browser",
"//content/public/common",
"//ui/base:types",
]
}
java_cpp_enum("enums_java") {
sources = [ "tab_model.h" ]
}
source_set("test_support") {
testonly = true
sources = [
"tab_model_test_helper.cc",
"tab_model_test_helper.h",
]
public_deps = [
":tab_model",
"//chrome/browser",
"//content/test:test_support",
]
deps = [
"//chrome/browser/flags:flags_android",
"//chrome/browser/profiles:profile",
"//chrome/browser/ui/android/tab_model",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "tab_model_list_unittest.cc" ]
deps = [
":test_support",
"//chrome/test:test_support",
"//content/public/browser",
]
}
|