Commit 2140e36d authored by Luciano Pacheco's avatar Luciano Pacheco Committed by Chromium LUCI CQ

Files app: Generate JS module for //u/f/f/c/j/progress_center_common.js

This is the last file for //ui/file_manager/file_manager/common/js/.

Remove unused `ProgressCenterEvent`.

Sort alphabetically the js_modulizer() input_files.

Bug: 1133186
Change-Id: I4478aca92889231801a97f265f0d5c28828e1493
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2589255
Auto-Submit: Luciano Pacheco <lucmult@chromium.org>
Reviewed-by: default avatarJeremie Boulic <jboulic@chromium.org>
Commit-Queue: Jeremie Boulic <jboulic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#836535}
parent 6626b5b9
......@@ -52,6 +52,7 @@ js_type_check("closure_compile_jsmodules") {
":metrics.m",
":metrics_base.m",
":mock_entry.m",
":progress_center_common.m",
":trash.m",
":util.m",
]
......@@ -292,6 +293,12 @@ js_library("mock_entry.m") {
js_library("progress_center_common") {
}
js_library("progress_center_common.m") {
sources = [ "$root_gen_dir/ui/file_manager/file_manager/common/js/progress_center_common.m.js" ]
extra_deps = [ ":modulize" ]
}
js_library("trash") {
deps = [
"//ui/file_manager/base/js:volume_manager_types",
......@@ -421,18 +428,19 @@ js_test_gen_html("js_test_gen_html_modules") {
js_modulizer("modulize") {
input_files = [
"async_util.js",
"file_operation_common.js",
"file_type.js",
"files_app_entry_types.js",
"file_operation_common.js",
"importer_common.js",
"lru_cache.js",
"metrics.js",
"metrics_base.js",
"mock_entry.js",
"util.js",
"trash.js",
"importer_common.js",
"progress_center_common.js",
"test_importer_common.js",
"trash.js",
"unittest_util.js",
"util.js",
]
namespace_rewrites = cr_namespace_rewrites
......
......@@ -2,28 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Event of the ProgressCenter class.
* @const @enum {string}
*/
const ProgressCenterEvent = {
/**
* Background page notifies item update to application windows.
*/
ITEM_UPDATED: 'itemUpdated',
/**
* Background page notifies all the items are cleared.
*/
RESET: 'reset'
};
Object.freeze(ProgressCenterEvent);
/**
* State of progress items.
* @const @enum {string}
*/
const ProgressItemState = {
/* #export */ const ProgressItemState = {
PROGRESSING: 'progressing',
COMPLETED: 'completed',
ERROR: 'error',
......@@ -35,7 +18,7 @@ Object.freeze(ProgressItemState);
* Type of progress items.
* @const @enum {string}
*/
const ProgressItemType = {
/* #export */ const ProgressItemType = {
// The item is file copy operation.
COPY: 'copy',
// The item is file move operation.
......@@ -61,7 +44,7 @@ Object.freeze(ProgressItemType);
/**
* Item of the progress center.
*/
class ProgressCenterItem {
/* #export */ class ProgressCenterItem {
constructor() {
/**
* Item ID.
......
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