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 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 {util} from './util.js';
/**
* Mocks out the util.visitURL function and returns a restore function and a
* function to interrogate the URL visitURL was invoked with.
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/common/js/mock_util.js | JavaScript | unknown | 683 |
// 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 A helper class used as a browser proxy for the
* chrome.notifications browser API.
*/
/** @interface */
export class NotificationsBrowserProxy {
/**
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/common/js/notifications.js | JavaScript | unknown | 3,536 |
// 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.
/**
* State of progress items.
* @const @enum {string}
*/
export const ProgressItemState = {
SCANNING: 'scanning',
PROGRESSING: 'progressing',
COMPLETED: 'completed',
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/common/js/progress_center_common.js | JavaScript | unknown | 6,033 |
// 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 Recent date bucket definition and util functions.
*/
import {SearchRecency} from '../../externs/ts/state.js';
import {util} from './util.js';
/**
* Gi... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/common/js/recent_date_bucket.js | JavaScript | unknown | 4,028 |
// 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} from 'chrome://webui-test/chromeos/chai_assert.js';
import {SearchRecency... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/common/js/recent_date_bucket_unittest.js | JavaScript | unknown | 5,633 |
// 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.
// namespace
export const storage = {};
/**
* Class used to emit window.localStorage change events to event listeners.
* This class does 3 things:
*
* 1. Holds the onChang... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/common/js/storage.js | JavaScript | unknown | 6,579 |
// 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 {assertDeepEquals} from 'chrome://webui-test/chromeos/chai_assert.js';
import {storage} from './storage.js';
import {waitUntil} from './test_error_reporting.js';
/**
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/common/js/storage_unittest.js | JavaScript | unknown | 1,709 |
// 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.
/**
* Asserts that promise gets rejected.
* @param {Promise} promise
*/
export async function assertRejected(promise) {
let triggeredError = false;
try {
await promi... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/common/js/test_error_reporting.js | JavaScript | unknown | 1,506 |
// 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 Trash implementation is based on
* https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html.
*
* This file is checked via TS, so we suppress... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/common/js/trash.ts | TypeScript | unknown | 20,555 |
// 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 * as tslib from 'chrome://resources/mwc/tslib/tslib.js';
/**
* This file serves as a shim to tslib. Using experimental features like
* decorator will make TS generate... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/common/js/tslib_shim.ts | TypeScript | unknown | 878 |
// 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 {assertEquals, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
/**
* Asserts that two lists contain the same set of Entries. Entries are deemed
* to ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/common/js/unittest_util.js | JavaScript | unknown | 3,796 |
// 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 should contain utility functions used only by the
* files app. Other shared utility functions can be found in base/*_util.js,
* which allows fi... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/common/js/util.js | JavaScript | unknown | 45,713 |
// 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 {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {MockVolumeManager} from '../../background/js/mock_volume_manager.js'... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/common/js/util_unittest.js | JavaScript | unknown | 13,874 |
// 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 {assertNotReached} from 'chrome://resources/ash/common/assert.js';
/**
* Namespace for common types.
*/
const VolumeManagerCommon = {};
/**
* Paths that can be hand... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/common/js/volume_manager_types.js | JavaScript | unknown | 15,711 |
// 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 {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {MockFileEntry, MockFileSystem} from './mock_entry.js';
import {Volum... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/common/js/volume_manager_types_unittest.js | JavaScript | unknown | 3,131 |
// 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 '../widgets/xf_breadcrumb.js';
import {metrics} from '../common/js/metrics.js';
import {SEARCH_RESULTS_KEY} from '../common/js/url_constants.js';
import {str, util} fro... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/containers/breadcrumb_container.ts | TypeScript | unknown | 4,184 |
// 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, assertNotEquals} from 'chrome://webui-test/chai_assert.js';
import {CurrentDirectory, PropStatus} from '../externs/ts/state.js';
import {getEmptyState, g... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/containers/breadcrumb_container_unittest.ts | TypeScript | unknown | 2,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 {isRTL} from 'chrome://resources/ash/common/util.js';
import {CrButtonElement} from 'chrome://resources/cr_elements/cr_button/cr_button.js';
import {maybeShowTooltip} f... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/containers/directory_tree_container.ts | TypeScript | unknown | 34,320 |
// 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 {assertArrayEquals, assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chai_assert.js';
im... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/containers/directory_tree_container_unittest.ts | TypeScript | unknown | 39,780 |
// 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 '../widgets/xf_nudge.js';
import {storage} from '../common/js/storage.js';
import {str} from '../common/js/util.js';
import {NudgeDirection, XfNudge} from '../widgets/x... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/containers/nudge_container.ts | TypeScript | unknown | 12,949 |
// 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/chromeos/chai_assert.js';
import {waitUntil} from '../common/js/test_error_reporting.... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/containers/nudge_container_unittest.ts | TypeScript | unknown | 6,524 |
// 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 {CrInputElement} from 'chrome://resources/cr_elements/cr_input/cr_input.js';
import {queryRequiredElement} from '../common/js/dom_utils.js';
import {str, util} from '..... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/containers/search_container.ts | TypeScript | unknown | 24,128 |
// 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 {CrInputElement} from 'chrome://resources/cr_elements/cr_input/cr_input.js';
import {EntryLocation} from '../externs/entry_location.js';
import {State} from '../externs... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/containers/search_container_unittest.ts | TypeScript | unknown | 2,626 |
// 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.
/**
* This definition is required by
* ui/file_manager/file_manager/common/js/app_util.js.
* @type {string}
*/
Window.prototype.appID;
/**
* @type {string}
*/
Window.pro... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/app_window_common.js | JavaScript | unknown | 786 |
// 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 {VolumeManager} from '../volume_manager.js';
/**
* Crostini shared path state handler.
*
* @interface
*/
export class Crostini {
/**
* Initialize enabled setti... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/background/crostini.js | JavaScript | unknown | 1,787 |
// 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 {DriveDialogControllerInterface} from '../drive_dialog_controller.js';
/**
* Handler of the background page for the Drive sync events. Implementations
* of this inter... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/background/drive_sync_handler.js | JavaScript | unknown | 1,377 |
// 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 {FilesAppState} from '../../common/js/files_app_state.js';
import {VolumeManager} from '../volume_manager.js';
import {Crostini} from './crostini.js';
import {DriveSync... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/background/file_manager_base.js | JavaScript | unknown | 1,945 |
// 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 {FakeEntry, FilesAppEntry} from '../files_app_entry_interfaces.js';
import {VolumeManager} from '../volume_manager.js';
/**
* FileOperationManager: manager of file ope... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/background/file_operation_manager.js | JavaScript | unknown | 1,158 |
// 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 {ProgressCenterItem} from '../../common/js/progress_center_common.js';
import {ProgressCenterPanelInterface} from '../progress_center_panel.js';
/**
* Progress center ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/background/progress_center.js | JavaScript | unknown | 1,430 |
// 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.
const volumeManagerFactory = {};
/**
* @return {!Promise<!VolumeManager>}
*/
volumeManagerFactory.getInstance = function() {};
/**
* @return {VolumeManager}
*/
volumeMana... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/background/volume_manager_factory.js | JavaScript | unknown | 432 |
// 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 {VolumeManagerCommon} from '../common/js/volume_manager_types.js';
/**
* All Banners are extended from this interface.
* @abstract
*/
export class Banner extends HTM... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/banner.js | JavaScript | unknown | 3,677 |
// 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 {DialogType} from '../common/js/dialog_type.js';
import {FilesAppState} from '../common/js/files_app_state.js';
import {ActionsController} from '../foreground/js/actions... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/command_handler_deps.js | JavaScript | unknown | 3,164 |
// 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.
/**
* @fileoverview
* @suppress {externsValidation} this file is used as externs and also
* as JS module, Closure fails to compile as externs.
*/
import {FakeEntry} from '... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/directory_change_event.js | JavaScript | unknown | 676 |
// 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.
/**
* @interface
*/
class DragTarget {
/**
* This definition is required to satisfy
*
* @param {number} x
* @param {number} y
* @param {number=} opt_width
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/drag_target.js | JavaScript | unknown | 437 |
// 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.
/**
* Interface implemented in the foreground page that the background page uses to
* show dialogs originating from Drive to the user.
* @interface
*/
export class DriveDia... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/drive_dialog_controller.js | JavaScript | unknown | 614 |
// 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 {util} from '../common/js/util.js';
export class EntriesChangedEvent extends Event {
/** @param {string} eventName */
constructor(eventName) {
super(eventName);... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/entries_changed_event.js | JavaScript | unknown | 436 |
// 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 {VolumeManagerCommon} from '../common/js/volume_manager_types.js';
import {VolumeInfo} from './volume_info.js';
/**
* Location information which shows where the path p... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/entry_location.js | JavaScript | unknown | 1,404 |
// 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 {Exif} from '../foreground/js/metadata/exif_constants.js';
/**
* Type definition of exif entry.
* @typedef {{id:!Exif.Tag, format:number, componentCount:number,
* ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/exif_entry.js | JavaScript | unknown | 370 |
// 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 Interfaces for the Files app Entry Types.
*/
import {VolumeManagerCommon} from '../common/js/volume_manager_types.js';
/**
* FilesAppEntry represents a... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/files_app_entry_interfaces.js | JavaScript | unknown | 7,160 |
// 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.
/**
* @fileoverview External objects and functions required for compiling tests.
*/
import {Crostini} from './background/crostini.js';
import {FileManagerBaseInterface} from... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/foreground_window.js | JavaScript | unknown | 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 {MetadataItem} from '../foreground/js/metadata/metadata_item.js';
export class MetadataModelInterface {
/**
* Obtains metadata for entries.
* @param {!Array<!En... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/metadata_model.js | JavaScript | unknown | 1,489 |
// 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.
/**
* @interface
*/
export class MetadataParserLogger {
constructor() {
/**
* Verbose logging for the dispatcher.
* Individual parsers also take this as their... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/metadata_worker_window.js | JavaScript | unknown | 1,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.
/**
* Interface that Files app uses from <paper-ripple>.
*/
class PaperRipple extends HTMLElement {
simulatedRipple() {}
/**
* @param {Event=} event
*/
downActio... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/paper_elements.js | JavaScript | unknown | 395 |
// 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.
// Externs which are common for all chrome packaged apps.
/**
* @param {string} url
* @param {function(!Entry)} successCallback
* @param {function(!FileError)=} opt_errorCa... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/platform.js | JavaScript | unknown | 441 |
// 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.
/**
* @typedef {{
* text:string,
* callback:(function()|undefined)
* }}
*/
let FilesToastAction;
/**
* @constructor
* @extends {HTMLElement}
*/
function FilesToast... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/polymer_elements/files_toast.js | JavaScript | unknown | 553 |
// 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 {ProgressCenterItem, ProgressItemState} from '../common/js/progress_center_common.js';
/**
* Interface implemented in foreground page that the background page uses to
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/progress_center_panel.js | JavaScript | unknown | 1,186 |
// 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.
/**
* File preview content. Sent from <files-quick-view> to a sandboxed page, as
* part of UntrustedPreviewData. |data| field holds a Blob/File, or a content
* URL. |dataTyp... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/quick_view.js | JavaScript | unknown | 1,267 |
// 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.
class SearchItem {
constructor() {
/**
* @type {boolean}
*/
this.isHeaderItem;
/**
* @type {string}
*/
this.searchQuery;
}
}
| Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/search_item.js | JavaScript | unknown | 310 |
// 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 {VolumeManagerCommon} from '../../common/js/volume_manager_types.js';
import {MetadataItem} from '../../foreground/js/metadata/metadata_item.js';
import {FilesAppEntry} ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/ts/state.js | JavaScript | unknown | 10,374 |
// 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 './state.js';
/**
* @fileoverview Simplified interfaces of the Store used by Files app. Used to
* be able to type check the JS files using Closure compil... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/ts/store.js | JavaScript | unknown | 993 |
// 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 {VolumeManagerCommon} from '../common/js/volume_manager_types.js';
import {FakeEntry, FilesAppEntry} from './files_app_entry_interfaces.js';
/**
* Represents each vol... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/volume_info.js | JavaScript | unknown | 4,586 |
// 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 {VolumeInfo} from './volume_info.js';
/**
* The container of the VolumeInfo for each mounted volume.
* @interface
*/
export class VolumeInfoList {
constructor() {
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/volume_info_list.js | JavaScript | unknown | 1,289 |
// 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 {VolumeManagerCommon} from '../common/js/volume_manager_types.js';
import {EntryLocation} from './entry_location.js';
import {FilesAppDirEntry, FilesAppEntry} from './f... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/externs/volume_manager.js | JavaScript | unknown | 5,544 |
/* 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. */
.dialog-header button.combobutton {
align-items: stretch;
background: transparent;
border-radius: 3px;
cursor: pointer;
display: flex;
flex: none;
font-weight:... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/css/combobutton.css | CSS | unknown | 1,405 |
/* 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. */
.dialog-header button.combobutton {
align-items: stretch;
background: transparent;
border-radius: 3px;
cursor: pointer;
display: flex;
flex: none;
font-weight:... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/css/combobutton_gm3.css | CSS | unknown | 1,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. */
/* Special attribute to hide elements. */
[hidden] {
display: none !important;
}
cr-button {
--active-bg: none; /* prevent dark-mode activation color */
box-shadow: ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/css/common.css | CSS | unknown | 10,730 |
/* 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. */
/* Special attribute to hide elements. */
[hidden] {
display: none !important;
}
cr-button {
--active-bg: none; /* prevent dark-mode activation color */
box-shadow: ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/css/common_gm3.css | CSS | unknown | 10,112 |
/* 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. */
/* Special attribute used in HTML to hide elements. */
body:not([type]) [visibleif] {
display: none;
}
body[type='folder'] [invisibleif~='folder'],
body[type='upload-fold... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/css/file_manager.css | CSS | unknown | 62,622 |
/* 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. */
/* Special attribute used in HTML to hide elements. */
body:not([type]) [visibleif] {
display: none;
}
body[type='folder'] [invisibleif~='folder'],
body[type='upload-fold... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/css/file_manager_gm3.css | CSS | unknown | 58,896 |
/* 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. */
/* TODO(crbug.com/992819): unify root-type-icon and volume-type-icon into one
type if possible, called file-type-icon or entry-type-icon say, since there
is no real need f... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/css/file_types.css | CSS | unknown | 14,082 |
/* 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. */
/* TODO(crbug.com/992819): unify root-type-icon and volume-type-icon into one
type if possible, called file-type-icon or entry-type-icon say, since there
is no real need f... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/css/file_types_gm3.css | CSS | unknown | 14,064 |
/* 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. */
/* Derived from /ui/webui/resources/css/list.css. */
list,
grid {
display: block;
outline: none;
overflow: auto;
position: relative; /* Make sure that item offsets ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/css/list.css | CSS | unknown | 1,237 |
/* 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. */
/* Derived from /ui/webui/resources/css/menu.css. */
cr-menu {
position: fixed;
white-space: nowrap;
z-index: 3;
}
cr-menu:not(.decorated) {
display: none;
}
cr-m... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/css/menu.css | CSS | unknown | 3,241 |
/* 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. */
html.col-resize * {
cursor: col-resize !important;
}
.table[hasElementFocus] > list > [lead] {
z-index: 2;
}
.table-row {
display: flex;
text-align: start;
width... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/css/table.css | CSS | unknown | 1,090 |
/* 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. */
/* Derived from /ui/webui/resources/css/tree.css. */
tree {
display: block;
outline: none;
overflow: auto;
}
.tree-item > .tree-row {
cursor: default;
position: ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/css/tree.css | CSS | unknown | 1,986 |
<!--
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.
-->
<style include="cr-shared-style md-select">
.md-select {
width: 100%;
}
[slot='body'] > div {
margin-bottom: var(--cr-form-field-bottom-spacing);
}
[slot='bo... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/files_format_dialog.html | HTML | unknown | 6,237 |
<!--
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.
-->
<style>
div {
margin: 0;
padding: 0;
}
div[hidden] {
display: none;
}
#box {
display: block;
overflow: auto;
padding-top: 16px;
width: 3... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/files_metadata_box.html | HTML | unknown | 3,222 |
<!--
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.
-->
<style>
div {
margin: 0;
}
#box {
display: flex;
line-height: 20px;
margin: 10px 0;
min-height: 14px;
width: 320px;
}
#box[hidden] {
disp... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/files_metadata_entry.html | HTML | unknown | 1,540 |
<style>
:host-context([theme='legacy']) [slot='title'] {
--cr-primary-text-color: var(--cros-text-color-primary);
}
:host-context([theme='refresh23']) [slot='title'] {
--cr-dialog-title-slot-padding-bottom: 16px;
--cr-dialog-title-slot-padding-end: 0;
--cr-dialog-title-slot-padding-start: 0;
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/files_password_dialog.html | HTML | unknown | 7,017 |
// 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 'chrome://resources/cr_elements/cr_dialog/cr_dialog.js';
import 'chrome://resources/cr_elements/cr_input/cr_input.js';
import 'chrome://resources/cr_elements/cr_button/c... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/files_password_dialog_unittest.js | JavaScript | unknown | 10,151 |
/* 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. */
:host > ::content > * {
margin: 0;
padding: 0;
}
dialog {
background-color: transparent;
border: none;
font-size: 100%;
height: 100%;
margin: 0;
max-height:... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/files_quick_view.css | CSS | unknown | 5,781 |
<!--
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.
-->
<link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
<link rel="stylesheet" href="foreground/css/common.css">
<link rel="stylesheet" href="foreground/element... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/files_quick_view.html | HTML | unknown | 5,174 |
<!--
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.
-->
<style>
#content {
height: 100%;
width: 100%;
}
#content.audio {
height: 54px;
}
iframe {
border: 0;
display: inline-block;
height: 100%;
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/files_safe_media.html | HTML | unknown | 391 |
<!--
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.
-->
<style>
:host([hidden]) {
display: none !important;
}
:host {
display: flex;
height: 24px;
margin: 12px;
width: 24px;
}
svg {
animation: rot... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/files_spinner.html | HTML | unknown | 1,149 |
<!--
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.
-->
<style>
.container {
--cr-toast-background: var(--cros-bg-color-elevation-2-inverted);
box-shadow: var(--cros-elevation-2-shadow);
justify-content: space-between;
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/files_toast.html | HTML | unknown | 1,418 |
// 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 'chrome://resources/cr_elements/cr_shared_style.css.js';
import {CrButtonElement} from 'chrome://resources/cr_elements/cr_button/cr_button.js';
import {CrToastElement} ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/files_toast.ts | TypeScript | unknown | 3,438 |
// 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 './files_toast.js';
import {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
export function setUpPage() {
document.body.in... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/files_toast_unittest.js | JavaScript | unknown | 2,647 |
<!--
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.
-->
<style>
:host {
background-color: var(--cros-tooltip-background-color);
color: var(--cros-tooltip-label-color);
display: flex;
height: 24px;
opacity: 0;
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/files_tooltip.html | HTML | unknown | 1,578 |
// 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, assertNotEquals, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {reportPromise} from '../../common/js/test_error_rep... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/files_tooltip_unittest.js | JavaScript | unknown | 14,616 |
// 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 {assert} from 'chrome://resources/ash/common/assert.js';
import {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {wait... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/files_xf_elements_unittest.js | JavaScript | unknown | 21,413 |
<!--
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.
-->
<iron-iconset-svg name="files" size="24">
<svg>
<defs>
<!--
These icons are copied from Polymer's iron-icons and kept in sorted order.
See http://goo.gl/... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/icons.html | HTML | unknown | 11,070 |
// 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 'chrome://resources/polymer/v3_0/iron-iconset-svg/iron-iconset-svg.js';
import {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
const temp... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/icons.js | JavaScript | unknown | 399 |
<style>
cr-icon-button,
cr-button {
margin-inline-start: 0;
}
cr-button {
--active-bg: var(--cros-button-background-color-secondary-hover);
/* The shadow can only be customized via rgb values, to turn the shadow
off make the shadow appear as the background color. */
--active-shadow-rgb:... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/xf_button.html | HTML | unknown | 2,114 |
<style>
.progress {
height: 36px;
width: 36px;
}
:host-context([detailed-panel][data-category='expanded'])
.progress {
height: 32px;
width: 32px;
}
:host-context([detailed-panel][data-category='collapsed'])
.progress {
height: 28px;
width: 28px;
}
.bottom {
fill: none;
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/xf_circular_progress.html | HTML | unknown | 1,123 |
<style>
:host {
max-width: 504px;
outline: none;
}
#container {
align-items: stretch;
background-color: var(--cros-bg-color-elevation-2);
border-radius: 4px;
box-shadow: var(--cros-elevation-2-shadow);
display: flex;
flex-direction: column;
max-width: min-content;
z-index: ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/xf_display_panel.html | HTML | unknown | 1,933 |
<style>
.xf-panel-item {
align-items: center;
background-color: var(--cros-bg-color-elevation-2);
border-radius: 4px;
display: flex;
flex-direction: row;
height: 68px;
width: 504px;
}
.xf-button {
height: 36px;
width: 36px;
}
.xf-panel-text {
color... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/elements/xf_panel_item.html | HTML | unknown | 4,068 |
#!/bin/bash
#
# 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.
#
# Search the current directory and its subdirectories for PNG and SVG images,
# and output an HTML page containing the images.
#
# Usage: ./generate_image_html.sh
#... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/images/generate_image_html.sh | Shell | unknown | 1,767 |
// 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 {contextMenuHandler} from './ui/context_menu_handler.js';
import {DriveSyncHandler} from '../../externs/background/drive_sync_handler.js';
import {VolumeManager} from '... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/actions_controller.js | JavaScript | unknown | 9,156 |
// 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 {dispatchSimpleEvent} from 'chrome://resources/ash/common/cr_deprecated.js';
import {NativeEventTarget as... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/actions_model.js | JavaScript | unknown | 22,994 |
// 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/actions_model_unittest.js | JavaScript | unknown | 28,311 |
// 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 {addAndroidApps} from '../../state/actions/android_apps.js';
import {get... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/android_app_list_model.js | JavaScript | unknown | 1,689 |
// 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 {appUtil} from '../../common/js/app_util.js';
import {DialogType} from '../../common/js/dialog_type.js';... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/app_state_controller.js | JavaScript | unknown | 7,508 |
// 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 {assert} from 'chrome://resources/ash/common/assert.js';
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.js';
import {getDriv... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/banner_controller.js | JavaScript | unknown | 38,665 |
// 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 {assertDeepEquals, assertEquals} from 'chrome://webui-test/chromeos/chai_assert.js';
import {DialogType} from '../../common/js/dialog_type.js';
import {FakeEntryImpl} f... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/banner_controller_unittest.js | JavaScript | unknown | 50,222 |
// 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 {assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {VolumeManagerCommon} from '../../common/js/volume_manager_types.js';
import {Banne... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/banner_util_unittest.js | JavaScript | unknown | 13,005 |
// 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.
/**
* Namespace for common constants used in Files app.
* @namespace
*/
export const constants = {};
/**
* @const {!Array<string>}
*/
constants.ACTIONS_MODEL_METADATA_PRE... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/constants.js | JavaScript | unknown | 4,324 |
// 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 {DirectoryModel} from './directory_model.js';
import {NavigationListModel, NavigationModelFakeItem, NavigationModelItemType, NavigationModelVolumeItem} from './navigatio... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/crossover_search_utils.js | JavaScript | unknown | 2,117 |
// 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 {assert} from 'chrome://resources/ash/common/assert.js';
import {FakeEntryImpl} from '../../common/js/files_app_entry_types.js';
import {str, strf} from '../../common/j... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/crostini_controller.js | JavaScript | unknown | 5,479 |
// 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 Elements not used in the first painting of the app.
*/
import 'chrome://resources/cr_elements/cr_toggle/cr_toggle.js';
import '../elements/files_format_d... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/deferred_elements.js | JavaScript | unknown | 871 |
// 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, assertNotReached} from 'chrome://resources/ash/common/assert.js';
import {$} from 'chrome://resources/ash/common/util.js';
import {DialogType, isFolderDialogTy... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/dialog_action_controller.js | JavaScript | unknown | 14,898 |