# Copyright 2014 The Chromium Authors
# 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")
import("//pdf/features.gni")
import("//services/screen_ai/buildflags/features.gni")

mojom("mojom") {
  sources = [ "pdf.mojom" ]

  public_deps = [
    "//services/network/public/mojom:url_loader_base",
    "//ui/gfx/geometry/mojom",
    "//url/mojom:url_mojom_gurl",
  ]

  cpp_only = true

  enabled_features = []

  if (enable_pdf_save_to_drive) {
    enabled_features += [ "enable_pdf_save_to_drive" ]
  }

  if (enable_screen_ai_service) {
    enabled_features += [ "enable_screen_ai_service" ]
  }

  if (arkweb_pdf) {
    enabled_features += [ "arkweb_pdf" ]
  }
}