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 |
|---|---|---|---|---|---|
<style>
:host {
display: inline-block;
}
:host ::slotted(*) {
padding: var(--cr-radio-group-item-padding, 12px);
}
:host([disabled]) {
cursor: initial;
pointer-events: none;
user-select: none;
}
:host([disabled]) ::slotted(*) {
... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_radio_group/cr_radio_group.html | HTML | unknown | 401 |
// 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 '../cr_radio_button/cr_radio_button.js';
import '../cr_shared_vars.css.js';
import {assert} from '//resources/js/assert_ts.js';
import {EventTracker} from '//resources/... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_radio_group/cr_radio_group.ts | TypeScript | unknown | 7,483 |
// 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 Mixin for scrollable containers with <iron-list>.
*
* Any containers with the 'scrollable' attribute set will have the following
* classes toggled appro... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_scrollable_mixin.ts | TypeScript | unknown | 8,720 |
<style include="cr-shared-style cr-input-style">
:host {
display: flex;
user-select: none;
--cr-search-field-clear-icon-fill: var(--google-grey-700);
--cr-search-field-clear-icon-margin-end : -4px;
--cr-search-field-input-border-bottom: 1px solid var(--cr-secondary-text... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_search_field/cr_search_field.html | HTML | unknown | 3,305 |
// 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
* 'cr-search-field' is a simple implementation of a polymer component that
* uses CrSearchFieldMixin.
*/
import '../cr_icon_button/cr_icon_button.js';
... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_search_field/cr_search_field.ts | TypeScript | unknown | 1,725 |
// 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.
/* Minimal externs file provided for places in the code that
* still use JavaScript instead of TypeScript.
* @externs
*/
/** @interface */
function CrSearchFieldMixinInterf... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_search_field/cr_search_field_externs.js | JavaScript | unknown | 655 |
// 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.
/**
* Helper functions for implementing an incremental search field. See
* <settings-subpage-search> for a simple implementation.
*/
import {assertNotReached} from '//resour... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_search_field/cr_search_field_mixin.ts | TypeScript | unknown | 5,686 |
<style include="cr-shared-style cr-hidden-style">
:host(:not([error-message-allowed])) cr-input {
--cr-input-error-display: none;
}
:host([opened_]) cr-input {
--cr-input-border-radius: 4px 4px 0 0;
}
iron-dropdown,
cr-input {
/* 472px is the max width o... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_searchable_drop_down/cr_searchable_drop_down.html | HTML | unknown | 4,649 |
// 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.
/**
* @fileoverview 'cr-searchable-drop-down' implements a search box with a
* suggestions drop down.
*
* If the update-value-on-input flag is set, value will be set to wha... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_searchable_drop_down/cr_searchable_drop_down.ts | TypeScript | unknown | 14,699 |
/* 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. */
/* #css_wrapper_metadata_start
* #type=style
* #import=./cr_shared_vars.css.js
* #import=./cr_hidden_style.css.js
* #import=./cr_icons.css.js
* #scheme=relative
* #inc... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_shared_style.css | CSS | unknown | 4,122 |
/* 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. */
/* #css_wrapper_metadata_start
* #type=vars
* #import=//resources/polymer/v3_0/paper-styles/color.js
* #scheme=relative
* #css_wrapper_metadata_end */
/* Common css var... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_shared_vars.css | CSS | unknown | 12,685 |
<style include="cr-hidden-style">
:host {
--cr-slider-active-color: var(--google-blue-600);
--cr-slider-container-color: rgba(var(--google-blue-600-rgb), .24);
--cr-slider-container-disabled-color:
rgba(var(--google-grey-600-rgb), .24);
--cr-slider-disabled-color: v... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_slider/cr_slider.html | HTML | unknown | 6,589 |
// 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.
/**
* @fileoverview 'cr-slider' is a slider component used to select a number from
* a continuous or discrete range of numbers.
*/
import '../cr_hidden_style.css.js';
import... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_slider/cr_slider.ts | TypeScript | unknown | 14,141 |
// 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.
/* Minimal externs file provided for places in the code that
* still use JavaScript instead of TypeScript.
* @externs
*/
/**
* @typedef {{
* value: number,
* label: ... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_slider/cr_slider_externs.js | JavaScript | unknown | 611 |
// 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 '//resources/js/assert_ts.js';
export class CrSplitterElement extends HTMLElement {
static get is() {
return 'cr-splitter';
}
private handlers_... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_splitter/cr_splitter.ts | TypeScript | unknown | 6,339 |
<style>
:host {
display: flex;
flex-direction: column;
width: fit-content;
--tabs-background-color: #fbfbfb;
--tabs-border-color: #c8c8c8;
--tabs-hover-text-color: black;
--tabs-unselected-text-color: #646464;
}
#tablist {
background: var(--tabs-background-color);
border-botto... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_tab_box/cr_tab_box.html | HTML | unknown | 1,893 |
// 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 '//resources/js/assert_ts.js';
import {CustomElement} from '//resources/js/custom_element.js';
import {FocusOutlineManager} from '//resources/js/focus_outl... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_tab_box/cr_tab_box.ts | TypeScript | unknown | 3,802 |
<style include="cr-hidden-style">
:host {
cursor: pointer;
display: flex;
flex-direction: row;
font-size: var(--cr-tabs-font-size, 14px);
font-weight: 500;
height: var(--cr-tabs-height, 48px);
user-select: none;
}
.tab {
align-items:... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_tabs/cr_tabs.html | HTML | unknown | 3,590 |
// 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 'cr-tabs' is a control used for selecting different sections or
* tabs. cr-tabs was created to replace paper-tabs and paper-tab. cr-tabs
* displays the n... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_tabs/cr_tabs.ts | TypeScript | unknown | 5,462 |
<style include="cr-hidden-style cr-input-style cr-shared-style">
textarea {
display: block;
resize: none;
}
#input-container {
background-color: var(--cr-input-background-color);
}
:host([autogrow][has-max-height]) #input-container {
box-sizing: content-box;
max-height: var(--cr-textarea... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_textarea/cr_textarea.html | HTML | unknown | 2,927 |
// 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.
/**
* @fileoverview 'cr-textarea' is a component similar to native textarea,
* and inherits styling from cr-input.
*/
import '../cr_hidden_style.css.js';
import '../cr_share... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_textarea/cr_textarea.ts | TypeScript | unknown | 5,269 |
<style>
:host {
--cr-toast-background: #323232;
--cr-toast-button-color: var(--google-blue-300);
--cr-toast-text-color: #fff;
}
@media (prefers-color-scheme: dark) {
:host {
--cr-toast-background: var(--google-grey-900)
linear-gradient(rgba(... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_toast/cr_toast.html | HTML | unknown | 1,946 |
// 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.
/**
* @fileoverview A lightweight toast.
*/
import '//resources/polymer/v3_0/paper-styles/color.js';
import '../cr_shared_vars.css.js';
import {PolymerElement} from '//resour... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_toast/cr_toast.ts | TypeScript | unknown | 2,806 |
// 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.
/* Minimal externs file provided for places in the code that
* still use JavaScript instead of TypeScript.
* @externs
*/
/**
* @constructor
* @extends {HTMLElement}
*/
f... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_toast/cr_toast_externs.js | JavaScript | unknown | 396 |
<style include="cr-hidden-style">
#content {
display: flex;
flex: 1;
}
.collapsible {
overflow: hidden;
text-overflow: ellipsis;
}
span {
white-space: pre;
}
.elided-text {
overflow: hidden;
text-overflow: ellipsis;... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_toast/cr_toast_manager.html | HTML | unknown | 521 |
// 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 Element which shows toasts with optional undo button. */
import '../cr_hidden_style.css.js';
import './cr_toast.js';
import {assert} from '//resources/js/as... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_toast/cr_toast_manager.ts | TypeScript | unknown | 2,790 |
<style>
:host {
--cr-toggle-checked-bar-color: var(--google-blue-600);
--cr-toggle-checked-button-color: var(--google-blue-600);
--cr-toggle-checked-ripple-color:
rgba(var(--google-blue-600-rgb), .2);
--cr-toggle-ripple-diameter: 40px;
--cr-toggle-unchecked-... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_toggle/cr_toggle.html | HTML | unknown | 8,648 |
// 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.
/**
* Number of pixels required to move to consider the pointermove event as
* intentional.
*/
export const MOVE_THRESHOLD_PX: number = 5;
/**
* @fileoverview 'cr-toggle' ... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_toggle/cr_toggle.ts | TypeScript | unknown | 7,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.
/* Minimal externs file provided for places in the code that
* still use JavaScript instead of TypeScript.
* @externs
*/
/**
* @constructor
* @extends {HTMLElement}
*/
f... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_toggle/cr_toggle_externs.js | JavaScript | unknown | 349 |
<style include="cr-icons cr-hidden-style">
:host {
align-items: center;
background-color: var(--cr-toolbar-background-color);
color: var(--google-grey-900);
display: flex;
height: var(--cr-toolbar-height);
}
@media (prefers-color-scheme: dark) {
:ho... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html | HTML | unknown | 4,924 |
// 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 '../cr_icon_button/cr_icon_button.js';
import '../cr_icons.css.js';
import '../cr_hidden_style.css.js';
import '../cr_shared_vars.css.js';
import '../icons.html.js';
imp... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.ts | TypeScript | unknown | 3,564 |
<style include="cr-shared-style cr-icons">
:host {
align-items: center;
display: flex;
height: 40px;
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
width 150ms cubic-bezier(0.4, 0, 0.2, 1);
width: 44px;
}
:host([disabled]) {
... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.html | HTML | unknown | 9,738 |
// 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 '../cr_icon_button/cr_icon_button.js';
import '../cr_icons.css.js';
import '../icons.html.js';
import '../cr_shared_style.css.js';
import '../cr_shared_vars.css.js';
imp... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.ts | TypeScript | unknown | 5,473 |
// 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.
/* Minimal externs file provided for places in the code that
* still use JavaScript instead of TypeScript.
* @externs
*/
/** @interface */
function CrSearchFieldMixinInterf... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field_externs.js | JavaScript | unknown | 880 |
<style>
:host {
background-color: white;
border-bottom: 1px solid var(--google-grey-300);
bottom: 0;
color: var(--cr-primary-text-color);
display: flex;
left: 0;
opacity: 0;
padding-inline-start: var(--cr-toolbar-field-margin, 0);
pointer... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_selection_overlay.html | HTML | unknown | 2,052 |
// 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.
/**
* @fileoverview Element which displays the number of selected items with
* Cancel/Delete buttons, designed to be used as an overlay on top of
* <cr-toolbar>. See <histor... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_selection_overlay.ts | TypeScript | unknown | 3,114 |
<style>
:host {
display: block;
outline: none;
overflow: auto;
}
</style>
| Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_tree/cr_tree.html | HTML | unknown | 90 |
// 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, assertNotReached} from '//resources/js/assert_ts.js';
import {isMac} from '//resources/js/platform.js';
import {getTemplate} from './cr_tree.html.js';
import {... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_tree/cr_tree.ts | TypeScript | unknown | 6,284 |
// 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 '//resources/js/assert_ts.js';
import {CustomElement} from '//resources/js/custom_element.js';
export const EXPANDED_ATTR: string = 'expanded';
// Encapu... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_tree/cr_tree_base.ts | TypeScript | unknown | 3,121 |
<style>
:host {
--white-100: rgba(255, 255, 255, 0);
--white-80: rgba(255, 255, 255, .8);
--leaf-icon: var(--cr-tree-item-leaf-icon,
url(chrome://theme/IDR_FOLDER_CLOSED));
}
:host .tree-row {
align-items: center;
background-color: var(--white-100);
/* transparent whi... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_tree/cr_tree_item.html | HTML | unknown | 4,566 |
// 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, assertNotReached} from '//resources/js/assert_ts.js';
import {CrTreeBaseElement, EXPANDED_ATTR} from './cr_tree_base.js';
import {getTemplate} from './cr_tree_... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_tree/cr_tree_item.ts | TypeScript | unknown | 8,623 |
<style include="cr-hidden-style cr-icons">
:host {
--cr-url-list-item-image-container-border_: 2px solid white;
/* Intentionally 1px higher than the inherited border radius to avoid
* anti-aliasing issues.
*/
--cr-url-list-item-image-container-border-radius_: 5px;
align-items: center;
b... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_url_list_item/cr_url_list_item.html | HTML | unknown | 10,632 |
// 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 '../cr_hidden_style.css.js';
import '../cr_icons.css.js';
import '../cr_shared_vars.css.js';
import '//resources/cr_elements/cr_auto_img/cr_auto_img.js';
import {assert... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_url_list_item/cr_url_list_item.ts | TypeScript | unknown | 5,429 |
<style>
:host ::slotted([slot=view]) {
bottom: 0;
display: none;
left: 0;
position: absolute;
right: 0;
top: 0;
}
:host ::slotted(.active),
:host ::slotted(.closing) {
display: block;
}
</style>
<slot name="view"></slot>
| Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_view_manager/cr_view_manager.html | HTML | unknown | 320 |
// 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 '//resources/js/assert_ts.js';
import {PolymerElement} from '//resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {CrLazyRenderElement} from '... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_view_manager/cr_view_manager.ts | TypeScript | unknown | 4,294 |
// 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.
/* Minimal externs file provided for places in the code that
* still use JavaScript instead of TypeScript.
* @externs
*/
/**
* @constructor
* @extends {HTMLElement}
*/
f... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/cr_view_manager/cr_view_manager_externs.js | JavaScript | unknown | 587 |
// 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, assertNotReached} from '//resources/js/assert_ts.js';
import {KeyboardShortcutList} from '//resources/js/keyboard_shortcut_list.js';
import {isMac} from '//reso... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/find_shortcut_mixin.ts | TypeScript | unknown | 4,865 |
// 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.
// clang-format off
import {afterNextRender, dedupingMixin, PolymerElement} from '//resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {assert} from 'chrome://resou... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/focus_row_mixin.ts | TypeScript | unknown | 13,712 |
// 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
* 'I18nMixin' is a Mixin offering loading of internationalization
* strings. Typically it is used as [[i18n('someString')]] computed bindings or
* for t... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/i18n_mixin.ts | TypeScript | unknown | 5,057 |
<!--
List commonly used icons here to prevent duplication.
Do not add rarely used icons here; place those in your application.
Note that 20px and 24px icons are specified separately (size="", below).
Icons are rendered at 20x20 px, but we don't have 20 px SVGs for everything.
The 24 px icons are used where 20 px icons... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/icons.html | HTML | unknown | 20,702 |
// 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 |ListPropertyUpdateMixin| is used to update an existing
* polymer list property given the list after all the edits were made while
* maintaining the refe... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/list_property_update_mixin.ts | TypeScript | unknown | 3,095 |
/* 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. */
/* #css_wrapper_metadata_start
* #type=style
* #import=./cr_shared_vars.css.js
* #import=//resources/polymer/v3_0/paper-styles/color.js
* #css_wrapper_metadata_end */
.... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/md_select.css | CSS | unknown | 2,408 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview This file provides a mixin to manage a `hovered` style on mouse
* events. Relies on listening for pointer events as touch devices may fire
* mouse events... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/mouse_hoverable_mixin.ts | TypeScript | unknown | 1,321 |
/* 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. */
/* #css_wrapper_metadata_start
* #type=style
* #import=./mwb_shared_vars.css.js
* #css_wrapper_metadata_end */
a,
cr-button,
cr-icon-button,
div {
cursor: default;
}
... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/mwb_element_shared_style.css | CSS | unknown | 634 |
<iron-iconset-svg name="mwb16" size="16">
<svg>
<defs>
<g id="close">
<path d="M13 4.00714L11.9929 3L8 6.99286L4.00714 3L3 4.00714L6.99286 8L3 11.9929L4.00714 13L8 9.00714L11.9929 13L13 11.9929L9.00714 8L13 4.00714Z">
</path>
</g>
<g id="search">
<path fill-rule="evenodd"... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/mwb_shared_icons.html | HTML | unknown | 948 |
/* 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. */
/* #css_wrapper_metadata_start
* #type=style
* #import=./cr_shared_vars.css.js
* #import=./mwb_shared_vars.css.js
* #css_wrapper_metadata_end */
::-webkit-scrollbar-thu... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/mwb_shared_style.css | CSS | unknown | 1,089 |
/* 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. */
/* #css_wrapper_metadata_start
* #type=vars
* #import=./cr_shared_vars.css.js
* #css_wrapper_metadata_end */
html {
--mwb-background-color: white;
--mwb-icon-button-... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/mwb_shared_vars.css | CSS | unknown | 1,706 |
<style include="cr-hidden-style"></style>
<cr-tooltip-icon hidden$="[[!indicatorVisible]]"
tooltip-text="[[indicatorTooltip_]]" icon-class="[[indicatorIcon]]"
icon-aria-label="[[iconAriaLabel]]">
</cr-tooltip-icon>
| Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/policy/cr_policy_indicator.html | HTML | unknown | 243 |
// 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.
/** @fileoverview Polymer element for indicating policies by type. */
import '../cr_hidden_style.css.js';
import './cr_tooltip_icon.js';
import {PolymerElement} from '//resour... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/policy/cr_policy_indicator.ts | TypeScript | unknown | 1,661 |
// 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.
/* Minimal externs file provided for places in the code that
* still use JavaScript instead of TypeScript.
* @externs
*/
/**
* @constructor
* @extends {HTMLElement}
*/
f... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/policy/cr_policy_indicator_externs.js | JavaScript | unknown | 358 |
// 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 Mixin for policy controlled indicators.
* TODO(michaelpg): Since extensions can also control settings and be indicated,
* rework the "policy" naming sche... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/policy/cr_policy_indicator_mixin.ts | TypeScript | unknown | 6,700 |
<style include="cr-hidden-style"></style>
<cr-tooltip-icon id="tooltipIcon" hidden$="[[!indicatorVisible]]"
tooltip-text="[[indicatorTooltip]]" icon-class="[[indicatorIcon]]"
icon-aria-label="[[iconAriaLabel]]" exportparts="tooltip">
</cr-tooltip-icon>
| Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.html | HTML | unknown | 281 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Polymer element for indicating policies that apply to an
* element controlling a settings preference.
*/
import '../cr_hidden_style.css.js';
import './cr... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.ts | TypeScript | unknown | 4,858 |
// 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.
/* Minimal externs file provided for places in the code that
* still use JavaScript instead of TypeScript.
* @externs
*/
/**
* @constructor
* @extends {HTMLElement}
*/
f... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator_externs.js | JavaScript | unknown | 362 |
<style include="cr-shared-style">
:host {
display: flex; /* Position independently from the line-height. */
}
iron-icon {
--iron-icon-width: var(--cr-icon-size);
--iron-icon-height: var(--cr-icon-size);
--iron-icon-fill-color:
var(--cr-tooltip-icon-fil... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/policy/cr_tooltip_icon.html | HTML | unknown | 929 |
// 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 '../icons.html.js';
import '../cr_shared_style.css.js';
import '../cr_shared_vars.css.js';
import '//resources/polymer/v3_0/iron-icon/iron-icon.js';
import '//resources/... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/policy/cr_tooltip_icon.ts | TypeScript | unknown | 1,386 |
// 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.
/* Minimal externs file provided for places in the code that
* still use JavaScript instead of TypeScript.
* @externs
*/
/**
* @constructor
* @extends {HTMLElement}
*/
f... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/policy/cr_tooltip_icon_externs.js | JavaScript | unknown | 354 |
/* 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. */
/* #css_wrapper_metadata_start
* #type=style
* #import=./cr_shared_vars.css.js
* #css_wrapper_metadata_end */
.search-bubble {
--search-bubble-color: var(--paper-yello... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/search_highlight_style.css | CSS | unknown | 1,163 |
// 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 Mixin to be used by Polymer elements that want to
* automatically remove WebUI listeners when detached.
*/
import {addWebUiListener, removeWebUiListener... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_elements/web_ui_listener_mixin.ts | TypeScript | unknown | 1,907 |
/* 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. */
[is='action-link'] {
cursor: pointer;
display: inline-block;
text-decoration: none;
}
[is='action-link']:hover {
text-decoration: underline;
}
[is='action-link']:a... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/css/action_link.css | CSS | unknown | 555 |
/* Copyright 2012 The Chromium Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
/* This file holds CSS that should be shared, in theory, by all user-visible
* chrome:// pages. */
@import url(chrome://resources/css/text_defaults.css);
@import url(widge... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/css/chrome_shared.css | CSS | unknown | 2,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. */
list,
grid {
display: block;
outline: none;
overflow: auto;
position: relative; /* Make sure that item offsets are relative to the
list. */
... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/css/list.css | CSS | unknown | 2,460 |
/* 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. */
html {
/* This is a custom, Chrome-specific color that does not have a --paper or
* --google equivalent. */
--md-background-color: rgb(248, 249, 250);
--md-loading-... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/css/md_colors.css | CSS | unknown | 733 |
/* 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. */
cr-menu {
-webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, .50);
background: white;
border-radius: 2px;
color: black;
cursor: default;
left: 0;
margin: 0;
outline... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/css/menu.css | CSS | unknown | 1,824 |
/* 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. */
/* NOTE: If you are using the drop-down style, you must first call
* MenuButton.createDropDownArrows() to initialize the CSS canvases that
* contain the arrow images. */
... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/css/menu_button.css | CSS | unknown | 995 |
/* 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. */
.os-link-container-container {
margin: 20px;
}
.os-link-container {
align-items: center;
/* color_primary GRAY 200 */
border: 1px solid rgb(232, 234, 237);
font-f... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/css/os_header.css | CSS | unknown | 888 |
/* 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. */
/* The shield that overlays the background. */
.overlay {
-webkit-box-align: center;
-webkit-box-orient: vertical;
-webkit-box-pack: center;
background-color: rgba(2... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/css/overlay.css | CSS | unknown | 4,797 |
/* 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. */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'),
url(//resources/roboto/roboto-regular.... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/css/roboto.css | CSS | unknown | 750 |
/* 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. */
.inline-spinner,
.spinner {
background-image: url(../images/throbber_small.svg);
background-size: 100%;
}
.inline-spinner {
display: inline-block;
height: 16px;
w... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/css/spinner.css | CSS | unknown | 379 |
/* 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. */
/* This file is dynamically processed by a C++ data source handler to fill in
* some per-platform/locale styles that dramatically alter the page. This is
* done to reduce ... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/css/text_defaults.css | CSS | unknown | 844 |
/* 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. */
/* This file is dynamically processed by a C++ data source handler to fill in
* some per-platform/locale styles that dramatically alter the page. This is
* done to reduce ... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/css/text_defaults_md.css | CSS | unknown | 940 |
/* 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. */
.throbber {
background: url(../images/throbber_small.svg) no-repeat;
display: inline-block;
height: 16px;
width: 16px;
}
| Zhao-PengFei35/chromium_src_4 | ui/webui/resources/css/throbber.css | CSS | unknown | 276 |
/* 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. */
/* This file defines styles for form controls. The order of rule blocks is
* important as there are some rules with equal specificity that rely on order
* as a tiebreaker.... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/css/widgets.css | CSS | unknown | 7,854 |
// 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.
// Action links are elements that are used to perform an in-page navigation or
// action (e.g. showing a dialog).
//
// They look like normal anchor (<a>) tags as their text co... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/action_link.ts | TypeScript | unknown | 4,182 |
// 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 better version of assert.js for TypeScript. */
/**
* Verify |value| is truthy.
* @param value A value to check for truthiness. Note that this
* may ... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/assert_ts.ts | TypeScript | unknown | 1,477 |
// 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 {CommandHandlerFactory, CommandHandlerRemote} from '../browser_command.mojom-webui.js';
/**
* @fileoverview This file provides a class that exposes the Mojo handler
*... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/browser_command/browser_command_proxy.ts | TypeScript | unknown | 970 |
// 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 Helper functions for color manipulations.
*/
import {SkColor} from '//resources/mojo/skia/public/mojom/skcolor.mojom-webui.js';
/**
* Converts an SkCol... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/color_utils.ts | TypeScript | unknown | 1,663 |
// 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 './assert_ts.js';
import {PromiseResolver} from './promise_resolver.js';
export interface WebUiListener {
eventName: string;
uid: number;
}
/** Count... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/cr.ts | TypeScript | unknown | 4,973 |
// 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 Base class for Web Components that don't use Polymer.
* See the following file for usage:
* chrome/test/data/webui/js/custom_element_test.js
*/
functi... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/custom_element.ts | TypeScript | unknown | 1,079 |
// 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.
/**
* @fileoverview Extern for window.domAutomationController which is used in
* browsertests.
*/
/** @constructor */
function DomAutomationController() {}
/** @param {*} ... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/dom_automation_controller.js | JavaScript | unknown | 466 |
// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview DragWrapper
* A class for simplifying HTML5 drag and drop. Classes should use this to
* handle the details of nested drag enters and leaves.
*/
export i... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/drag_wrapper.ts | TypeScript | unknown | 3,479 |
// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview EventTracker is a simple class that manages the addition and
* removal of DOM event listeners. In particular, it keeps track of all
* listeners that have... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/event_tracker.ts | TypeScript | unknown | 2,605 |
// 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.
// clang-format off
import {assert} from './assert_ts.js';
import {FocusRow, FocusRowDelegate} from './focus_row.js';
// clang-format on
/**
* A class to manage grid of focus... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/focus_grid.ts | TypeScript | unknown | 4,546 |
// 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.
/**
* The class name to set on the document element.
*/
const CLASS_NAME = 'focus-outline-visible';
const docsToManager: Map<Document, FocusOutlineManager> = new Map();
/**... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/focus_outline_manager.ts | TypeScript | unknown | 2,180 |
// 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.
// clang-format off
import {assert, assertInstanceof} from './assert_ts.js';
import {EventTracker} from './event_tracker.js';
import {hasKeyModifiers, isRTL} from './util_ts.js... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/focus_row.ts | TypeScript | unknown | 9,884 |
// 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.
// clang-format off
import {assert} from './assert_ts.js';
import {isIOS} from './platform.js';
// clang-format on
let hideInk = false;
assert(!isIOS, 'pointerdown doesn\'t ... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/focus_without_ink.ts | TypeScript | unknown | 1,428 |
// 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 {isAndroid, isIOS} from './platform.js';
/**
* @return The scale factors supported by this platform for webui resources.
*/
function getSupportedScaleFactors(): numbe... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/icon.ts | TypeScript | unknown | 5,737 |
// 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.
// Note: The API should stay in sync with the IDL definitions in
// third_party/WebKit/Source/core/mojo
// eslint-disable-next-line no-var
var Mojo = Mojo || {};
/**
* MojoR... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/ios/mojo_api.js | JavaScript | unknown | 9,256 |
// 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.
window['chrome'] = window['chrome'] || {};
/**
* Sends messages to the browser. See
* https://chromium.googlesource.com/chromium/src/+/main/docs/webui_explainer.md#chrome_se... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/ios/web_ui.js | JavaScript | unknown | 594 |
// 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.
/** This is used to identify keyboard shortcuts. */
class KeyboardShortcut {
private useKeyCode_: boolean = false;
private mods_: {[key: string]: boolean} = {};
private k... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/keyboard_shortcut_list.ts | TypeScript | unknown | 2,557 |