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 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 {assert} from 'chrome://resources/ash/common/assert.js'; import {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js'; import {quer...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/foreground/js/ui/multi_menu_unittest.js
JavaScript
unknown
16,772
// 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. /** * @fileoverview This file provides utility functions for position popups. */ /** * Type def for rects as returned by getBoundingClientRect. * @typedef {{left: nu...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/foreground/js/ui/position_util.js
JavaScript
unknown
7,850
// 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. // clang-format off import {AnchorType, positionPopupAroundElement, positionPopupAtPoint} from './position_util.js'; import {assertEquals} from 'chrome://webui-test/chromeos/c...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/foreground/js/ui/position_util_unittest.js
JavaScript
unknown
8,295
// 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 {assertNotReached} from 'chrome://resources/ash/common/assert.js'; import {ProgressCenterItem, ProgressItemState, ProgressItemType} from '../../../common/js/progress_ce...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/foreground/js/ui/progress_center_panel.js
JavaScript
unknown
18,905
// 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 {decorate} from '../../../common/js/ui.js'; import {Menu} from './menu.js'; import {util} from '../../.....
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/foreground/js/ui/providers_menu.js
JavaScript
unknown
2,641
// 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 {htmlEscape} from '../../../common/js/dom_utils.js'; import {FileType} from '../../../common/js/file_type.js'; import {strf} from '../../../common/js/util.js'; import {...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/foreground/js/ui/search_autocomplete_list.ts
TypeScript
unknown
3,325
// 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. /** * @fileoverview This implements a splitter element which can be used to resize * elements in split panes. * * The parent of the splitter should be an hbox (display: -we...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/foreground/js/ui/splitter.js
JavaScript
unknown
7,000
// 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. // clang-format off import {decorate} from '../../../common/js/ui.js'; import {getRequiredElement} from 'chrome://resources/ash/common/util.js'; import {assertEquals, assertFal...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/foreground/js/ui/splitter_unittest.js
JavaScript
unknown
2,963
// 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. /** * @fileoverview This implements a table control. */ import {dispatchSimpleEvent, getPropertyDescriptor, PropertyKind} from 'chrome://resources/ash/common/cr_deprecated.j...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/foreground/js/ui/table/table.js
JavaScript
unknown
13,294
// 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. /** * @fileoverview This is a table column representation */ import {dispatchPropertyChange, getPropertyDescriptor} from 'chrome://resources/ash/common/cr_deprecated.js'; im...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/foreground/js/ui/table/table_column.js
JavaScript
unknown
4,180
// 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. /** * @fileoverview This is a table column model */ import {dispatchSimpleEvent} from 'chrome://resources/ash/common/cr_deprecated.js'; import {NativeEventTarget as EventTar...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/foreground/js/ui/table/table_column_model.js
JavaScript
unknown
5,920
// 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. /** * @fileoverview This implements a table header. */ import {dispatchSimpleEvent, getPropertyDescriptor} from 'chrome://resources/ash/common/cr_deprecated.js'; import {Ta...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/foreground/js/ui/table/table_header.js
JavaScript
unknown
7,534
// 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. /** * @fileoverview This extends List for use in the table. */ import {getPropertyDescriptor} from 'chrome://resources/ash/common/cr_deprecated.js'; import {List} from '../...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/foreground/js/ui/table/table_list.js
JavaScript
unknown
5,441
// 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. /** * @fileoverview This implements a splitter element which can be used to resize * table columns. * * Each splitter is associated with certain column and resizes it when ...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/foreground/js/ui/table/table_splitter.js
JavaScript
unknown
3,279
// 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. // clang-format off import {assert, assertInstanceof} from 'chrome://resources/ash/common/assert.js'; import {dispatchSimpleEvent, getPropertyDescriptor, PropertyKind} from 'ch...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/foreground/js/ui/tree.js
JavaScript
unknown
20,133
// 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 {BaseAction} from './base_store.js'; /** * ActionsProducer is a generator function that yields and/or returns Actions. * * It's a function that return a AsyncGenerat...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/lib/actions_producer.ts
TypeScript
unknown
2,047
// 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, assertNotReached, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js'; import {waitUntil} from '../common/js/test_error_reporting.js'; import ...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/lib/actions_producer_unittest.ts
TypeScript
unknown
4,887
// 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 {ActionsProducerGen, ConcurrentActionInvalidatedError, isActionsProducer} from './actions_producer.js'; /** * The base interface for actions. * The application should...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/lib/base_store.ts
TypeScript
unknown
6,335
// 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} from 'chrome://webui-test/chromeos/chai_assert.js'; import {waitUntil} from '../common/js/test_error_reporting.js'; import {ActionsProducerGen} from './...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/lib/base_store_unittest.ts
TypeScript
unknown
9,019
// 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 {ActionsProducer, ActionsProducerGen, ConcurrentActionInvalidatedError} from './actions_producer.js'; import {BaseAction} from './base_store.js'; /** * Wraps the Actio...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/lib/concurrency_models.ts
TypeScript
unknown
3,445
// 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 {ActionsProducerGen} from './actions_producer.js'; import {BaseAction, BaseStore} from './base_store.js'; export type TestStore = BaseStore<TestState, any>; /** Async ...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/lib/for_tests.ts
TypeScript
unknown
1,642
<!DOCTYPE HTML> <!-- 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. --> <html dir="$i18n{textdirection}" lang="$i18n{language}"> <head> <title>$i18n{FILEMANAGER_APP_NAME}</title> <meta name="google" value="notranslate"> ...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/main.html
HTML
unknown
27,640
// 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 {AddChildEntriesAction, ClearStaleCachedEntriesAction, UpdateMetadataAction} from './actions/all_entries.js'; import {AddAndroidAppsAction} from './actions/android_apps....
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/actions.ts
TypeScript
unknown
2,777
// 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 {FilesAppEntry} from '../../externs/files_app_entry_interfaces.js'; import {MetadataItem} from '../../foreground/js/metadata/metadata_item.js'; import {BaseAction} from ...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/actions/all_entries.ts
TypeScript
unknown
1,653
// 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 {BaseAction} from '../../lib/base_store.js'; import {ActionType} from '../actions.js'; /** * Actions for Android apps. * * Android App is something we get from priva...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/actions/android_apps.ts
TypeScript
unknown
907
// 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 {BaseAction} from '../../lib/base_store.js'; import {ActionType} from '../actions.js'; /** * Actions for Bulk Pinning. * * BulkPinProgress is the current state of fi...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/actions/bulk_pinning.ts
TypeScript
unknown
1,123
// 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 {FilesAppDirEntry, FilesAppEntry} from '../../externs/files_app_entry_interfaces.js'; import {FileTasks, PropStatus} from '../../externs/ts/state.js'; import {BaseAction...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/actions/current_directory.ts
TypeScript
unknown
2,472
// 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 {FileKey} from '../../externs/ts/state.js'; import {BaseAction} from '../../lib/base_store.js'; import {ActionType} from '../actions.js'; /** * Actions for Folder shor...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/actions/folder_shortcuts.ts
TypeScript
unknown
2,008
// 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 {BaseAction} from '../../lib/base_store.js'; import {ActionType} from '../actions.js'; import {FileKey} from '../file_key.js'; /** Action to refresh all navigation roo...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/actions/navigation.ts
TypeScript
unknown
1,324
// 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 {BaseAction} from '../../lib/base_store.js'; import {ActionType} from '../actions.js'; /** * Actions for Chrome Preferences. * * Chrome preferences store user data t...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/actions/preferences.ts
TypeScript
unknown
990
// 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 {SearchData} from '../../externs/ts/state.js'; import {BaseAction} from '../../lib/base_store.js'; import {ActionType} from '../actions.js'; /** Action to update the s...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/actions/search.ts
TypeScript
unknown
1,022
// 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 {FakeEntryImpl} from '../../common/js/files_app_entry_types.js'; import {FileKey} from '../../externs/ts/state.js'; import {BaseAction} from '../../lib/base_store.js'; i...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/actions/ui_entries.ts
TypeScript
unknown
1,391
// 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 {VolumeId} from '../../externs/ts/state.js'; import {VolumeInfo} from '../../externs/volume_info.js'; import {BaseAction} from '../../lib/base_store.js'; import {ActionT...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/actions/volumes.ts
TypeScript
unknown
1,307
// 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 {DialogType} from '../../common/js/dialog_type.js'; import {isDriveRootEntryList, isFakeEntryInDrives, isGrandRootEntryInDrives, sortEntries} from '../../common/js/entry...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/actions_producers/all_entries.ts
TypeScript
unknown
6,036
// 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 {EntryList, FakeEntryImpl, VolumeEntry} from '../../common/js/files_app_entry_types.js'; import {metrics} from '../../common/js/metrics.js'; import {MockFileSystem} from...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/actions_producers/all_entries_unittest.ts
TypeScript
unknown
9,108
// 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 {getFileTasks} from '../../common/js/api.js'; import {DialogType} from '../../common/js/dialog_type.js'; import {getNativeEntry} from '../../common/js/entry_utils.js'; i...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/actions_producers/current_directory.ts
TypeScript
unknown
4,620
// 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. /** * Key to identify a file/entry. * * Type to distinguish it from a regular string. */ export type FileKey = string;
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/file_key.ts
TypeScript
unknown
267
// 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 {assertDeepEquals} from 'chrome://webui-test/chromeos/chai_assert.js'; import {MockVolumeManager} from '../background/js/mock_volume_manager.js'; import {DialogType} fr...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/for_tests.ts
TypeScript
unknown
6,459
// 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 {isVolumeEntry, sortEntries} from '../../common/js/entry_utils.js'; import {FileType} from '../../common/js/file_type.js'; import {EntryList, VolumeEntry} from '../../co...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/all_entries.ts
TypeScript
unknown
25,973
// 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 {assertDeepEquals, assertEquals, assertFalse, assertNotEquals, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js'; import {MockVolumeManager} from '../../ba...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/all_entries_unittest.ts
TypeScript
unknown
17,708
// 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. /** * @fileoverview Reducer for android apps. * * This file is checked via TS, so we suppress Closure checks. * @suppress {checkTypes} */ import {State} from '../../exter...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/android_apps.ts
TypeScript
unknown
741
// 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 {State} from '../../externs/ts/state.js'; import {addAndroidApps} from '../actions/android_apps.js'; import {setupStore, waitDeepEquals} from '../for_tests.js'; /** Tes...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/android_apps_unittest.ts
TypeScript
unknown
1,225
// 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. /** * @fileoverview Reducer for bulk pinning. * * This file is checked via TS, so we suppress Closure checks. * @suppress {checkTypes} */ import {State} from '../../exter...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/bulk_pinning.ts
TypeScript
unknown
611
// 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 {assertDeepEquals} from 'chrome://webui-test/chromeos/chai_assert.js'; import {updateBulkPinProgress} from '../actions/bulk_pinning.js'; import {setupStore} from '../fo...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/bulk_pinning_unittest.ts
TypeScript
unknown
1,512
// 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 {CurrentDirectory, DirectoryContent, FileKey, FileTasks, PropStatus, Selection, State} from '../../externs/ts/state.js'; import {PathComponent} from '../../foreground/js...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/current_directory.ts
TypeScript
unknown
7,930
// 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, assertTrue} from 'chrome://webui-test/chai_assert.js'; import {MockFileSystem} from '../../common/js/mock_entry.js'; import {VolumeManagerCommon} from '....
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/current_directory_unittest.ts
TypeScript
unknown
12,707
// 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 {util} from '../../common/js/util.js'; import {State} from '../../externs/ts/state.js'; import {AddFolderShortcutAction, RefreshFolderShortcutAction, RemoveFolderShortcu...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/folder_shortcuts.ts
TypeScript
unknown
2,071
// 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 {MockFileSystem} from '../../common/js/mock_entry.js'; import {State} from '../../externs/ts/state.js'; import {addFolderShortcut, refreshFolderShortcut, removeFolderSho...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/folder_shortcuts_unittest.ts
TypeScript
unknown
6,319
// 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 {EntryList, VolumeEntry} from '../../common/js/files_app_entry_types.js'; import {VolumeManagerCommon} from '../../common/js/volume_manager_types.js'; import {FilesAppEn...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/navigation.ts
TypeScript
unknown
8,313
// 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 {MockVolumeManager} from '../../background/js/mock_volume_manager.js'; import {EntryList, FakeEntryImpl, VolumeEntry} from '../../common/js/files_app_entry_types.js'; im...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/navigation_unittest.ts
TypeScript
unknown
23,803
// 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. /** * @fileoverview Reducer for preferences. * * This file is checked via TS, so we suppress Closure checks. * @suppress {checkTypes} */ import {State} from '../../extern...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/preferences.ts
TypeScript
unknown
3,617
// 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 {assertDeepEquals} from 'chrome://webui-test/chromeos/chai_assert.js'; import {updatePreferences} from '../actions/preferences.js'; import {setupStore} from '../for_tes...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/preferences_unittest.ts
TypeScript
unknown
3,199
// 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 {State} from '../../externs/ts/state.js'; import {Action, ActionType} from '../actions.js'; import {addChildEntries, cacheEntries, clearCachedEntries, updateMetadata} f...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/root.ts
TypeScript
unknown
3,404
// 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 {SearchData, SearchOptions, State} from '../../externs/ts/state.js'; import {SearchAction} from '../actions/search.js'; /** * Helper function that does a deep comparis...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/search.ts
TypeScript
unknown
2,133
// 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 {assertDeepEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js'; import {PropStatus, SearchData, SearchLocation, SearchRecency} from '../...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/search_unittest.ts
TypeScript
unknown
3,334
// 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 {isVolumeEntry, sortEntries} from '../../common/js/entry_utils.js'; import {FakeEntryImpl} from '../../common/js/files_app_entry_types.js'; import {util} from '../../com...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/ui_entries.ts
TypeScript
unknown
3,926
// 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 {assertEquals} from 'chrome://webui-test/chai_assert.js'; import {MockVolumeManager} from '../../background/js/mock_volume_manager.js'; import {FakeEntryImpl, GuestOsPl...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/ui_entries_unittest.ts
TypeScript
unknown
12,050
// 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 {assert} from 'chrome://resources/ash/common/assert.js'; import {EntryList, VolumeEntry} from '../../common/js/files_app_entry_types.js'; import {util} from '../../comm...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/volumes.ts
TypeScript
unknown
5,935
// 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 {MockVolumeManager} from '../../background/js/mock_volume_manager.js'; import {EntryList, FakeEntryImpl, VolumeEntry} from '../../common/js/files_app_entry_types.js'; im...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/reducers/volumes_unittest.ts
TypeScript
unknown
17,443
// 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 {FilesAppEntry} from '../externs/files_app_entry_interfaces.js'; import {FileData, FileKey, SearchLocation, SearchOptions, SearchRecency, State} from '../externs/ts/stat...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/state/store.ts
TypeScript
unknown
3,821
// 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 A base class for all Files app(xf) widgets. * @suppress {checkTypes} closure can't recognize LitElement */ import '../common/js/tslib_shim.js'; import ...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_base.ts
TypeScript
unknown
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 'chrome://resources/cr_elements/cr_action_menu/cr_action_menu.js'; import type {CrActionMenuElement} from 'chrome://resources/cr_elements/cr_action_menu/cr_action_menu.j...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_breadcrumb.ts
TypeScript
unknown
17,183
// 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/js/assert_ts.js'; import {assertEquals, assertFalse, assertGT, assertNotEquals, assertTrue} from 'chrome://webui-test/chromeos/chai_ass...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_breadcrumb_unittest.ts
TypeScript
unknown
23,179
// 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 {CrDialogElement} from 'chrome://resources/cr_elements/cr_dialog/cr_dialog.js'; import {str} from '../common/js/util.js'; import {css, customElement, html, query, XfBa...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_bulk_pinning_dialog.ts
TypeScript
unknown
3,764
// 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 {css, customElement, html, property, query, XfBase} from './xf_base.js'; import type {CrActionMenuElement} from 'chrome://resources/cr_elements/cr_action_menu/cr_action_...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_cloud_panel.ts
TypeScript
unknown
3,317
<!-- 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. --> <style> [hidden] { display: none !important; } cr-dialog::part(dialog) { --cr-dialog-top-container-min-height: 0px; background-color: var(--cros-bg-color-ele...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_conflict_dialog.html
HTML
unknown
3,348
// 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 {CrButtonElement} from 'chrome://resources/cr_elements/cr_button/cr_button.js'; import {CrCheckboxElement} from 'chrome://resources/cr_elements/cr_checkbox/cr_checkbox.j...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_conflict_dialog.ts
TypeScript
unknown
7,578
// 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, assertNotEquals, assertNotReached, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js'; import {waitUntil} from '../common/js/tes...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_conflict_dialog_unittest.ts
TypeScript
unknown
19,813
<style include="cr-shared-style"> [slot='title'] { --cr-primary-text-color: var(--cros-text-color-primary); } [slot='body'] > div { --cr-secondary-text-color: var(--cros-text-color-secondary); margin-bottom: var(--cr-form-field-bottom-spacing); } cr-dialog::part(dialog) { b...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_dlp_restriction_details_dialog.html
HTML
unknown
2,281
// 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 {CrDialogElement} from 'chrome://resources/cr_elements/cr_dialog/cr_dialog.js'; import {str, strf} from '../common/js/util.js'; import {getTemplate} from './xf_dlp_res...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_dlp_restriction_details_dialog.ts
TypeScript
unknown
7,836
// 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 './xf_dlp_restriction_details_dialog.js'; import {CrDialogElement} from 'chrome://resources/cr_elements/cr_dialog/cr_dialog.js'; import {assertEquals, assertFalse, asse...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_dlp_restriction_details_dialog_unittest.ts
TypeScript
unknown
11,030
// 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 {util} from '../common/js/util.js'; import {constants} from '../foreground/js/constants.js'; import {classMap, css, customElement, html, property, PropertyValues, style...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_icon.ts
TypeScript
unknown
11,025
// 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, assertNotEquals, assertTrue} from 'chrome://webui-test/chai_assert.js'; import {waitForElementUpdate} from '../common/js/unittest_util.js'; ...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_icon_unittest.ts
TypeScript
unknown
3,964
<style> #container > * { background-color: var(--cros-nudge-background-color); z-index: 999; } #dot { border-radius: 50%; height: 8px; left: -8px; position: fixed; width: 8px; } #bubble { align-items: center; border-radius: 16px; display: flex; left: -296px; max-width: calc(296px - 2 * 16px); ...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_nudge.html
HTML
unknown
981
// 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 {getTemplate} from './xf_nudge.html.js'; /** * The diameter of the dot that appears beside the anchor. Keep this up to date * with the width of the dot in the `xf_nud...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_nudge.ts
TypeScript
unknown
13,077
// 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 './xf_nudge.js'; import {assertEquals, assertGT, assertLT, assertThrows} from 'chrome://webui-test/chromeos/chai_assert.js'; import {NudgeDirection, XfNudge} from './x...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_nudge_unittest.ts
TypeScript
unknown
4,709
// 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 {addCSSPrefixSelector} from '../common/js/dom_utils.js'; import {css, CSSResultGroup, customElement, html, property, repeat, XfBase} from './xf_base.js'; /** * An ele...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_path_display.ts
TypeScript
unknown
4,617
// 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} from 'chrome://webui-test/chromeos/chai_assert.js'; import {waitForElementUpdate} from '../common/js/unittest_util.js'; import {XfPathDisplayElement} f...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_path_display_unittest.ts
TypeScript
unknown
1,693
// 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 {css, customElement, html, property, svg, XfBase} from './xf_base.js'; const TWO_PI = 2.0 * Math.PI; const HALF_PI = 0.5 * Math.PI; /** * Displays a pie shaped progre...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_pie_progress.ts
TypeScript
unknown
3,477
<style> :host([hidden]) { display: none !important; } :host { display: flex; flex-direction: row; } :host-context([theme='legacy']):host { margin: 12px 16px; } :host-context([theme='refresh23']):host { margin: 12px 20px; } </style> <xf-select id="location-selector" icon="select-l...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_search_options.html
HTML
unknown
542
// 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 A search widget that allows users to choose search options. * Disable type checking for closure, as it is done by the typescript compiler. * @suppress {c...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_search_options.ts
TypeScript
unknown
4,747
// 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 {assertDeepEquals} from 'chrome://webui-test/chai_assert.js'; import {SearchLocation, SearchRecency} from '../externs/ts/state.js'; import {OptionKind, SEARCH_OPTIONS_...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_search_options_unittest.ts
TypeScript
unknown
2,581
// 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 xf-select element which is ChromeOS <select>..</select>. * Disable type checking for closure, as it is done by the typescript compiler. * @suppress{missi...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_select.ts
TypeScript
unknown
15,001
// 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 {assertDeepEquals, assertEquals} from 'chrome://webui-test/chromeos/chai_assert.js'; import {eventToPromise} from 'chrome://webui-test/test_util.js'; import {waitForEl...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_select_unittest.ts
TypeScript
unknown
3,412
// 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/js/assert_ts.js'; import {css, customElement, html, XfBase} from './xf_base.js'; @customElement('xf-splitter') export class XfSplitte...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_splitter.ts
TypeScript
unknown
7,075
// 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, assertLT} from 'chrome://webui-test/chromeos/chai_assert.js'; import {waitForElementUpdate} from '../common/js/unittest_util.js'; import {XfSplitter} fr...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_splitter_unittest.ts
TypeScript
unknown
6,537
// 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 {isRTL} from 'chrome://resources/ash/common/util.js'; import {css, customElement, html, query, state, XfBase} from './xf_base.js'; import {TreeItemCollapsedEvent, TreeI...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_tree.ts
TypeScript
unknown
11,254
// 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 'chrome://resources/polymer/v3_0/paper-ripple/paper-ripple.js'; import './xf_icon.js'; import {addCSSPrefixSelector} from '../common/js/dom_utils.js'; import {css, cus...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_tree_item.ts
TypeScript
unknown
17,742
// 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, assertNotEquals, assertTrue} from 'chrome://webui-test/chai_assert.js'; import {eventToPromise} from 'chrome://webui-test/test_util.js'; imp...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_tree_item_unittest.ts
TypeScript
unknown
14,644
// 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 {assertArrayEquals, assertEquals, assertFalse, assertNotEquals, assertTrue} from 'chrome://webui-test/chai_assert.js'; import {eventToPromise} from 'chrome://webui-test/...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_tree_unittest.ts
TypeScript
unknown
23,913
// 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 type {XfTree} from './xf_tree.js'; import type {XfTreeItem} from './xf_tree_item.js'; /** Check if an `Element` is a tree or not. */ export function isTree(element: Ele...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/widgets/xf_tree_util.ts
TypeScript
unknown
559
// 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. #ifndef UI_FILE_MANAGER_FILE_MANAGER_EXPORT_H_ #define UI_FILE_MANAGER_FILE_MANAGER_EXPORT_H_ // Defines FILE_MANAGER_EXPORT so that functionality implemented by the // FILE_M...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager_export.h
C
unknown
913
<!DOCTYPE html> <meta charset="utf-8"> <script src="piex/piex.js.wasm"></script> <script type="module" src="background.js"></script>
Zhao-PengFei35/chromium_src_4
ui/file_manager/image_loader/background.html
HTML
unknown
134
// 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 Entry point for Image Loader. */ import {ImageLoader} from './image_loader.js'; // Load the extension. ImageLoader.getInstance();
Zhao-PengFei35/chromium_src_4
ui/file_manager/image_loader/background.js
JavaScript
unknown
298
// 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. /** * Persistent cache storing images in an indexed database on the hard disk. * @constructor */ export function ImageCache() { /** * IndexedDB database handle. * @t...
Zhao-PengFei35/chromium_src_4
ui/file_manager/image_loader/cache.js
JavaScript
unknown
12,060
// 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 {assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js'; import {LoadImageRequest} from './load_image_request.js'; export function testCreateCach...
Zhao-PengFei35/chromium_src_4
ui/file_manager/image_loader/cache_unittest.js
JavaScript
unknown
634
// 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 {ImageCache} from './cache.js'; import {ImageOrientation} from './image_orientation.js'; import {ImageRe...
Zhao-PengFei35/chromium_src_4
ui/file_manager/image_loader/image_loader.js
JavaScript
unknown
5,419
// 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 {LRUCache} from 'chrome://file-manager/common/js/lru_cache.js'; import {LoadImageRequest, LoadImageResponse, LoadImageResponseStatus} from './load_image_request.js'; /...
Zhao-PengFei35/chromium_src_4
ui/file_manager/image_loader/image_loader_client.js
JavaScript
unknown
7,213
// 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 {reportPromise} from 'chrome://file-manager/common/js/test_error_reporting.js'; import {assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js'; imp...
Zhao-PengFei35/chromium_src_4
ui/file_manager/image_loader/image_loader_client_unittest.js
JavaScript
unknown
3,103
// 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 {ImageLoaderUtil} from './image_loader_util.js'; import {ImageOrientation} from './image_orien...
Zhao-PengFei35/chromium_src_4
ui/file_manager/image_loader/image_loader_unittest.js
JavaScript
unknown
5,606