Commit b6ea87ae authored by oka's avatar oka Committed by Commit bot

Compile Gallery in gyp v2.

BUG=636289
TEST=run_compiler.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2734033004
Cr-Commit-Position: refs/heads/master@{#455667}
parent c88cfa0f
......@@ -28,7 +28,6 @@
'../../chrome/browser/resources/ntp4/compiled_resources.gyp:*',
# '../../remoting/remoting_webapp_compile.gypi:*',
'../../ui/file_manager/file_manager/foreground/js/compiled_resources.gyp:*',
'../../ui/file_manager/gallery/js/compiled_resources.gyp:*',
],
},
]
......
......@@ -167,10 +167,21 @@
# 'target_name': 'search_controller',
# 'includes': ['../../../compile_js2.gypi'],
# },
# {
# 'target_name': 'share_client',
# 'includes': ['../../../compile_js2.gypi'],
# },
{
'target_name': 'share_client',
'dependencies': [
'../../../externs/compiled_resources2.gyp:entry_location',
'../../../externs/compiled_resources2.gyp:gallery_foreground',
'../../../externs/compiled_resources2.gyp:volume_info',
'../../../externs/compiled_resources2.gyp:volume_info_list',
'../../../externs/compiled_resources2.gyp:volume_manager',
'../../../externs/compiled_resources2.gyp:webview_tag',
'../../common/js/compiled_resources2.gyp:volume_manager_common',
'<(DEPTH)/ui/webui/resources/js/cr/compiled_resources2.gyp:event_target',
'<(EXTERNS_GYP):chrome_extensions',
],
'includes': ['../../../compile_js2.gypi'],
},
# {
# 'target_name': 'sort_menu_controller',
# 'includes': ['../../../compile_js2.gypi'],
......
......@@ -879,9 +879,6 @@ FileManager.prototype = /** @struct */ {
var dom = this.dialogDom_;
assert(dom);
// Initialize the dialog.
FileManagerDialogBase.setFileManager(this);
var table = queryRequiredElement('.detail-table', dom);
FileTable.decorate(
table,
......
......@@ -51,10 +51,16 @@
# 'target_name': 'file_list_selection_model',
# 'includes': ['../../../../compile_js2.gypi'],
# },
# {
# 'target_name': 'file_manager_dialog_base',
# 'includes': ['../../../../compile_js2.gypi'],
# },
{
'target_name': 'file_manager_dialog_base',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'<(DEPTH)/ui/webui/resources/js/cr/compiled_resources2.gyp:ui',
'<(DEPTH)/ui/webui/resources/js/cr/ui/compiled_resources2.gyp:dialogs',
'<(EXTERNS_GYP):chrome_extensions',
],
'includes': ['../../../../compile_js2.gypi'],
},
# {
# 'target_name': 'file_manager_ui',
# 'includes': ['../../../../compile_js2.gypi'],
......@@ -78,10 +84,15 @@
],
'includes': ['../../../../compile_js2.gypi'],
},
# {
# 'target_name': 'files_confirm_dialog',
# 'includes': ['../../../../compile_js2.gypi'],
# },
{
'target_name': 'files_confirm_dialog',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'<(DEPTH)/ui/webui/resources/js/cr/compiled_resources2.gyp:ui',
'<(DEPTH)/ui/webui/resources/js/cr/ui/compiled_resources2.gyp:dialogs',
],
'includes': ['../../../../compile_js2.gypi'],
},
# {
# 'target_name': 'files_menu',
# 'includes': ['../../../../compile_js2.gypi'],
......@@ -118,10 +129,17 @@
# 'target_name': 'search_box',
# 'includes': ['../../../../compile_js2.gypi'],
# },
# {
# 'target_name': 'share_dialog',
# 'includes': ['../../../../compile_js2.gypi'],
# },
{
'target_name': 'share_dialog',
'dependencies': [
'../../../common/js/compiled_resources2.gyp:async_util',
'../../../common/js/compiled_resources2.gyp:util',
'../compiled_resources2.gyp:share_client',
'<(EXTERNS_GYP):file_manager_private',
'file_manager_dialog_base',
],
'includes': ['../../../../compile_js2.gypi'],
},
# {
# 'target_name': 'suggest_apps_dialog',
# 'includes': ['../../../../compile_js2.gypi'],
......
......@@ -17,23 +17,6 @@ FileManagerDialogBase.prototype = {
__proto__: cr.ui.dialogs.BaseDialog.prototype
};
/**
* The FileManager object. This is used to notify events of showing or hiding
* dialog to file manager.
*
* @type {FileManager}
* @private
*/
FileManagerDialogBase.fileManager_ = null;
/**
* Setter of FileManagerDialogBase.fileManager_.
* @param {FileManager} fileManager The fileManager object.
*/
FileManagerDialogBase.setFileManager = function(fileManager) {
FileManagerDialogBase.fileManager_ = fileManager;
};
/**
* The flag if any dialog is shown. True if a dialog is visible, false
* otherwise.
......
This diff is collapsed.
# Copyright 2016 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.
# TODO(oka): Compile all the targets.
{
'targets': [
# {
# 'target_name': 'background',
# 'includes': ['../../compile_js2.gypi'],
# },
{
'target_name': 'background',
'dependencies': [
'../../file_manager/background/js/compiled_resources2.gyp:app_window_wrapper',
'../../file_manager/background/js/compiled_resources2.gyp:background_base',
'../../file_manager/common/js/compiled_resources2.gyp:util',
],
'includes': ['../../compile_js2.gypi'],
},
{
'target_name': 'dimmable_ui_controller',
'dependencies': [
......@@ -35,10 +39,22 @@
],
'includes': ['../../compile_js2.gypi'],
},
# {
# 'target_name': 'gallery',
# 'includes': ['../../compile_js2.gypi'],
# },
{
'target_name': 'gallery',
'dependencies': [
'../../externs/compiled_resources2.gyp:volume_manager',
'../../file_manager/common/js/compiled_resources2.gyp:util',
'../../file_manager/foreground/js/compiled_resources2.gyp:volume_manager_wrapper',
'../../file_manager/foreground/js/ui/compiled_resources2.gyp:files_confirm_dialog',
'../../file_manager/foreground/js/ui/compiled_resources2.gyp:share_dialog',
'../../gallery/js/compiled_resources2.gyp:slide_mode',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:i18n_template_no_process',
'gallery_constants',
'gallery_item',
'thumbnail_mode',
],
'includes': ['../../compile_js2.gypi'],
},
{
'target_name': 'gallery_constants',
'includes': ['../../compile_js2.gypi'],
......@@ -68,10 +84,6 @@
],
'includes': ['../../compile_js2.gypi'],
},
# {
# 'target_name': 'gallery_scripts',
# 'includes': ['../../compile_js2.gypi'],
# },
{
'target_name': 'gallery_util',
'dependencies': [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment