| # Copyright 2021 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("//mojo/public/tools/bindings/mojom.gni") |
| |
| mojom("mojo_bindings") { |
| sources = [ "download_shelf.mojom" ] |
| public_deps = [ |
| "//mojo/public/mojom/base", |
| "//url/mojom:url_mojom_gurl", |
| ] |
| webui_module_path = "/" |
| |
| # TODO(crbug.com/1195085): Remove the typemaps and use the mojo types in other |
| # code parts. |
| cpp_typemaps = [ |
| { |
| types = [ |
| { |
| mojom = "download_shelf.mojom.DangerType" |
| cpp = "::download::DownloadDangerType" |
| }, |
| { |
| mojom = "download_shelf.mojom.DownloadState" |
| cpp = "::download::DownloadItem::DownloadState" |
| }, |
| { |
| mojom = "download_shelf.mojom.MixedContentStatus" |
| cpp = "::download::DownloadItem::MixedContentStatus" |
| }, |
| ] |
| traits_headers = [ "download_mojom_traits.h" ] |
| }, |
| ] |
| } |