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 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, assertInstanceof} from 'chrome://resources/ash/common/assert.js';
import {queryRequiredElement} from '../../common/js/dom_utils.js';
import {str, strf, util} f... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/toolbar_controller.js | JavaScript | unknown | 15,428 |
// 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.
/** @interface */
export class A11yAnnounce {
/**
* @param {string} text Text to be announced by screen reader, which should be
* already translated.
*/
speakA11yM... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/a11y_announce.js | JavaScript | unknown | 338 |
// 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 {FilesAlertDialog} from './files_alert_dialog.js';
import {ListContainer} from './list_container.js';
/** @interface */
export class ActionModelUI {
constructor() {
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/action_model_ui.js | JavaScript | unknown | 443 |
// 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 {queryDecoratedElement, queryRequiredElement} from '../../../common/js/dom_utils.js';
import {util} from '../../../common/js/util.js';
import {ActionsModel} from '../act... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/actions_submenu.js | JavaScript | unknown | 4,612 |
// 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 {assertInstanceof} from 'chrome://resources/ash/common/assert.js';
import {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
im... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/actions_submenu_unittest.js | JavaScript | unknown | 2,460 |
// 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 {dispatchSimpleEvent} from 'chrome://resources/ash/common/cr_deprecated.js';
import {AnchorType, positionPopupAroundElement} from './position_util.js';
import {ArrayDat... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/autocomplete_list.js | JavaScript | unknown | 6,744 |
<state-banner>
<span slot="text"></span>
</state-banner>
| Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/dlp_restricted_banner.html | HTML | unknown | 59 |
// 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {DialogType} from '../../../../common/js/dialog_type.js';
import {str} from '../../... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/dlp_restricted_banner.js | JavaScript | unknown | 2,776 |
// 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 {VolumeManagerCommon} from '../../../../common/js/volume_manager_types.js';
import {DlpRestri... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/dlp_restricted_banner_unittest.js | JavaScript | unknown | 970 |
<style>
educational-banner {
--feature-icon-src: url(/foreground/images/files/ui/drive_logo.svg);
}
/* action-button's hover effect is handled by hoverBackground. */
:host-context([theme='refresh23'])
cr-button.action-button:hover::part(hoverBackground) {
background-color: var(--cros-sys-hover_on... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/drive_bulk_pinning_banner.html | HTML | unknown | 773 |
// 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {VolumeManagerCommon} from '../../../../common/js/volume_manager_types.js';
import ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/drive_bulk_pinning_banner.js | JavaScript | unknown | 1,595 |
<warning-banner role="banner" class="tast-drive-low-individual-space">
<span slot="text"></span>
<cr-button slot="extra-button" href="$i18n{GOOGLE_DRIVE_MANAGE_STORAGE_URL}">
$i18n{LEARN_MORE_LABEL}
</cr-button>
<cr-button slot="dismiss-button" id="dismiss-button">
$i18n{DRIVE_WELCOME_DISMISS}
</cr-bu... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/drive_low_individual_space_banner.html | HTML | unknown | 344 |
// 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {strf, util} from '../../../../common/js/util.js';
import {VolumeManagerCommon} fro... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/drive_low_individual_space_banner.js | JavaScript | unknown | 2,567 |
<warning-banner role="banner" class="tast-drive-low-shared-drive-space">
<span slot="text"></span>
<cr-button slot="extra-button" href="$i18n{GOOGLE_DRIVE_MANAGE_STORAGE_URL}">
$i18n{LEARN_MORE_LABEL}
</cr-button>
<cr-button slot="dismiss-button" id="dismiss-button">
$i18n{DRIVE_WELCOME_DISMISS}
</cr-... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/drive_low_shared_drive_space_banner.html | HTML | unknown | 346 |
// 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {strf, util} from '../../../../common/js/util.js';
import {VolumeManagerCommon} fro... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/drive_low_shared_drive_space_banner.js | JavaScript | unknown | 2,286 |
<style>
educational-banner {
--feature-icon-src: url(/foreground/images/files/ui/drive_offline_icon.svg);
}
</style>
<educational-banner>
<span slot="title">$i18n{DRIVE_OFFLINE_BANNER_TITLE}</span>
<span slot="subtitle"></span>
<cr-button slot="extra-button" href="$i18n{GOOGLE_DRIVE_OFFLINE_HELP_URL}" dis... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/drive_offline_pinning_banner.html | HTML | unknown | 411 |
// 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {str, strf, util} from '../../../../common/js/util.js';
import {VolumeManagerCommon... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/drive_offline_pinning_banner.js | JavaScript | unknown | 1,912 |
<style>
:host-context([theme='legacy']) warning-banner {
--icon-bg: var(--cros-color-alert);
--icon-holder-bg: var(--cros-highlight-color-error);
--icon-src: url(/foreground/images/files/ui/error_banner_icon.svg);
}
:host-context([theme='refresh23']) warning-banner {
--icon-bg: var(--cros-sys-err... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/drive_out_of_individual_space_banner.html | HTML | unknown | 875 |
// 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {VolumeManagerCommon} from '../../../../common/js/volume_manager_types.js';
import ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/drive_out_of_individual_space_banner.js | JavaScript | unknown | 1,601 |
<style>
:host-context([theme='legacy']) warning-banner {
--icon-bg: var(--cros-color-alert);
--icon-holder-bg: var(--cros-highlight-color-error);
--icon-src: url(/foreground/images/files/ui/error_banner_icon.svg);
}
:host-context([theme='refresh23']) warning-banner {
--icon-bg: var(--cros-sys-err... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/drive_out_of_organization_space_banner.html | HTML | unknown | 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.
import {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {strf} from '../../../../common/js/util.js';
import {VolumeManagerCommon} from '../... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/drive_out_of_organization_space_banner.js | JavaScript | unknown | 2,367 |
<style>
:host-context([theme='legacy']) warning-banner {
--icon-bg: var(--cros-color-alert);
--icon-holder-bg: var(--cros-highlight-color-error);
--icon-src: url(/foreground/images/files/ui/error_banner_icon.svg);
}
:host-context([theme='refresh23']) warning-banner {
--icon-bg: var(--cros-sys-err... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/drive_out_of_shared_drive_space_banner.html | HTML | unknown | 881 |
// 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {VolumeManagerCommon} from '../../../../common/js/volume_manager_types.js';
import ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/drive_out_of_shared_drive_space_banner.js | JavaScript | unknown | 1,612 |
<style>
educational-banner {
--feature-icon-src: url(/foreground/images/files/ui/drive_logo.svg);
}
</style>
<educational-banner>
<span slot="title">$i18n{DRIVE_WELCOME_TITLE}</span>
<span slot="subtitle">$i18n{DRIVE_WELCOME_TEXT_SHORT_FILESNG}</span>
<cr-button slot="extra-button" href="$i18n{GOOGLE_DRIV... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/drive_welcome_banner.html | HTML | 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {VolumeManagerCommon} from '../../../../common/js/volume_manager_types.js';
import ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/drive_welcome_banner.js | JavaScript | unknown | 1,393 |
<style>
:host {
width: 100%;
}
.educational-banner {
align-items: center;
display: flex;
flex-direction: row;
flex-wrap: wrap;
min-height: 32px;
width: 100%;
}
#educational-text-group {
align-items: flex-start;
display: flex;
flex-direction: column;
flex-wrap: now... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/educational_banner.html | HTML | unknown | 5,417 |
// 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {util} from '../../../../common/js/util.js';
import {Banner} from '../../../../exte... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/educational_banner.js | JavaScript | unknown | 6,318 |
// 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {assertEquals} from 'chrome://webui-test/chromeos/chai_assert.js';
import {mockUtil... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/educational_banner_unittest.js | JavaScript | unknown | 5,359 |
<style>
educational-banner {
--feature-icon-src: url(/foreground/images/files/ui/drive_logo.svg);
}
</style>
<educational-banner>
<!-- Google One Offer banner is enabled only for en-*. It will be configured by the server. -->
<span slot="title">Get 100GB of cloud storage</span>
<span slot="s... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/google_one_offer_banner.html | HTML | unknown | 578 |
// 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {metrics} from '../../../../common/js/metrics.js';
import {VolumeManagerCommon} fro... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/google_one_offer_banner.js | JavaScript | unknown | 3,066 |
<style>
educational-banner {
--feature-icon-bg: none;
}
:host-context([theme='legacy']) educational-banner [slot=illustration] {
--holding-space-svg-color-1: var(--cros-illustration-color-1-shade-2);
--holding-space-svg-color-2: var(--cros-illustration-color-1);
--holding-space-svg-color-3: var(-... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/holding_space_welcome_banner.html | HTML | unknown | 2,354 |
// 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {VolumeManagerCommon} from '../../../../common/js/volume_manager_types.js';
import ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/holding_space_welcome_banner.js | JavaScript | unknown | 1,808 |
<state-banner>
<span slot="text">$i18n{UNKNOWN_FILESYSTEM_WARNING}</span>
<cr-button slot="extra-button" command="#format">
$i18n{FORMAT_DEVICE_BUTTON_LABEL}
</cr-button>
</state-banner>
| Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/invalid_usb_filesystem_banner.html | HTML | unknown | 197 |
// 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {str} from '../../../../common/js/util.js';
import {VolumeManagerCommon} from '../.... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/invalid_usb_filesystem_banner.js | JavaScript | unknown | 2,234 |
<warning-banner>
<span slot="text">$i18n{DOWNLOADS_DIRECTORY_WARNING}</span>
<cr-button slot="extra-button" href="$i18n{DOWNLOADS_LOW_SPACE_WARNING_HELP_URL}">
$i18n{LEARN_MORE_LABEL}
</cr-button>
<cr-button slot="dismiss-button" id="dismiss-button">
$i18n{DRIVE_WELCOME_DISMISS}
</cr-button>
</warning... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/local_disk_low_space_banner.html | HTML | unknown | 329 |
// 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {VolumeManagerCommon} from '../../../../common/js/volume_manager_types.js';
import ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/local_disk_low_space_banner.js | JavaScript | unknown | 1,697 |
<style>
educational-banner {
--feature-icon-src: url(/foreground/images/files/ui/photos_logo.svg);
}
</style>
<educational-banner>
<span slot="title">$i18n{PHOTOS_WELCOME_TITLE}</span>
<span slot="subtitle">$i18n{PHOTOS_WELCOME_TEXT}</span>
</educational-banner>
| Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/photos_welcome_banner.html | HTML | unknown | 275 |
// 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {VolumeManagerCommon} from '../../../../common/js/volume_manager_types.js';
import ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/photos_welcome_banner.js | JavaScript | unknown | 1,440 |
<state-banner>
<span slot="text">$i18n{MESSAGE_FOLDER_SHARED_WITH_CROSTINI_AND_PLUGIN_VM}</span>
<cr-button slot="extra-button">
$i18n{MANAGE_TOAST_BUTTON_LABEL}
</cr-button>
</state-banner>
| Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/shared_with_crostini_pluginvm_banner.html | HTML | unknown | 201 |
// 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {str} from '../../../../common/js/util.js';
import {VolumeManagerCommon} from '../.... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/shared_with_crostini_pluginvm_banner.js | JavaScript | unknown | 3,594 |
<style>
:host {
width: 100%;
}
.state-banner {
display: flex;
flex-direction: row;
flex-wrap: wrap;
min-height: 32px;
width: 100%;
}
#state-text-group {
align-items: center;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
}
:host-context([theme='legacy']) ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/state_banner.html | HTML | unknown | 4,011 |
// 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 {assertInstanceof} from 'chrome://resources/ash/common/assert.js';
import {Command} from '../command.js';
import {html} from 'chrome://resources/polymer/v3_0/polymer/pol... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/state_banner.js | JavaScript | unknown | 4,161 |
// 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 {decorate} from '../../../../common/js/ui.js';
import {Command} from '../command.js';
import {assertEquals} from 'chrome://webui-test/chromeos/chai_assert.js';
import {... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/state_banner_unittest.js | JavaScript | unknown | 5,316 |
<style>
state-banner {
--icon-src: url(/foreground/images/files/ui/delete_ng.svg);
}
</style>
<state-banner>
<span slot="text">$i18n{TRASH_DELETED_FOREVER}</span>
<cr-button slot="extra-button" command="#empty-trash">
$i18n{EMPTY_TRASH_BUTTON_LABEL}
</cr-button>
</state-banner>
| Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/trash_banner.html | HTML | unknown | 297 |
// 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {VolumeManagerCommon} from '../../../../common/js/volume_manager_types.js';
import ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/trash_banner.js | JavaScript | unknown | 1,374 |
<style>
:host {
width: 100%;
}
.warning-banner {
display: flex;
flex-direction: row;
flex-wrap: wrap;
min-height: 32px;
width: 100%;
}
#warning-text-group {
align-items: center;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
}
:host-context([theme='legacy... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/warning_banner.html | HTML | unknown | 4,390 |
// 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 {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {util} from '../../../../common/js/util.js';
import {Banner} from '../../../../exte... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/warning_banner.js | JavaScript | unknown | 4,812 |
// 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 {mockUtilVisitURL} from '../../../../common/js/mock_util.js';
import {Banner} from '../../../.... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/banners/warning_banner_unittest.js | JavaScript | unknown | 2,219 |
// 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 {getPropertyDescriptor, PropertyKind} from 'chrome://resources/ash/common/cr_deprecated.js';
import {decorate} from '../../../common/js/ui.js';
import {MenuItem} from '.... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/combobutton.js | JavaScript | unknown | 6,893 |
// 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 A command is an abstraction of an action a user can do in the
* UI.
*
* When the focus changes in the document for each command a canExecute event
* is... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/command.js | JavaScript | unknown | 9,434 |
// 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 {Command} from './command.js';
import {assertEquals, assertFalse, assertTrue} from 'chrome://webu... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/command_unittest.js | JavaScript | unknown | 1,715 |
// 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 common button control, bound to command.
*/
import {assert} from 'chrome://resources/ash/common/assert.js';
import {getPropertyDescript... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/commandbutton.js | JavaScript | unknown | 4,773 |
// 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 {assertInstanceof} from 'chrome://resources/ash/common/assert.js';
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/even... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/context_menu_handler.js | JavaScript | unknown | 9,918 |
// 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 {contextMenuHandler} from './context_menu_handler.js';
import {Menu} from './menu.js';
import {as... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/context_menu_handler_unittest.js | JavaScript | unknown | 2,183 |
// 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 {getPropertyDescriptor, PropertyKind} from 'chrome://resources/ash/common/cr_deprecated.js';
import {ArrayDataModel} from '../../../common/js/array_data_model.js';
imp... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/default_task_dialog.js | JavaScript | unknown | 6,308 |
// 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 'chrome://resources/cr_elements/cr_input/cr_input.js';
import {DialogType} from '../../../common/js/dialog_type.js';
import {getKeyModifiers, queryRequiredElement} from... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/dialog_footer.js | JavaScript | unknown | 13,501 |
// 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 {isRTL} from 'chrome://resources/ash/common/util.js';
import {util} from '../../../common/js/util.js';
export class BaseDialog {
constructor(parentNode) {
this.p... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/dialogs.js | JavaScript | unknown | 12,343 |
// 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, assertNotReached} from 'chrome://resources/ash/common/assert.js';
import {dispatchSimpleEvent, getPropertyDescriptor, PropertyKind} from 'chrome://resources/ash... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/directory_tree.js | JavaScript | unknown | 84,926 |
// 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 {loadTimeData} from 'chrome://resources/ash/common/load_time_data.m.js';
import {assertArrayEquals, asser... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/directory_tree_unittest.js | JavaScript | unknown | 48,577 |
// 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 {List} from './list.js';
export class DragSelector {
/**
* Drag selector used on the file list or the grid table.
*/
constructor() {
/**
* Target lis... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/drag_selector.js | JavaScript | unknown | 7,908 |
// 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 {dispatchSimpleEvent} from 'chrome://resources/ash/common/cr_deprecated.js';
import {is... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/file_grid.js | JavaScript | unknown | 44,926 |
// 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 {MockVolumeManager} from '../../../background/js/mock_volume_manager.js';
import {FakeEntryImp... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/file_grid_unittest.js | JavaScript | unknown | 23,883 |
// 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 {ListSelectionModel} from './list_selection_model.js';
import {ListSingleSelectionModel} from './list_single_selection_model.js';
export class FileListSelectionModel ex... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/file_list_selection_model.js | JavaScript | unknown | 3,611 |
// 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 {assertArrayEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {FileListSelectionModel} from './file_list_selection_model.js';
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/file_list_selection_model_unittest.js | JavaScript | unknown | 1,364 |
// 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 {util} from '../../../common/js/util.js';
import {BaseDialog} from './dialogs.js';
/**
* This class is an extended class, to manage the status of the dialogs.
*/
exp... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/file_manager_dialog_base.js | JavaScript | unknown | 3,569 |
// 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 {assertInstanceof} from 'chrome://resources/ash/common/assert.js';
import {assertFalse} from 'chrome://webui-test/chromeos/chai_assert.js';
import {waitUntil} from '../... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/file_manager_dialog_base_unittest.js | JavaScript | unknown | 1,298 |
// 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} from '../../../common/js/dialog_type.js';
import {queryDecoratedElement, queryReq... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js | JavaScript | unknown | 28,596 |
// 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/ui/file_metadata_formatter.js | JavaScript | unknown | 3,209 |
// 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 {dispatchSimpleEvent} from 'chrome://resources/ash/common/cr_deprecated.js';
import {R... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/file_table.js | JavaScript | unknown | 39,302 |
// 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 {FileType} from '../../../common/js/file_type.js';
import {str, strf, util} from '../../../common/js/uti... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/file_table_list.js | JavaScript | unknown | 35,647 |
// 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 {assertArrayEquals, assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {MockVolumeManager} from '../../../background/js/m... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/file_table_list_unittest.js | JavaScript | unknown | 21,131 |
// 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, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {FileTableColumnModel} from './file_table.js';
imp... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/file_table_unittest.js | JavaScript | unknown | 8,135 |
// 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 {assert} from 'chrome://resources/ash/common/assert.js';
/**
* Processes touch events and calls back to the class user when tap events
* defined by FileTapHandler.Tap... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/file_tap_handler.js | JavaScript | unknown | 8,853 |
// 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 {assertEquals} from 'chrome://webui-test/chromeos/chai_assert.js';
import {reportPromise} from '../../../common/js/test_error_reporting.js';
import {FileTapHandler} fr... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/file_tap_handler_unittest.js | JavaScript | unknown | 8,148 |
// 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';
import {AlertDialog} from './dialogs.js';
/**
* Alert dialog.
*/
export class FilesAlertDialog extends AlertDialog {
/**
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/files_alert_dialog.js | JavaScript | unknown | 1,512 |
// 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';
import {ConfirmDialog} from './dialogs.js';
/**
* Confirm dialog.
*/
export class FilesConfirmDialog extends ConfirmDialog ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/files_confirm_dialog.js | JavaScript | unknown | 2,241 |
// 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 {assertInstanceof} from 'chrome://resources/ash/common/assert.js';
import {Menu} from './menu.js';
import {MenuItem} from './menu_item.js';
/**
* Menu item with ripple... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/files_menu.js | JavaScript | unknown | 7,391 |
// 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 {loadTimeData} from 'chrome://resources/ash/common/load_time_data.m.js';
import {queryRequired... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/gear_menu.js | JavaScript | unknown | 5,213 |
// 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 {define as crUiDefine} from '../../../common/js/ui.js';
import {ListSelectionModel} from './list_selection_model.js';
import {ListSelectionControlle... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/grid.js | JavaScript | unknown | 13,282 |
// 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 {ArrayDataModel} from '../../../common/js/array_data_model.js';
import {Grid} from './grid.js';
import {assertEquals} from 'chrome://webui-test/chr... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/grid_unittest.js | JavaScript | unknown | 2,581 |
// 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 {str, util} from '../../../common/js/util.js';
import {ConfirmDialog} from './dialogs.js';
/**
* ImportCrostiniImageDialog is used as the handler for .tini files.
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/import_crostini_image_dialog.js | JavaScript | unknown | 1,057 |
// 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 {str, util} from '../../../common/js/util.js';
import {FileManagerDialogBase} from './file_manager_dial... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/install_linux_package_dialog.js | JavaScript | unknown | 7,076 |
// 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 {assertInstanceof} from 'chrome://resources/ash/common/assert.js';
import {assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {InstallL... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/install_linux_package_dialog_unittest.js | JavaScript | unknown | 1,258 |
// 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 {getPropertyDescriptor, PropertyKind, dispatchSimpleEvent} from 'chrome://resources/ash/common/cr_deprecated.js';
import {ArrayDataModel} from '../.... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/list.js | JavaScript | unknown | 42,992 |
// 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, assertInstanceof, assertNotReached} from 'chrome://resources/ash/common/assert.js';
import {dispatchSimpleEvent} from 'chrome://resources/ash/common/cr_deprecat... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/list_container.js | JavaScript | unknown | 12,319 |
// 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 {PropertyKind, getPropertyDescriptor} from 'chrome://resources/ash/common/cr_deprecated.js';
import {define as crUiDefine} from '../../../common/js/u... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/list_item.js | JavaScript | unknown | 2,145 |
// 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 {ListSelectionModel} from './list_selection_model.js';
/**
* Creates a selection controller that is to be used with lists. This is
* implemented for vertical lists bu... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/list_selection_controller.js | JavaScript | unknown | 8,439 |
// 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 {dispatchPropertyChange} from 'chrome://resources/ash/common/cr_deprecated.js';
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_targe... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/list_selection_model.js | JavaScript | unknown | 10,968 |
// 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.
// clang-format off
import {ListSelectionModel} from './list_selection_model.js';
import {ListSingleSelectionModel} from './list_single_selection_model.js';
// clang-format on
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/list_selection_model_test_util.js | JavaScript | unknown | 1,395 |
// 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 {ListSelectionModel} from './list_selection_model.js';
import {assertArrayEquals, assertEquals} from 'chrome://webui-test/chromeos/chai_assert.js';
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/list_selection_model_unittest.js | JavaScript | unknown | 7,096 |
// 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 {dispatchPropertyChange} from 'chrome://resources/ash/common/cr_deprecated.js';
import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_targe... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/list_single_selection_model.js | JavaScript | unknown | 6,485 |
// 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 {ListSingleSelectionModel} from './list_single_selection_model.js';
import {assertArrayEquals, assertEquals} from 'chrome://webui-test/chromeos/chai... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/list_single_selection_model_unittest.js | JavaScript | unknown | 2,896 |
// 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 {ArrayDataModel} from '../../../common/js/array_data_model.js';
import {List} from './list.js';
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/list_unittest.js | JavaScript | unknown | 2,053 |
// 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 {getPropertyDescriptor, PropertyKind} from 'chrome://resources/ash/common/cr_deprecated... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/menu.js | JavaScript | unknown | 11,320 |
// 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 {EventTracker} from 'chrome://resources/ash/common/event_tracker.js';
import {define as crUiDefine, decor... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/menu_button.js | JavaScript | unknown | 10,580 |
// 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 {Menu} from './menu.js';
import {MenuButton} from './menu_button.js';
import {assertEquals, asser... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/menu_button_unittest.js | JavaScript | unknown | 4,376 |
// 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 {loadTimeData} from 'chrome://resources/ash/common/load_time_data.m.js';
import {assert} from 'chrome://resources/ash/common/assert.js';
import {getP... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/menu_item.js | JavaScript | unknown | 8,659 |
// 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 {Command} from './command.js';
import {Menu} from './menu.js';
import {MenuItem} from './menu_item... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/menu_unittest.js | JavaScript | unknown | 7,482 |
// 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 {assertInstanceof} from 'chrome://resources/ash/common/assert.js';
import {decorate} from '../../../common/js/ui.js';
import {Menu} from './menu.js';
import {MenuItem} f... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/multi_menu.js | JavaScript | unknown | 14,780 |
// 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 {decorate} from '../../../common/js/ui.js';
import {Menu} from './menu.js';
import {HideType} from './men... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/file_manager/foreground/js/ui/multi_menu_button.js | JavaScript | unknown | 14,234 |