diff options
Diffstat (limited to 'chromium/components/chrome_apps/webstore_widget/cws_widget')
-rw-r--r-- | chromium/components/chrome_apps/webstore_widget/cws_widget/BUILD.gn | 50 | ||||
-rw-r--r-- | chromium/components/chrome_apps/webstore_widget/cws_widget/compiled_resources2.gyp | 47 |
2 files changed, 50 insertions, 47 deletions
diff --git a/chromium/components/chrome_apps/webstore_widget/cws_widget/BUILD.gn b/chromium/components/chrome_apps/webstore_widget/cws_widget/BUILD.gn new file mode 100644 index 00000000000..e8518784a1a --- /dev/null +++ b/chromium/components/chrome_apps/webstore_widget/cws_widget/BUILD.gn @@ -0,0 +1,50 @@ +# Copyright 2018 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("//third_party/closure_compiler/compile_js.gni") + +js_type_check("closure_compile") { + deps = [ + ":app_installer", + ":cws_webview_client", + ":cws_widget_container", + ":cws_widget_container_error_dialog", + ":cws_widget_container_platform_delegate", + ] +} + +js_library("app_installer") { + deps = [ + ":cws_widget_container_platform_delegate", + ] +} + +js_library("cws_widget_container") { + deps = [ + ":app_installer", + ":cws_webview_client", + ":cws_widget_container_error_dialog", + ] +} + +js_library("cws_widget_container_error_dialog") { + deps = [ + "//ui/webui/resources/js/cr/ui:dialogs", + ] +} + +js_library("cws_widget_container_platform_delegate") { +} + +js_library("cws_webview_client") { + deps = [ + ":cws_widget_container_platform_delegate", + "//ui/webui/resources/js:cr", + "//ui/webui/resources/js/cr:event_target", + ] + externs_list = [ + "$externs_path/chrome_extensions.js", + "../externs/webview_tag.js", + ] +} diff --git a/chromium/components/chrome_apps/webstore_widget/cws_widget/compiled_resources2.gyp b/chromium/components/chrome_apps/webstore_widget/cws_widget/compiled_resources2.gyp deleted file mode 100644 index b379ef8bb82..00000000000 --- a/chromium/components/chrome_apps/webstore_widget/cws_widget/compiled_resources2.gyp +++ /dev/null @@ -1,47 +0,0 @@ -# copyright 2017 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. - -{ - 'targets': [ - { - 'target_name': 'app_installer', - 'dependencies': [ - 'cws_widget_container_platform_delegate', - ], - 'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'], - }, - { - 'target_name': 'cws_widget_container', - 'dependencies': [ - 'app_installer', - 'cws_webview_client', - 'cws_widget_container_error_dialog', - ], - 'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'], - }, - { - 'target_name': 'cws_widget_container_error_dialog', - 'dependencies': [ - '<(DEPTH)/ui/webui/resources/js/cr/ui/compiled_resources2.gyp:dialogs', - ], - 'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'], - }, - { - 'target_name': 'cws_widget_container_platform_delegate', - 'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'], - }, - { - 'target_name': 'cws_webview_client', - 'dependencies': [ - '../externs/compiled_resources2.gyp:webview_tag', - '<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr', - '<(DEPTH)/ui/webui/resources/js/cr/compiled_resources2.gyp:event_target', - '<(EXTERNS_GYP):chrome_extensions', - 'cws_widget_container_platform_delegate', - ], - 'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'], - }, - ], -} - |