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 include="history-clusters-shared-style cr-icons"> :host { --indentation: 52px; --search-query-margin: 10px; display: block; /* Implements the spacing between containers. */ padding-bottom: var(--cluster-padding-vertical); } :host([in-side-panel_]) { --cr-icon-button-margin-start: 8...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/history_clusters/cluster.html
HTML
unknown
3,711
// 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 './cluster_menu.js'; import './search_query.js'; import './history_clusters_shared_style.css.js'; import './shared_vars.css.js'; import './url_visit.js'; import 'chrome:...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/history_clusters/cluster.ts
TypeScript
unknown
11,092
<style include="history-clusters-shared-style"> #actionMenuButton { --cr-icon-button-icon-size: 24px; --cr-icon-button-margin-end: 8px; } </style> <cr-icon-button id="actionMenuButton" class="icon-more-vert" title$="[[i18n('actionMenuDescription')]]" aria-haspopup="menu" on-click="onActionMenuButto...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/history_clusters/cluster_menu.html
HTML
unknown
883
// 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 './history_clusters_shared_style.css.js'; import 'chrome://resources/cr_elements/cr_action_menu/cr_action_menu.js'; import 'chrome://resources/cr_elements/cr_icon_button...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/history_clusters/cluster_menu.ts
TypeScript
unknown
3,340
<style include="history-clusters-shared-style"> :host { color: var(--cr-primary-text-color); display: block; font-size: 0.875rem; /* 14px */ overflow-y: auto; } :host([in-side-panel_]) cr-dialog::part(dialog) { margin: 0 16px; max-width: fit-content; } :host([in-side-panel_]) cr-toa...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/history_clusters/clusters.html
HTML
unknown
3,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 './cluster.js'; import './history_clusters_shared_style.css.js'; import 'chrome://resources/cr_elements/cr_button/cr_button.js'; import 'chrome://resources/cr_elements/c...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/history_clusters/clusters.ts
TypeScript
unknown
15,519
/* 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=chrome://resources/cr_elements/cr_shared_style.css.js * #import=chrome://resources/cr_elements/cr_shared_vars.css.j...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/history_clusters/history_clusters_shared_style.css
CSS
unknown
1,547
// 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 {BrowserProxyImpl} from './browser_proxy.js'; import {Annotation, URLVisit} from './history_cluster_types.mojom-webui.js'; import {ClusterAction, RelatedSearchAction, Vi...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/history_clusters/metrics_proxy.ts
TypeScript
unknown
2,000
<style> :host { align-items: center; background-color: var(--entity-image-background-color); background-position: center; background-repeat: no-repeat; border-radius: 5px; display: flex; flex-shrink: 0; height: 36px; justify-content: center; margin-inline: 0 12px; width: 36...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/history_clusters/page_favicon.html
HTML
unknown
716
// 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 './shared_vars.css.js'; import 'chrome://resources/cr_elements/cr_auto_img/cr_auto_img.js'; import {PageImageServiceBrowserProxy} from 'chrome://resources/cr_components...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/history_clusters/page_favicon.ts
TypeScript
unknown
4,344
<style include="history-clusters-shared-style"> :host { display: block; min-width: 0; } :host-context([chrome-refresh-2023]):host { --border-color: var(--color-suggestion-chip-border, var(--cr-fallback-color-tonal-outline)); --icon-color: var(--color-suggestion-chip-icon, var(--cr...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/history_clusters/search_query.html
HTML
unknown
2,567
// 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 './history_clusters_shared_style.css.js'; import {PaperRippleBehavior} from 'chrome://resources/polymer/v3_0/paper-behaviors/paper-ripple-behavior.js'; import {mixinBeh...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/history_clusters/search_query.ts
TypeScript
unknown
4,187
/* 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=chrome://resources/cr_elements/cr_shared_vars.css.js * #import=chrome://resources/polymer/v3_0/paper-styles/color.js...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/history_clusters/shared_vars.css
CSS
unknown
1,785
<style include="history-clusters-shared-style cr-icons"> :host { align-items: center; cursor: pointer; display: flex; min-height: 64px; } :host(:hover) { background-color: var(--cr-hover-background-color); } .suffix-icons { display: flex; opacity: 0; /* Hides the element while ke...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/history_clusters/url_visit.html
HTML
unknown
4,234
// 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 './page_favicon.js'; import './history_clusters_shared_style.css.js'; import 'chrome://resources/cr_elements/cr_action_menu/cr_action_menu.js'; import 'chrome://resource...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/history_clusters/url_visit.ts
TypeScript
unknown
9,932
// 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 {highlight} from 'chrome://resources/js/search_highlight_utils.js'; import {MatchPosition} from './history_cluster_types.mojom-webui.js'; /** * Populates `container` ...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/history_clusters/utils.ts
TypeScript
unknown
967
<style include="cr-shared-style"> :host { --cr-localized-link-display: inline; display: block; } :host([link-disabled]) { cursor: pointer; opacity: var(--cr-disabled-opacity); pointer-events: none; } a { display: var(--cr-localized-link-display); } a[href] { color: var(--cr-...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/localized_link/localized_link.html
HTML
unknown
638
// 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 'localized-link' takes a localized string that * contains up to one anchor tag, and labels the string contained within the * anchor tag with the entire l...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/localized_link/localized_link.ts
TypeScript
unknown
6,291
// 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_components/localized_link/localized_link_externs.js
JavaScript
unknown
425
<style> iron-icon { --iron-icon-height: var(--cr-icon-size); --iron-icon-width: var(--cr-icon-size); padding-inline-end: 10px; } cr-dialog::part(body-container) { padding-inline-start: 35px; } </style> <cr-dialog id="dialog" close-text="[[i18n('close')]]" show-on-attach> <div slot="title"> ...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/managed_dialog/managed_dialog.html
HTML
unknown
646
// 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 'managed-dialog' is a dialog that is displayed when a user * interact with some UI features which are managed by the user's organization. */ import 'chro...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/managed_dialog/managed_dialog.ts
TypeScript
unknown
1,705
<style> :host { align-items: center; border-top: 1px solid var(--cr-separator-color); color: var(--cr-secondary-text-color); display: none; /* Should be 13px when <html> font-size is 16px */ font-size: 0.8125rem; justify-content: center; padding:...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/managed_footnote/managed_footnote.html
HTML
unknown
886
// 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 Polymer element for indicating that this user is managed by * their organization. This component uses the |isManaged| boolean in * loadTimeData, and the ...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/managed_footnote/managed_footnote.ts
TypeScript
unknown
2,624
// 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 {MostVisitedPageCallbackRouter, MostVisitedPageHandlerFactory, MostVisitedPageHandlerRemote} from './most_visited.mojom-webui.js'; export class MostVisitedBrowserProxy ...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/most_visited/browser_proxy.ts
TypeScript
unknown
1,244
<style include="cr-hidden-style cr-icons"> :host { --icon-button-color-active: var(--google-grey-700); --icon-button-color: var(--google-grey-600); --icon-size: 48px; --tile-background-color: rgb(229, 231, 232); --tile-hover-color: rgba(var(--google-grey-900-rgb), .1); --tile-size: 112px; ...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/most_visited/most_visited.html
HTML
unknown
9,170
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'chrome://resources/cr_elements/cr_action_menu/cr_action_menu.js'; import 'chrome://resources/cr_elements/cr_button/cr_button.js'; import 'chrome://resources/cr_elements...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/most_visited/most_visited.ts
TypeScript
unknown
27,503
// 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. /** * Abstracts built-in JS functions in order to mock in tests. */ export class MostVisitedWindowProxy { matchMedia(query: string): MediaQueryList { return window.matc...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/most_visited/window_proxy.ts
TypeScript
unknown
635
<style import="cr-shared-style"> :host { --action-height: 32px; border: solid 1px var(--google-grey-400); border-radius: calc(var(--action-height) / 2); display: flex; height: var(--action-height); min-width: 0; outline: none; padding-inline-end: 16px; padding-inline-start: 12px; ...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/omnibox/realbox_action.html
HTML
unknown
1,086
// 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 '//resources/cr_elements/cr_shared_style.css.js'; import {sanitizeInnerHtml} from '//resources/js/parse_html_subset.js'; import {PolymerElement} from '//resources/polym...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/omnibox/realbox_action.ts
TypeScript
unknown
2,820
// 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 {PageCallbackRouter, PageHandler, PageHandlerInterface} from './omnibox.mojom-webui.js'; /** * @fileoverview This file provides a singleton class that exposes the Mojo...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/omnibox/realbox_browser_proxy.ts
TypeScript
unknown
1,015
<style include="cr-icons realbox-dropdown-shared-style"> :host { user-select: none; } #content { background-color: var(--color-realbox-results-background); border-radius: calc(0.25 * var(--cr-realbox-height)); box-shadow: var(--cr-realbox-shadow); display: flex; gap: 16px; margin-bott...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/omnibox/realbox_dropdown.html
HTML
unknown
3,994
// 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 './realbox_match.js'; import './realbox_dropdown_shared_style.css.js'; import '//resources/polymer/v3_0/iron-selector/iron-selector.js'; import '//resources/cr_elements/...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/omnibox/realbox_dropdown.ts
TypeScript
unknown
12,971
/* 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 * #css_wrapper_metadata_end */ .action-icon { --cr-icon-button-active-background-color: var(--color-new-tab-page-acti...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/omnibox/realbox_dropdown_shared_style.css
CSS
unknown
744
<style> :host { align-items: center; display: flex; flex-shrink: 0; justify-content: center; width: 32px; } #container { align-items: center; aspect-ratio: 1 / 1; border-radius: var(--cr-realbox-icon-border-radius, 8px); display: flex; justify-content: center; overflow...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/omnibox/realbox_icon.html
HTML
unknown
2,819
// 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 {getFaviconForPageURL} from '//resources/js/icon.js'; import {PolymerElement} from '//resources/polymer/v3_0/polymer/polymer_bundled.min.js'; import {AutocompleteMatch}...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/omnibox/realbox_icon.ts
TypeScript
unknown
6,176
<style include="cr-hidden-style cr-icons realbox-dropdown-shared-style"> :host { display: block; outline: none; } #action { margin-inline-start: 40px; /* icon width + text padding */ } .container { align-items: center; cursor: default; display: flex; overflow: hidden; padding...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/omnibox/realbox_match.html
HTML
unknown
6,119
// 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 './realbox_icon.js'; import './realbox_action.js'; import './realbox_dropdown_shared_style.css.js'; import '//resources/cr_elements/cr_icon_button/cr_icon_button.js'; im...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/omnibox/realbox_match.ts
TypeScript
unknown
13,624
// 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 {assertNotReached} from '//resources/js/assert_ts.js'; import {String16} from '//resources/mojo/mojo/public/mojom/base/string16.mojom-webui.js'; import {TimeTicks} from ...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/omnibox/utils.ts
TypeScript
unknown
1,450
// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview The browser proxy used to access `PageImageService` from WebUI. */ import {PageImageServiceHandler, PageImageServiceHandlerRemote} from './page_image_ser...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/page_image_service/browser_proxy.ts
TypeScript
unknown
849
// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** @fileoverview Utility functions to help use prefs in Polymer controls. */ import {assertNotReached} from 'chrome://resources/js/assert_ts.js'; /** * Converts a string va...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/settings_prefs/pref_util.ts
TypeScript
unknown
1,624
/* 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 * 'settings-prefs' exposes a singleton model of Chrome settings and * preferences, which listens to changes to Chrome prefs allowed in * chrome.setti...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/settings_prefs/prefs.ts
TypeScript
unknown
9,671
// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview Common prefs behavior. */ // clang-format off import {assert} from 'chrome://resources/js/assert_ts.js'; import {dedupingMixin, PolymerElement} from 'chr...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/settings_prefs/prefs_mixin.ts
TypeScript
unknown
3,490
// 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 Global state for prefs initialization status. */ import {PromiseResolver} from 'chrome://resources/js/promise_resolver.js'; class CrSettingsPrefsInterna...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_components/settings_prefs/prefs_types.ts
TypeScript
unknown
1,162
/* 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/action_link.css
CSS
unknown
772
/* 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 * #scheme=relative * #css_wrapper_metadata_end */ /* Style Module that defines color overrides for cr-elements on Chrome OS...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/chromeos/cros_color_overrides.css
CSS
unknown
10,131
<style> :host { clip: rect(0 0 0 0); height: 1px; overflow: hidden; position: fixed; width: 1px; } </style> <div id="messages" role="alert" aria-live="polite" aria-relevant="additions"> </div>
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_a11y_announcer/cr_a11y_announcer.html
HTML
unknown
218
// 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 '//resources/js/assert_ts.js'; import {PolymerElement} from '//resources/polymer/v3_0/polymer/polymer_bundled.min.js'; import {getTemplate} from './cr_a11...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_a11y_announcer/cr_a11y_announcer.ts
TypeScript
unknown
3,613
// 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. /** * @constructor * @extends {HTMLElement} */ function CrA11yAnnouncerElement() {} /** @param {string} message */ CrA11yAnnouncerElement.prototype.announce = function(mess...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_a11y_announcer/cr_a11y_announcer_externs.js
JavaScript
unknown
329
<style> :host dialog { background-color: var(--cr-menu-background-color); border: none; border-radius: 4px; box-shadow: var(--cr-menu-shadow); margin: 0; min-width: 128px; outline: none; padding: 0; position: absolute; } @med...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.html
HTML
unknown
2,217
// 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_shared_vars.css.js'; import {assert} from '//resources/js/assert_ts.js'; import {FocusOutlineManager} from '//resources/js/focus_outline_manager.js'; import {Foc...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.ts
TypeScript
unknown
14,206
// 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 {{ * top: (number|undefined), *...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu_externs.js
JavaScript
unknown
1,137
/* 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 */ :host { align-items: center; align-self: stretch; dis...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_actionable_row_style.css
CSS
unknown
1,233
// 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 <cr-auto-img> is a specialized <img> that facilitates embedding * images into WebUIs via its auto-src attribute. <cr-auto-img> automatically * determines...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_auto_img/cr_auto_img.ts
TypeScript
unknown
5,039
<style include="cr-hidden-style"> :host { --active-shadow-rgb: var(--google-grey-800-rgb); --active-shadow-action-rgb: var(--google-blue-500-rgb); --bg-action: var(--google-blue-600); --border-color: var(--google-grey-300); --disabled-bg-action: var(--google-grey-100); ...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_button/cr_button.html
HTML
unknown
11,888
// 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-button' is a button which displays slotted elements. It can * be interacted with like a normal button using click as well as space and * enter to eff...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_button/cr_button.ts
TypeScript
unknown
6,449
// 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_button/cr_button_externs.js
JavaScript
unknown
409
<style> :host { -webkit-tap-highlight-color: transparent; align-items: center; cursor: pointer; display: flex; outline: none; user-select: none; /* Sizes. */ --cr-checkbox-border-size: 2px; --cr-checkbox-size: 16px; --cr-checkbox...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_checkbox/cr_checkbox.html
HTML
unknown
7,797
// 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-checkbox' is a component similar to native checkbox. It * fires a 'change' event *only* when its state changes as a result of a user * interaction. B...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_checkbox/cr_checkbox.ts
TypeScript
unknown
5,456
// 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 CrContainerShadowMixin holds logic for showing a drop shadow * near the top of a container element, when the content has scrolled. * * Elements using th...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_container_shadow_mixin.ts
TypeScript
unknown
6,707
<style include="cr-hidden-style cr-icons"> dialog { --scroll-border-color: var(--paper-grey-300); --scroll-border: 1px solid var(--scroll-border-color); background-color: var(--cr-dialog-background-color, white); border: 0; border-radius: 8px; bottom: 50%; ...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_dialog/cr_dialog.html
HTML
unknown
5,911
// 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-dialog' is a component for showing a modal dialog. If the * dialog is closed via close(), a 'close' event is fired. If the dialog is * canceled via c...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_dialog/cr_dialog.ts
TypeScript
unknown
10,325
// 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_dialog/cr_dialog_externs.js
JavaScript
unknown
649
<style> :host dialog { --drawer-width: 256px; --transition-timing: 200ms ease; background-color: var(--cr-drawer-background-color, #fff); border: none; bottom: 0; left: calc(-1 * var(--drawer-width)); margin: 0; max-height: initial; max-w...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_drawer/cr_drawer.html
HTML
unknown
3,112
// 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_shared_vars.css.js'; import {assertNotReached} from '//resources/js/assert_ts.js'; import {listenOnce} from '//resources/js/util_ts.js'; import {PolymerElement} ...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_drawer/cr_drawer.ts
TypeScript
unknown
3,269
// 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_drawer/cr_drawer_externs.js
JavaScript
unknown
509
<style include="cr-actionable-row-style"> :host([disabled]) { opacity: 0.65; pointer-events: none; } :host([disabled]) cr-icon-button { display: var(--cr-expand-button-disabled-display, initial); } #label { flex: 1; padding: var(--cr-section-ve...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_expand_button/cr_expand_button.html
HTML
unknown
736
// 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 * 'cr-expand-button' is a chrome-specific wrapper around a button that toggles * between an opened (expanded) and closed state. */ import '../cr_actiona...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_expand_button/cr_expand_button.ts
TypeScript
unknown
4,175
<style> :host { user-select: none; } .translucent { opacity: 0.3; } #canvasDiv { height: 240px; overflow: hidden; position: relative; width: 460px; } cr-lottie { display: inline-block; position: absolute; ...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_fingerprint/cr_fingerprint_progress_arc.html
HTML
unknown
813
// 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 '//resources/polymer/v3_0/iron-icon/iron-icon.js'; import '//resources/polymer/v3_0/iron-media-query/iron-media-query.js'; import './cr_fingerprint_icons.html.js'; impor...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_fingerprint/cr_fingerprint_progress_arc.ts
TypeScript
unknown
14,918
// 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_fingerprint/cr_fingerprint_progress_arc_externs.js
JavaScript
unknown
611
<style> :host { --cr-grid-gap: 0px; --cr-column-width: auto; --cr-grid-width: fit-content; } #grid { display: grid; grid-gap: var(--cr-grid-gap); grid-template-columns: repeat(var(--cr-grid-columns), var(--cr-column-width)); width: var(--cr-grid-width); } ::slotted(*) { align...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_grid/cr_grid.html
HTML
unknown
448
// 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 {PolymerElement} from '//resources/polymer/v3_0/polymer/polymer_bundled.min.js'; import {getTemplate} from './cr_grid.html.js'; // Displays children in a two-dimension...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_grid/cr_grid.ts
TypeScript
unknown
2,921
/* 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 * #scheme=relative * #css_wrapper_metadata_end */ /* Included here so we don't have to include "iron-positioning" in every ...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_hidden_style.css
CSS
unknown
417
<style> :host { --cr-icon-button-fill-color: var(--google-grey-700); --cr-icon-button-icon-start-offset: 0; --cr-icon-button-icon-size: 20px; --cr-icon-button-size: 36px; --cr-icon-button-height: var(--cr-icon-button-size); --cr-icon-button-transition: 150ms eas...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_icon_button/cr_icon_button.html
HTML
unknown
4,454
// 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-icon-button' is a button which displays an icon with a * ripple. It can be interacted with like a normal button using click as well as * space and en...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_icon_button/cr_icon_button.ts
TypeScript
unknown
6,716
/* 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 * #scheme=relative * #css_wrapper_metadata_end */ .icon-arrow-back { --cr-icon-image: url(chrome://resources/images/icon_a...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_icons.css
CSS
unknown
2,851
<style include="cr-hidden-style cr-input-style cr-shared-style"> /* A 'suffix' element will be outside the underlined space, while a 'inline-prefix' and 'inline-suffix' elements will be inside the underlined space by default. Regarding cr-input's width: When there's no...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_input/cr_input.html
HTML
unknown
5,478
// 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 '//resources/polymer/v3_0/paper-styles/color.js'; import '../cr_hidden_style.css.js'; import '../cr_shared_style.css.js'; import '../cr_shared_vars.css.js'; import './cr...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_input/cr_input.ts
TypeScript
unknown
9,045
// 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_input/cr_input_externs.js
JavaScript
unknown
901
/* 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 */ :host { --cr-input-background-color: var(--g...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_input/cr_input_style.css
CSS
unknown
3,391
// 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-lazy-render is a simple variant of dom-if designed for lazy rendering * of elements that are accessed imperatively. * Usage: * <cr-lazy-render i...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_lazy_render/cr_lazy_render.ts
TypeScript
unknown
2,249
<style include="cr-actionable-row-style cr-shared-style cr-hidden-style"> :host { box-sizing: border-box; flex: 1; font-family: inherit; font-size: 100%; /* Specifically for Mac OSX, harmless elsewhere. */ line-height: 154%; /* 20px. */ min-height: var(--cr-section-min-height); padding: ...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_link_row/cr_link_row.html
HTML
unknown
2,031
// 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 link row is a UI element similar to a button, though usually wider than a * button (taking up the whole 'row'). The name link comes from the intended...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_link_row/cr_link_row.ts
TypeScript
unknown
3,188
<style> canvas { height: 100%; width: 100%; } </style> <canvas id="canvas" hidden="[[hidden]]"></canvas>
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_lottie/cr_lottie.html
HTML
unknown
145
// 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-lottie' is a wrapper around the player for lottie * animations. Since the player runs on a worker thread, 'cr-lottie' requires * the document CSP to ...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_lottie/cr_lottie.ts
TypeScript
unknown
12,188
// 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_lottie/cr_lottie_externs.js
JavaScript
unknown
446
// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import {assert} from '//resources/js/assert_ts.js'; import {FocusOutlineManager} from '//resources/js/focus_outline_manager.js'; import {IronSelectableBehavior} from '//resourc...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_menu_selector/cr_menu_selector.ts
TypeScript
unknown
4,311
/* 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 */ .cr-nav-menu-item { --iron-icon-fill-color: var(--google-...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_nav_menu_item_style.css
CSS
unknown
2,069
/* 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 */ /* Common CSS properties for WebUI pages, such as an entire...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_page_host_style.css
CSS
unknown
732
<style include="cr-shared-style"> :host { --avatar-size: 96px; --avatar-spacing: 24px; /* Size of the outline for the selected avatar. This variable can be * modified when using the component with different sizes. */ --selected-border: 4px; display: in...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector.html
HTML
unknown
3,666
// 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-profile-avatar-selector' is an element that displays * profile avatar icons and allows an avatar to be selected. */ import '../cr_button/cr_button.j...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector.ts
TypeScript
unknown
4,217
<style> :host { display: inline-flex; flex-wrap: wrap; margin: calc(var(--avatar-spacing) / -2); } </style> <slot></slot>
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector_grid.html
HTML
unknown
170
// 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-profile-avatar-selector-grid' is an accessible control for * profile avatar icons that allows keyboard navigation with all arrow keys. */ import {as...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector_grid.ts
TypeScript
unknown
3,571
<style include="cr-radio-button-style"> :host { background-color: var(--cr-card-background-color); border-radius: 8px; box-shadow: var(--cr-elevation-1); margin: var(--cr-card-radio-button-margin, 8px); width: var(--cr-card-radio-button-width, 200px); --focus-sh...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_radio_button/cr_card_radio_button.html
HTML
unknown
2,840
// 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 * 'cr-card-radio-button' is a radio button in the style of a card. A checkmark * is displayed in the upper right hand corner if the radio button is selec...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_radio_button/cr_card_radio_button.ts
TypeScript
unknown
2,050
<style include="cr-radio-button-style cr-hidden-style"></style> <div aria-checked$="[[getAriaChecked_(checked)]]" aria-describedby="slotted-content" aria-disabled$="[[getAriaDisabled_(disabled)]]" aria-labelledby="label" class="disc-wrapper" id="button" role="rad...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_radio_button/cr_radio_button.html
HTML
unknown
703
// 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 '//resources/polymer/v3_0/paper-styles/color.js'; import '../cr_hidden_style.css.js'; import '../cr_shared_vars.css.js'; import './cr_radio_button_style.css.js'; import...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_radio_button/cr_radio_button.ts
TypeScript
unknown
1,879
// 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 */ class CrRadioButtonMixinInterface...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_radio_button/cr_radio_button_externs.js
JavaScript
unknown
850
// 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 Mixin for cr-radio-button-like elements. */ // clang-format off import {dedupingMixin, PolymerElement} from '//resources/polymer/v3_0/polymer/polymer_bun...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_radio_button/cr_radio_button_mixin.ts
TypeScript
unknown
4,743
/* 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_shared_vars.css.js * #css_wrapper_metadata_end */ /* Common radio-butto...
Zhao-PengFei35/chromium_src_4
ui/webui/resources/cr_elements/cr_radio_button/cr_radio_button_style.css
CSS
unknown
5,865