blob: 942b72358e22c2d6724cd7c7fe0bbf82113e095f [file] [log] [blame]
oshima82f72482014-10-24 14:14:321# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//build/config/ui.gni")
6
oshimaf65398422014-11-18 23:30:427static_library("app_modal") {
oshima82f72482014-10-24 14:14:328 sources = [
9 "app_modal_dialog.cc",
10 "app_modal_dialog.h",
oshima82f72482014-10-24 14:14:3211 "app_modal_dialog_queue.cc",
12 "app_modal_dialog_queue.h",
13 "javascript_app_modal_dialog.cc",
14 "javascript_app_modal_dialog.h",
tfarina4a0c594882015-07-02 14:39:4115 "javascript_dialog_extensions_client.h",
oshima758abebc2014-11-06 10:55:5016 "javascript_dialog_manager.cc",
17 "javascript_dialog_manager.h",
oshima758abebc2014-11-06 10:55:5018 "javascript_native_dialog_factory.h",
scottmgac0ea0312014-12-03 19:21:0519 "native_app_modal_dialog.h",
oshima82f72482014-10-24 14:14:3220 ]
21
22 deps = [
tfarina4a0c594882015-07-02 14:39:4123 "//base",
24 "//base:i18n",
oshima82f72482014-10-24 14:14:3225 "//components/strings",
26 "//content/public/browser",
oshima758abebc2014-11-06 10:55:5027 "//content/public/common",
tfarina4a0c594882015-07-02 14:39:4128 "//net",
oshima82f72482014-10-24 14:14:3229 "//skia",
tfarina4a0c594882015-07-02 14:39:4130 "//ui/base",
oshima82f72482014-10-24 14:14:3231 ]
32
33 if (use_aura) {
34 deps += [ "//ui/aura" ]
35 }
oshima758abebc2014-11-06 10:55:5036
andresantoso28362972015-03-31 20:43:5237 if (toolkit_views) {
oshima758abebc2014-11-06 10:55:5038 sources += [
oshima758abebc2014-11-06 10:55:5039 "views/javascript_app_modal_dialog_views.cc",
satoruxea51ccc2015-02-16 10:14:2440 "views/javascript_app_modal_dialog_views.h",
oshima758abebc2014-11-06 10:55:5041 ]
tfarina4a0c594882015-07-02 14:39:4142
43 deps += [
44 "//components/constrained_window",
45 "//ui/views",
46 ]
oshima758abebc2014-11-06 10:55:5047 }
oshima82f72482014-10-24 14:14:3248}