code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {dispatchSimpleEvent} from 'chrome://resources/ash/common/cr_deprecated.js';
import {NativeEventTarget as... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/directory_contents.js | JavaScript | unknown | 45,489 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertEquals, assertFalse} from 'chrome://webui-test/chromeos/chai_assert.js';
import {installMockChrome} from '../../common/js/mock_chrome.js';
import {VolumeManagerC... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/directory_contents_unittest.js | JavaScript | unknown | 4,166 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {dispatchSimpleEvent} from 'chrome://resources/ash/common/cr_deprecated.js';
import {NativeEventTarget as... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/directory_model.js | JavaScript | unknown | 58,240 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {MockFileOperationManager} from '../../background/js/mock_file_operation_manager.js... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/directory_model_unittest.js | JavaScript | unknown | 3,140 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {getKeyModifiers} from '../../common/js/dom_utils.js';
import {util} from '../../common/js/util.js';
imp... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/directory_tree_naming_controller.js | JavaScript | unknown | 7,918 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {loadTimeData} from 'chrome://resources/ash/common/load_time_data.m.js';
import {DriveDialogControllerInterface} from '../../externs/drive_dialog_controller.js';
import... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/drive_dialog_controller.js | JavaScript | unknown | 2,438 |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Drop effect names supported as a value of DataTransfer.dropEffect.
* @enum {string}
*/
export const DropEffectType = {
NONE: 'none',
COPY: 'copy',
MOVE: 'move',
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/drop_effect_and_label.js | JavaScript | unknown | 1,055 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/** @return {!Promise<void>} */
export function importElements() {
const startTime = Date.now();
return new Promise((resolve, reject) => {
const script = document.creat... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/elements_importer.js | JavaScript | unknown | 767 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {queryRequiredElement} from '../../common/js/dom_utils.js';
import {str, util} from '../../common/js/uti... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/empty_folder_controller.js | JavaScript | unknown | 5,540 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {createChild} from '../../common/js/dom_utils.js';
import {FakeEntryI... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/empty_folder_controller_unittest.js | JavaScript | unknown | 6,033 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.js';
import {AndroidAppListModel} from './android_app_list_model.js';
/**
* @param... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/fake_android_app_list_model.js | JavaScript | unknown | 1,431 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.js';
import {Store} from '../../externs/ts/store.js';
import {updateDirectoryContent... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/fake_file_selection_handler.js | JavaScript | unknown | 1,671 |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {ArrayDataModel} from '../../common/js/array_data_model.js';
import {FileExtensionType, FileType} from '... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/file_list_model.js | JavaScript | unknown | 21,890 |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertArrayEquals, assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {str} from '../../common/js/util.js';
import {Fil... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/file_list_model_unittest.js | JavaScript | unknown | 16,876 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert, assertInstanceof} from 'chrome://resources/ash/common/assert.js';
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.js'... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/file_manager.js | JavaScript | unknown | 61,392 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'chrome://resources/cr_elements/cr_input/cr_input.js';
import {assert} from 'chrome://resources/ash/common/assert.js';
import {loadTimeData} from 'chrome://resources/as... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/file_manager_commands.js | JavaScript | unknown | 112,220 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertArrayEquals, assertEquals, assertFalse, assertNotEquals, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {MockVolumeManager} from '../../b... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/file_manager_commands_unittest.js | JavaScript | unknown | 13,357 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview This file should contain renaming utility functions used only
* by the files app frontend.
*/
import {assert} from 'chrome://resources/ash/common/assert... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/file_rename.js | JavaScript | unknown | 7,578 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {dispatchSimpleEvent} from 'chrome://resources/ash/common/cr_deprecated.js';
import {NativeEventTarget as... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/file_selection.js | JavaScript | unknown | 11,710 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview
* This file is checked via TS, so we suppress Closure checks.
* @suppress {checkTypes}
*/
import {assert} from 'chrome://resources/ash/common/assert.js'... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/file_tasks.ts | TypeScript | unknown | 37,449 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {loadTimeData} from 'chrome://resources/ash/common/load_time_data.m.js';
import {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/file_tasks_unittest.ts | TypeScript | unknown | 25,561 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert, assertNotReached} from 'chrome://resources/ash/common/assert.js';
import {getDisallowedTransfers, startIOTask} from '../../common/js/api.js';
import {queryRequ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/file_transfer_controller.js | JavaScript | unknown | 63,523 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'chrome://resources/cr_elements/cr_input/cr_input.js';
import {decorate} from '../../common/js/ui.js';
import {assertEquals, assertFalse, assertTrue} from 'chrome://web... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/file_transfer_controller_unittest.js | JavaScript | unknown | 11,446 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {createChild} from '../../common/js/dom_utils.js';
import {metrics} from '../../common/js/metrics.js';
import {str, strf, util} from '../../common/js/util.js';
import {D... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/file_type_filters_controller.js | JavaScript | unknown | 10,243 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.js';
import {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeo... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/file_type_filters_controller_unittest.js | JavaScript | unknown | 10,112 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.js';
import {AsyncQu... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/file_watcher.js | JavaScript | unknown | 5,243 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.js';
import {getPreferences} from '../../common/js/api.js';
import {AsyncQueue, Grou... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/folder_shortcuts_data_model.js | JavaScript | unknown | 17,655 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {getDriveQuotaMetadata, getSizeStats} from '../../common/js/api.js';
import {str, strf, util} from '../../common/js/util.js';
import {VolumeManagerCommon} from '../../co... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/gear_menu_controller.js | JavaScript | unknown | 5,125 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {listMountableGuests} from '../../common/js/api.js';
import {GuestOsPlaceholder} from '../../common/js/files_app_entry_types.js';
import {util} from '../../common/js/uti... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/guest_os_controller.js | JavaScript | unknown | 3,854 |
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {loadTimeData} from 'chrome://resources/ash/common/load_time_data.m.js';
import {assertDeepEquals, assertTrue} from 'chrome://webui-test/chai_assert.js';
import {instal... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/guest_os_controller_unittest.ts | TypeScript | unknown | 3,411 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Utility methods for the holding space feature.
*/
import {metrics} from '../../common/js/metrics.js';
import {storage} from '../../common/js/storage.js';... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/holding_space_util.js | JavaScript | unknown | 4,609 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {util} from '../../common/js/util.js';
import {DirectoryModel} from './directory_model.js';
import {FileTable} from './ui/file_table.js';
/**
* Controls last modified... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/last_modified_controller.js | JavaScript | unknown | 1,350 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {DialogType} from '../../common/js/dialog_type.js';
import {FilesAppState} from '../../common/js/files_app_state.js';
import {AllowedPaths} from '../../common/js/volume_... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/launch_param.js | JavaScript | unknown | 1,901 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.js';
import {LRUCach... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/list_thumbnail_loader.js | JavaScript | unknown | 14,548 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.js';
import {assertEq... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/list_thumbnail_loader_unittest.js | JavaScript | unknown | 14,739 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Start point for Files app.
*/
import '../../common/js/error_counter.js';
import './metrics_start.js';
import {startColorChangeUpdater} from 'chrome://re... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/main.js | JavaScript | unknown | 709 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertInstanceof} from 'chrome://resources/ash/common/assert.js';
import {DialogType, isFolderDialogType} from '../../common/js/dialog_type.js';
import {getKeyModifier... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/main_window_component.js | JavaScript | unknown | 19,003 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/** @final */
export class ByteReader {
/**
* @param {ArrayBuffer} arrayBuffer An array of buffers to be read from.
* @param {number=} opt_offset Offset to read bytes a... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/byte_reader.js | JavaScript | unknown | 15,184 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {ImageLoaderClient} from 'chrome-extension://pmfjbimdmchhbnneeidfognadeopoehp/image_loader_client.js';
import {LoadImageRequest, LoadImageResponseStatus} from 'chrome-ex... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/content_metadata_provider.js | JavaScript | unknown | 17,022 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertEquals} from 'chrome://webui-test/chromeos/chai_assert.js';
import {reportPromise} from '../../../common/js/test_error_reporting.js';
import {ContentMetadataPro... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/content_metadata_provider_unittest.js | JavaScript | unknown | 4,810 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {getDlpMetadata} from '../../../common/js/api.js';
import {util} from '../../../common/js/util.js';
import {MetadataItem} from './metadata_item.js';
import {MetadataPro... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/dlp_metadata_provider.js | JavaScript | unknown | 2,236 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {loadTimeData} from 'chrome://resources/ash/common/load_time_data.m.js';
import {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chai_assert.js';
impor... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/dlp_metadata_provider_unittest.ts | TypeScript | unknown | 3,076 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
const Exif = {};
/**
* Exif marks.
* @enum {number}
*/
Exif.Mark = {
// Start of "stream" (the actual image data).
SOS: 0xffda,
// Start of "frame".
SOF: 0xffc0,
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/exif_constants.js | JavaScript | unknown | 1,228 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {ExifEntry} from '../../../externs/exif_entry.js';
import {MetadataParserLogger} from '../../../externs/metadata_worker_window.js';
import {ByteReader} from './byte_rea... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/exif_parser.js | JavaScript | unknown | 14,708 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertEquals, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {ExifEntry} from '../../../externs/exif_entry.js';
import {MetadataParserLogger} f... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/exif_parser_unittest.js | JavaScript | unknown | 7,501 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {MetadataItem} from './metadata_item.js';
import {MetadataProvider} from './metadata_provider.js';
impor... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/external_metadata_provider.js | JavaScript | unknown | 4,469 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertEquals} from 'chrome://webui-test/chromeos/chai_assert.js';
import {installMockChrome} from '../../../common/js/mock_chrome.js';
import {reportPromise} from '../... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/external_metadata_provider_unittest.js | JavaScript | unknown | 2,997 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {MetadataItem} from './metadata_item.js';
import {MetadataProvider} from './metadata_provider.js';
/**
* Metadata provider for FileEntry#getMetadata.
* @final
*/
exp... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/file_system_metadata_provider.js | JavaScript | unknown | 1,671 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertEquals, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {reportPromise} from '../../../common/js/test_error_reporting.js';
import {FileSy... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/file_system_metadata_provider_unittest.js | JavaScript | unknown | 2,576 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {MetadataParser} from './metadata_parser.js';
/**
* @class FunctionParallel to invoke steps in parallel.
*/
export class FunctionParallel {
/**
* @param {string}... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/function_parallel.js | JavaScript | unknown | 2,471 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {MetadataParser} from './metadata_parser.js';
/**
* @class FunctionSequence to invoke steps in sequence.
*/
export class FunctionSequence {
/**
* @param {string}... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/function_sequence.js | JavaScript | unknown | 3,903 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {MetadataParserLogger} from '../../../externs/metadata_worker_window.js';
import {ByteReader} from './byte_reader.js';
import {FunctionParallel} from './function_parall... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/id3_parser.js | JavaScript | unknown | 18,555 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {MetadataParserLogger} from '../../../externs/metadata_worker_window.js';
import {ByteReader} from './byte_reader.js';
import {ImageParser, MetadataParser} from './meta... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/image_parsers.js | JavaScript | unknown | 6,487 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {MetadataItem} from './metadata_item.js';
/**
* Cache of metadata for a FileEntry.
*/
export class Me... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/metadata_cache_item.js | JavaScript | unknown | 5,998 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertEquals, assertFalse, assertThrows, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {MetadataCacheItem} from './metadata_cache_item.js';
im... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/metadata_cache_item_unittest.js | JavaScript | unknown | 4,849 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.js';
import {util} from '../../../common/js/util.js';
import {MetadataCacheItem} fr... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/metadata_cache_set.js | JavaScript | unknown | 6,631 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertDeepEquals, assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {MetadataCacheSet} from './metadata_cache_set.js';
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/metadata_cache_set_unittest.js | JavaScript | unknown | 6,690 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {MetadataParserLogger} from '../../../externs/metadata_worker_window.js';
import {ExifParser} from './exif_parser.js';
import {Id3Parser} from './id3_parser.js';
import... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/metadata_dispatcher.js | JavaScript | unknown | 6,169 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @typedef {{
* scaleX: number,
* scaleY: number,
* rotate90: number
* }}
*/
let ImageTransformation;
/**
* Metadata of a file.
* @unrestricted to allow access ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/metadata_item.js | JavaScript | unknown | 5,636 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {util} from '../../../common/js/util.js';
import {VolumeManager} from '../../../externs/volume_manager.js';
import {getStore} from '../../../state/store.js';
import {Co... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/metadata_model.js | JavaScript | unknown | 9,753 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertEquals, assertThrows} from 'chrome://webui-test/chromeos/chai_assert.js';
import {reportPromise} from '../../../common/js/test_error_reporting.js';
import {Meta... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/metadata_model_unittest.js | JavaScript | unknown | 8,978 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {MetadataParserLogger} from '../../../externs/metadata_worker_window.js';
import {ByteReader} from './byte_reader.js';
/**
* @implements {MetadataParserLogger}
*/
ex... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/metadata_parser.js | JavaScript | unknown | 2,762 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {MetadataItem} from './metadata_item.js';
import {MetadataRequest} from './metadata_request.js';
/**
*... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/metadata_provider.js | JavaScript | unknown | 1,385 |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
export class MetadataRequest {
/**
* @param {!Entry} entry Entry
* @param {!Array<string>} names Property name list to be requested.
*/
constructor(entry, names) {... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/metadata_request.js | JavaScript | unknown | 492 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {MetadataModel} from './metadata_model.js';
/**
* Returns a mock of metadata model.
*
* @extends {MetadataModel}
* @final
*/
export class MockMetadataModel {
/**... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/mock_metadata.js | JavaScript | unknown | 1,217 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {MetadataParserLogger} from '../../../externs/metadata_worker_window.js';
import {ByteReader} from './byte_reader.js';
import {MetadataParser} from './metadata_parser.j... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/mpeg_parser.js | JavaScript | unknown | 9,830 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {util} from '../../../common/js/util.js';
import {VolumeManagerCommon} from '../../../common/js/volume_m... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/multi_metadata_provider.js | JavaScript | unknown | 9,244 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertArrayEquals, assertEquals, assertNotReached, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {reportPromise} from '../../../common/js/test... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/multi_metadata_provider_unittest.js | JavaScript | unknown | 10,376 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {FileType} from '../../../common/js/file_type.js';
import {MetadataModel} from './metadata_model.js';
/**
* Metadata containing thumbnail information.
* @typedef {Ob... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/thumbnail_model.js | JavaScript | unknown | 4,121 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {reportPromise} from '../../../common/js/test_error_reporting.js';
i... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata/thumbnail_model_unittest.js | JavaScript | unknown | 3,940 |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {FileType} from '../../common/js/file_type.js';
import {TrashEntry} from '../../common/js/trash.js';
imp... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata_box_controller.js | JavaScript | unknown | 10,640 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {util} from '../../common/js/util.js';
import {Store} from '../../externs/ts/store.js';
import {updateMetadata} from '../../state/actions/all_entries.js';
import {getSto... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metadata_update_controller.js | JavaScript | unknown | 4,846 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Metrics calls to start measurement of script loading. Include
* this as the first script in main.html (i.e. after the common scripts that
* define the m... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/metrics_start.js | JavaScript | unknown | 472 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {dispatchSimpleEvent} from 'chrome://resources/ash/common/cr_deprecated.js';
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.j... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/mock_actions_model.js | JavaScript | unknown | 1,046 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.js';
import {VolumeManagerCommon} from '../../common/js/volume_manager_types.js';
im... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/mock_directory_model.js | JavaScript | unknown | 2,687 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {ArrayDataModel} from '../../common/js/array_data_model.js';
import {MockEntry} from '../../common/js/mock_entry.js';
import {FolderShortcutsDataModel} from './folder_s... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/mock_folder_shortcut_data_model.js | JavaScript | unknown | 1,103 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.js';
import {VolumeManager} from '../../externs/volume_manager.js';
import {Navigat... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/mock_navigation_list_model.js | JavaScript | unknown | 2,032 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {ThumbnailLoader} from './thumbnail_loader.js';
/**
* Mock thumbnail loader.
*/
export class MockThumbnailLoader {
/**
* @param {Entry} entry An entry.
* @par... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/mock_thumbnail_loader.js | JavaScript | unknown | 1,639 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {getFile} from '../../common/js/api.js';
import {getKeyModifiers} from '../../common/js/dom_utils.js';
i... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/naming_controller.js | JavaScript | unknown | 11,692 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertNotReached} from 'chrome://resources/ash/common/assert.js';
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.js';
impor... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/navigation_list_model.js | JavaScript | unknown | 31,222 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {loadTimeData} from 'chrome://resources/ash/common/load_time_data.m.js';
import {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/navigation_list_model_unittest.js | JavaScript | unknown | 27,247 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {metrics} from '../../common/js/metrics.js';
import {VolumeManagerCommon} from '../../common/js/volume_manager_types.js';
import {VolumeManager} from '../../externs/volu... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/navigation_uma.js | JavaScript | unknown | 1,269 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {str, util} from '../../common/js/util.js';
import {VolumeManagerCommon} from '../../common/js/volume_manager_types.js';
import {FakeEntry, FilesAppEntry} from '../../ex... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/path_component.js | JavaScript | unknown | 6,569 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertEquals} from 'chrome://webui-test/chromeos/chai_assert.js';
import {MockVolumeManager} from '../../background/js/mock_volume_manager.js';
import {MockFileSystem}... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/path_component_unittest.js | JavaScript | unknown | 5,214 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {VolumeManagerCommon} from '../../common/js/volume_manager_types.js';
import {VolumeManager} from '../..... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/providers_model.js | JavaScript | unknown | 4,204 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertEquals} from 'chrome://webui-test/chromeos/chai_assert.js';
import {MockVolumeManager} from '../../background/js/mock_volume_manager.js';
import {VolumeInfoImpl}... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/providers_model_unittest.js | JavaScript | unknown | 8,317 |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {ImageLoaderClient} from 'chrome-extension://pmfjbimdmchhbnneeidfognadeopoehp/image_loader_client.js';
import {LoadImageRequest, LoadImageResponse, LoadImageResponseStat... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/quick_view_controller.js | JavaScript | unknown | 24,252 |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {dispatchSimpleEvent} from 'chrome://resources/ash/common/cr_deprecated.js';
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.j... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/quick_view_model.js | JavaScript | unknown | 1,069 |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {DialogType} from '../../common/js/dialog_type.js';
import {FileType} from '../../common/js/file_type.js... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/quick_view_uma.js | JavaScript | unknown | 4,250 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {metrics} from '../../common/js/metrics.js';
import {util} from '../../common/js/util.js';
import {VolumeManagerCommon} from '../../common/js/volume_manager_types.js';
i... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/scan_controller.js | JavaScript | unknown | 7,342 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {str, strf, util} from '../../common/js/util.js';
import {VolumeManagerCommon} from '../../common/js/volume_manager_types.js';
import {SEARCH_ITEM_CHANGED, SEARCH_QUERY_... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/search_controller.js | JavaScript | unknown | 10,577 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {queryRequiredElement} from '../../common/js/dom_utils.js';
import {util} from '../../common/js/util.js';
import {FilesTooltip} from '../elements/files_tooltip.js';
imp... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/selection_menu_controller.js | JavaScript | unknown | 1,487 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {queryRequiredElement} from '../../common/js/dom_utils.js';
import {util} from '../../common/js/util.js';
import {FileListModel} from './file_list_model.js';
import {Mu... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/sort_menu_controller.js | JavaScript | unknown | 2,125 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Controller for spinners. Spinner requests can be stacked. Eg. if show()
* is called 3 times, the hide callback has to be called 3 times to make the
* spinner invisible... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/spinner_controller.js | JavaScript | unknown | 2,409 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {reportPromise} fro... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/spinner_controller_unittest.js | JavaScript | unknown | 4,068 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview
* This file is checked via TS, so we suppress Closure checks.
* @suppress {checkTypes}
*/
import {assertInstanceof, assertNotReached} from 'chrome://res... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/task_controller.ts | TypeScript | unknown | 28,429 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chrome://resources/ash/common/assert.js';
import {assertDeepEquals, assertEquals, assertNotReached, assertTrue} from 'chrome://webui-test/chromeos/chai_as... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/task_controller_unittest.ts | TypeScript | unknown | 12,871 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {dispatchSimpleEvent} from 'chrome://resources/ash/common/cr_deprecated.js';
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.j... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/task_history.js | JavaScript | unknown | 3,724 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {ImageLoaderClient} from 'chrome-extension://pmfjbimdmchhbnneeidfognadeopoehp/image_loader_client.js';
import {ImageTransformParam} from 'chrome-extension://pmfjbimdmchh... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/thumbnail_loader.js | JavaScript | unknown | 18,322 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {ImageLoaderClient} from 'chrome-extension://pmfjbimdmchhbnneeidfognadeopoehp/image_loader_client.js';
import {LoadImageRequest} from 'chrome-extension://pmfjbimdmchhbnn... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/thumbnail_loader_unittest.js | JavaScript | unknown | 7,496 |