| # Copyright 2015 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/config/ui.gni") |
| import("//ui/vector_icons/vector_icons.gni") |
| |
| aggregate_vector_icons("toolbar_vector_icons") { |
| icon_directory = "vector_icons" |
| |
| icons = [ |
| "http.1x.icon", |
| "http.icon", |
| "https_invalid.1x.icon", |
| "https_invalid.icon", |
| "https_valid.1x.icon", |
| "https_valid.icon", |
| "https_valid_in_chip.1x.icon", |
| "https_valid_in_chip.icon", |
| "product.1x.icon", |
| "product.icon", |
| "star_active.icon", |
| "star.icon", |
| ] |
| } |
| |
| static_library("toolbar") { |
| sources = [ |
| "toolbar_model.h", |
| "toolbar_model_delegate.h", |
| "toolbar_model_impl.cc", |
| "toolbar_model_impl.h", |
| ] |
| |
| public_deps = [ |
| "//base", |
| "//components/security_state/core", |
| "//url", |
| ] |
| |
| deps = [ |
| "//components/google/core/browser", |
| "//components/prefs", |
| "//components/resources", |
| "//components/strings", |
| "//components/url_formatter", |
| "//net", |
| "//ui/base", |
| "//ui/gfx", |
| ] |
| |
| if (!is_android && !is_ios) { |
| sources += get_target_outputs(":toolbar_vector_icons") |
| deps += [ |
| ":toolbar_vector_icons", |
| "//ui/vector_icons", |
| ] |
| } |
| } |
| |
| static_library("test_support") { |
| testonly = true |
| |
| sources = [ |
| "test_toolbar_model.cc", |
| "test_toolbar_model.h", |
| ] |
| |
| public_deps = [ |
| ":toolbar", |
| "//base", |
| ] |
| |
| deps = [ |
| "//components/resources", |
| "//ui/gfx", |
| ] |
| |
| if (toolkit_views) { |
| # Needed to get the TOOLKIT_VIEWS define. |
| deps += [ "//ui/views" ] |
| } |
| } |