oshima | 82f7248 | 2014-10-24 14:14:32 | [diff] [blame] | 1 | # 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 | |
| 5 | import("//build/config/ui.gni") |
| 6 | |
oshima | f6539842 | 2014-11-18 23:30:42 | [diff] [blame] | 7 | static_library("app_modal") { |
oshima | 82f7248 | 2014-10-24 14:14:32 | [diff] [blame] | 8 | sources = [ |
| 9 | "app_modal_dialog.cc", |
| 10 | "app_modal_dialog.h", |
oshima | 82f7248 | 2014-10-24 14:14:32 | [diff] [blame] | 11 | "app_modal_dialog_queue.cc", |
| 12 | "app_modal_dialog_queue.h", |
| 13 | "javascript_app_modal_dialog.cc", |
| 14 | "javascript_app_modal_dialog.h", |
tfarina | 4a0c59488 | 2015-07-02 14:39:41 | [diff] [blame] | 15 | "javascript_dialog_extensions_client.h", |
oshima | 758abebc | 2014-11-06 10:55:50 | [diff] [blame] | 16 | "javascript_dialog_manager.cc", |
| 17 | "javascript_dialog_manager.h", |
oshima | 758abebc | 2014-11-06 10:55:50 | [diff] [blame] | 18 | "javascript_native_dialog_factory.h", |
scottmg | ac0ea031 | 2014-12-03 19:21:05 | [diff] [blame] | 19 | "native_app_modal_dialog.h", |
oshima | 82f7248 | 2014-10-24 14:14:32 | [diff] [blame] | 20 | ] |
| 21 | |
| 22 | deps = [ |
tfarina | 4a0c59488 | 2015-07-02 14:39:41 | [diff] [blame] | 23 | "//base", |
| 24 | "//base:i18n", |
oshima | 82f7248 | 2014-10-24 14:14:32 | [diff] [blame] | 25 | "//components/strings", |
rsleevi | 24f64dc2 | 2015-08-07 21:39:21 | [diff] [blame^] | 26 | "//components/url_formatter", |
oshima | 82f7248 | 2014-10-24 14:14:32 | [diff] [blame] | 27 | "//content/public/browser", |
oshima | 758abebc | 2014-11-06 10:55:50 | [diff] [blame] | 28 | "//content/public/common", |
tfarina | 4a0c59488 | 2015-07-02 14:39:41 | [diff] [blame] | 29 | "//net", |
oshima | 82f7248 | 2014-10-24 14:14:32 | [diff] [blame] | 30 | "//skia", |
tfarina | 4a0c59488 | 2015-07-02 14:39:41 | [diff] [blame] | 31 | "//ui/base", |
oshima | 82f7248 | 2014-10-24 14:14:32 | [diff] [blame] | 32 | ] |
| 33 | |
| 34 | if (use_aura) { |
| 35 | deps += [ "//ui/aura" ] |
| 36 | } |
oshima | 758abebc | 2014-11-06 10:55:50 | [diff] [blame] | 37 | |
andresantoso | 2836297 | 2015-03-31 20:43:52 | [diff] [blame] | 38 | if (toolkit_views) { |
oshima | 758abebc | 2014-11-06 10:55:50 | [diff] [blame] | 39 | sources += [ |
oshima | 758abebc | 2014-11-06 10:55:50 | [diff] [blame] | 40 | "views/javascript_app_modal_dialog_views.cc", |
satorux | ea51ccc | 2015-02-16 10:14:24 | [diff] [blame] | 41 | "views/javascript_app_modal_dialog_views.h", |
oshima | 758abebc | 2014-11-06 10:55:50 | [diff] [blame] | 42 | ] |
tfarina | 4a0c59488 | 2015-07-02 14:39:41 | [diff] [blame] | 43 | |
| 44 | deps += [ |
| 45 | "//components/constrained_window", |
| 46 | "//ui/views", |
| 47 | ] |
oshima | 758abebc | 2014-11-06 10:55:50 | [diff] [blame] | 48 | } |
oshima | 82f7248 | 2014-10-24 14:14:32 | [diff] [blame] | 49 | } |