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 |
|---|---|---|---|---|---|
include_rules = [
# The WebUI examples currently depends on HTML in the chrome directory.
# Production code outside of //chrome should not depend on //chrome.
# This is a one-time exception as the WebUI examples is a non-production app.
"+chrome/grit/webui_gallery_resources.h",
"+chrome/grit/webui_gallery_res... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/DEPS | Python | unknown | 864 |
// 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.
#include "base/command_line.h"
#include "build/build_config.h"
#include "content/public/app/content_main.h"
#include "ui/webui/examples/app/main_delegate.h"
#if BUILDFLAG(IS_W... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/app/main.cc | C++ | unknown | 1,157 |
// 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.
#include "ui/webui/examples/app/main_delegate.h"
#include "base/check.h"
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "u... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/app/main_delegate.cc | C++ | unknown | 1,450 |
// 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.
#ifndef UI_WEBUI_EXAMPLES_APP_MAIN_DELEGATE_H_
#define UI_WEBUI_EXAMPLES_APP_MAIN_DELEGATE_H_
#include "content/public/app/content_main_delegate.h"
namespace content {
class ... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/app/main_delegate.h | C++ | unknown | 1,063 |
// 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.
#include "ui/webui/examples/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/resource_context.h"
namespace webui... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/browser_context.cc | C++ | unknown | 2,674 |
// 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.
#ifndef UI_WEBUI_EXAMPLES_BROWSER_BROWSER_CONTEXT_H_
#define UI_WEBUI_EXAMPLES_BROWSER_BROWSER_CONTEXT_H_
#include <memory>
#include "base/files/file_path.h"
#include "build/... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/browser_context.h | C++ | unknown | 2,274 |
// 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.
#include "ui/webui/examples/browser/browser_main_parts.h"
#include <tuple>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/raw_p... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/browser_main_parts.cc | C++ | unknown | 5,845 |
// 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.
#ifndef UI_WEBUI_EXAMPLES_BROWSER_BROWSER_MAIN_PARTS_H_
#define UI_WEBUI_EXAMPLES_BROWSER_BROWSER_MAIN_PARTS_H_
#include <string>
#include "base/files/scoped_temp_dir.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/browser_main_parts.h | C++ | unknown | 2,091 |
// 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.
#include "ui/webui/examples/browser/content_browser_client.h"
#include "content/public/browser/devtools_manager_delegate.h"
#include "content/public/browser/web_contents_view_... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/content_browser_client.cc | C++ | unknown | 1,221 |
// 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.
#ifndef UI_WEBUI_EXAMPLES_BROWSER_CONTENT_BROWSER_CLIENT_H_
#define UI_WEBUI_EXAMPLES_BROWSER_CONTENT_BROWSER_CLIENT_H_
#include <memory>
#include "base/memory/raw_ptr.h"
#in... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/content_browser_client.h | C++ | unknown | 1,249 |
// 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.
#include "ui/webui/examples/browser/devtools/devtools_frontend.h"
#include <map>
#include <memory>
#include "base/guid.h"
#include "base/memory/ref_counted.h"
#include "base/... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/devtools/devtools_frontend.cc | C++ | unknown | 9,812 |
// 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.
#ifndef UI_WEBUI_EXAMPLES_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_H_
#define UI_WEBUI_EXAMPLES_BROWSER_DEVTOOLS_DEVTOOLS_FRONTEND_H_
#include "url/gurl.h"
namespace content {
clas... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/devtools/devtools_frontend.h | C++ | unknown | 1,153 |
// 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.
#include "ui/webui/examples/browser/devtools/devtools_manager_delegate.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/devtools_agent_h... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/devtools/devtools_manager_delegate.cc | C++ | unknown | 1,372 |
// 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.
#ifndef UI_WEBUI_EXAMPLES_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_DELEGATE_H_
#define UI_WEBUI_EXAMPLES_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_DELEGATE_H_
#include "base/functional/callb... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/devtools/devtools_manager_delegate.h | C++ | unknown | 1,653 |
// 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.
#include "ui/webui/examples/browser/devtools/devtools_server.h"
#include "base/atomicops.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "content/... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/devtools/devtools_server.cc | C++ | unknown | 2,615 |
// 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.
#ifndef UI_WEBUI_EXAMPLES_BROWSER_DEVTOOLS_DEVTOOLS_SERVER_H_
#define UI_WEBUI_EXAMPLES_BROWSER_DEVTOOLS_DEVTOOLS_SERVER_H_
namespace content {
class BrowserContext;
} // nam... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/devtools/devtools_server.h | C++ | unknown | 607 |
// 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.
#include "ui/webui/examples/browser/ui/aura/aura_context.h"
#include "ui/aura/client/cursor_client.h"
#include "ui/aura/client/focus_client.h"
#include "ui/aura/test/test_scre... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/ui/aura/aura_context.cc | C++ | unknown | 5,462 |
// 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.
#ifndef UI_WEBUI_EXAMPLES_BROWSER_UI_AURA_AURA_CONTEXT_H_
#define UI_WEBUI_EXAMPLES_BROWSER_UI_AURA_AURA_CONTEXT_H_
#include <memory>
#include "base/memory/raw_ptr.h"
#includ... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/ui/aura/aura_context.h | C++ | unknown | 1,998 |
// 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.
#include "ui/webui/examples/browser/ui/aura/content_window.h"
#include "base/containers/flat_set.h"
#include "base/no_destructor.h"
#include "content/public/browser/browser_co... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/ui/aura/content_window.cc | C++ | unknown | 2,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.
#ifndef UI_WEBUI_EXAMPLES_BROWSER_UI_AURA_CONTENT_WINDOW_H_
#define UI_WEBUI_EXAMPLES_BROWSER_UI_AURA_CONTENT_WINDOW_H_
#include "base/functional/callback.h"
#include "ui/webu... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/ui/aura/content_window.h | C++ | unknown | 1,437 |
// 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.
#include "ui/webui/examples/browser/ui/aura/fill_layout.h"
#include "ui/aura/window.h"
namespace webui_examples {
FillLayout::FillLayout(aura::Window* root) : root_(root) {}... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/ui/aura/fill_layout.cc | C++ | unknown | 1,142 |
// 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.
#ifndef UI_WEBUI_EXAMPLES_BROWSER_UI_AURA_FILL_LAYOUT_H_
#define UI_WEBUI_EXAMPLES_BROWSER_UI_AURA_FILL_LAYOUT_H_
#include "base/memory/raw_ptr.h"
#include "ui/aura/layout_man... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/ui/aura/fill_layout.h | C++ | unknown | 1,240 |
// 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.
#include "ui/webui/examples/browser/ui/web/webui.h"
#include "chrome/grit/webui_gallery_resources.h"
#include "chrome/grit/webui_gallery_resources_map.h"
#include "content/pub... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/ui/web/webui.cc | C++ | unknown | 2,600 |
// 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.
#ifndef UI_WEBUI_EXAMPLES_BROWSER_UI_WEB_WEBUI_H_
#define UI_WEBUI_EXAMPLES_BROWSER_UI_WEB_WEBUI_H_
#include "content/public/browser/web_ui_controller.h"
namespace webui_exam... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/ui/web/webui.h | C++ | unknown | 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.
#include "ui/webui/examples/browser/webui_controller_factory.h"
#include "content/public/browser/web_ui_controller.h"
#include "ui/webui/examples/browser/ui/web/webui.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/webui_controller_factory.cc | C++ | unknown | 1,413 |
// 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.
#ifndef UI_WEBUI_EXAMPLES_BROWSER_WEBUI_CONTROLLER_FACTORY_H_
#define UI_WEBUI_EXAMPLES_BROWSER_WEBUI_CONTROLLER_FACTORY_H_
#include "content/public/browser/web_ui_controller_... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/browser/webui_controller_factory.h | C++ | unknown | 1,194 |
// 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.
#include "ui/webui/examples/common/content_client.h"
#include "ui/base/resource/resource_bundle.h"
namespace webui_examples {
ContentClient::ContentClient() = default;
Conte... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/common/content_client.cc | C++ | unknown | 793 |
// 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.
#ifndef UI_WEBUI_EXAMPLES_COMMON_CONTENT_CLIENT_H_
#define UI_WEBUI_EXAMPLES_COMMON_CONTENT_CLIENT_H_
#include "content/public/common/content_client.h"
namespace webui_exampl... | Zhao-PengFei35/chromium_src_4 | ui/webui/examples/common/content_client.h | C++ | unknown | 862 |
// 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.
#include "ui/webui/mojo_bubble_web_ui_controller.h"
#include "content/public/browser/web_ui.h"
namespace ui {
MojoBubbleWebUIController::MojoBubbleWebUIController(content::W... | Zhao-PengFei35/chromium_src_4 | ui/webui/mojo_bubble_web_ui_controller.cc | C++ | unknown | 561 |
// 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.
#ifndef UI_WEBUI_MOJO_BUBBLE_WEB_UI_CONTROLLER_H_
#define UI_WEBUI_MOJO_BUBBLE_WEB_UI_CONTROLLER_H_
#include "base/memory/weak_ptr.h"
#include "ui/webui/mojo_web_ui_controller... | Zhao-PengFei35/chromium_src_4 | ui/webui/mojo_bubble_web_ui_controller.h | C++ | unknown | 1,530 |
// 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.
#include "ui/webui/mojo_web_ui_controller.h"
#include "content/public/common/bindings_policy.h"
namespace ui {
MojoWebUIController::MojoWebUIController(content::WebUI* conte... | Zhao-PengFei35/chromium_src_4 | ui/webui/mojo_web_ui_controller.cc | C++ | unknown | 676 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_WEBUI_MOJO_WEB_UI_CONTROLLER_H_
#define UI_WEBUI_MOJO_WEB_UI_CONTROLLER_H_
#include "content/public/browser/web_ui.h"
#include "content/public/browser/web_ui_contro... | Zhao-PengFei35/chromium_src_4 | ui/webui/mojo_web_ui_controller.h | C++ | unknown | 1,687 |
# 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.
USE_PYTHON3 = True
PRESUBMIT_VERSION = '2.0.0'
def CheckForTranslations(input_api, output_api):
shared_keywords = ['i18n(']
html_keywords = shared_keywords + ['$118n{']
js... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/PRESUBMIT.py | Python | unknown | 3,442 |
specific_include_rules = {
"app_management_mojom_traits\.*": [
"+components/services/app_service/public",
],
}
| Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/DEPS | Python | unknown | 119 |
// 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.
#include "ui/webui/resources/cr_components/app_management/app_management_mojom_traits.h"
#include <utility>
namespace mojo {
AppType EnumTraits<AppType, apps::AppType>::ToMo... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/app_management_mojom_traits.cc | C++ | unknown | 12,999 |
// 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.
#ifndef UI_WEBUI_RESOURCES_CR_COMPONENTS_APP_MANAGEMENT_APP_MANAGEMENT_MOJOM_TRAITS_H_
#define UI_WEBUI_RESOURCES_CR_COMPONENTS_APP_MANAGEMENT_APP_MANAGEMENT_MOJOM_TRAITS_H_
#... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/app_management_mojom_traits.h | C++ | unknown | 4,553 |
// 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.
#include <utility>
#include "components/services/app_service/public/cpp/app_types.h"
#include "components/services/app_service/public/cpp/permission.h"
#include "components/se... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/app_management_mojom_traits_unittests.cc | C++ | unknown | 9,129 |
/* 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=./shared_vars.css.js
* #import=//resources/cr_elements/cr_shared_style.css.js
* #import=//resources/cr_elements/cr... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/app_management_shared_style.css | CSS | unknown | 3,117 |
// 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 {PageCallbackRouter, PageHandlerFactory, PageHandlerInterface, PageHandlerRemote} from './app_management.mojom-webui.js';
export class BrowserProxy {
callbackRouter: ... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/browser_proxy.ts | TypeScript | unknown | 1,086 |
// 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.
export {AppType, InstallReason, InstallSource, OptionalBool, RunOnOsLogin, RunOnOsLoginMode, WindowMode} from './app_management.mojom-webui.js';
/**
* The number of apps disp... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/constants.ts | TypeScript | unknown | 2,560 |
<style include="app-management-shared-style">
:host(:not([available_])) {
display: none;
}
#file-handling-item {
margin: var(--row-item-vertical-padding) 0;
width: 100%;
}
#toggle-row:not([disabled_]) {
cursor: pointer;
}
#dialog-body {
user-select: text;
}
</style>
<div id="file... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/file_handling_item.html | HTML | unknown | 1,431 |
// 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 './app_management_shared_style.css.js';
import './toggle_row.js';
import {assert} from '//resources/js/assert_ts.js';
import {CrDialogElement} from 'chrome://resources/... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/file_handling_item.ts | TypeScript | unknown | 4,640 |
<style include="app-management-shared-style">
:host {
align-items: center;
cursor: pointer;
display: flex;
flex: 1;
justify-content: space-between;
}
</style>
<div id="label" aria-hidden="true">
[[morePermissionsLabel]]
</div>
<div class="permission-row-controls">
<cr-icon-button class="nati... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/more_permissions_item.html | HTML | unknown | 435 |
// 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 './app_management_shared_style.css.js';
import '//resources/cr_elements/cr_icon_button/cr_icon_button.js';
import {PolymerElement} from 'chrome://resources/polymer/v3_0... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/more_permissions_item.ts | TypeScript | unknown | 1,571 |
// 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 {PermissionType} from './app_management.mojom-webui.js';
export type PermissionTypeIndex = keyof typeof PermissionType;
| Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/permission_constants.ts | TypeScript | unknown | 272 |
<style include="app-management-shared-style">
:host {
align-items: center;
display: flex;
justify-content: space-between;
}
:host(:not([disabled_])) {
cursor: pointer;
}
:host(:not([available_])) {
display: none;
}
</style>
<!-- permission-item does not include any icon-set, so contain... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/permission_item.html | HTML | unknown | 866 |
// 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 './app_management_shared_style.css.js';
import './toggle_row.js';
import {assert, assertNotReached} from '//resources/js/assert_ts.js';
import {PolymerElement} from 'chr... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/permission_item.ts | TypeScript | unknown | 8,521 |
// 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 'chrome://resources/js/assert_ts.js';
import {Permission, PermissionType, PermissionValue, TriState} from './app_management.mojom-webui.... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/permission_util.ts | TypeScript | unknown | 2,300 |
<app-management-toggle-row
id="toggle-row"
label="[[loginModeLabel]]"
managed="[[isManaged_(app)]]"
value="[[getValue_(app)]]">
</app-management-toggle-row>
| Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/run_on_os_login_item.html | HTML | unknown | 169 |
// 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 './app_management_shared_style.css.js';
import './toggle_row.js';
import {assert, assertNotReached} from '//resources/js/assert_ts.js';
import {PolymerElement} from 'ch... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/run_on_os_login_item.ts | TypeScript | unknown | 3,694 |
/* 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/cr_elements/cr_shared_vars.css.js
* #css_wrapper_metadata_end */
html {
--app-management-font-size: 1... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/shared_vars.css | CSS | unknown | 1,157 |
<style include="app-management-shared-style">
:host {
align-items: center;
display: flex;
flex: 1;
justify-content: space-between;
}
#icon {
padding-inline-end: var(--row-item-icon-padding);
}
#policyIndicator {
padding-inline-end: var(--app-management-controlled-by-spacing);
}
</s... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/toggle_row.html | HTML | unknown | 1,204 |
// 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 './app_management_shared_style.css.js';
import '//resources/cr_elements/cr_toggle/cr_toggle.js';
import '//resources/cr_elements/policy/cr_policy_indicator.js';
import '/... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/toggle_row.ts | TypeScript | unknown | 1,545 |
<style include="app-management-shared-style">
:host {
align-items: center;
display: flex;
flex-direction: row;
}
#policyIndicator {
padding-inline-end: var(--app-management-controlled-by-spacing);
}
</style>
<template is="dom-if" if="[[showPolicyIndicator_(app)]]">
<cr-tooltip-icon
id="... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/uninstall_button.html | HTML | unknown | 718 |
// 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 './app_management_shared_style.css.js';
import '//resources/cr_elements/cr_button/cr_button.js';
import '//resources/cr_elements/policy/cr_tooltip_icon.js';
import {Pol... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/uninstall_button.ts | TypeScript | unknown | 2,594 |
// 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, assertNotReached} from 'chrome://resources/js/assert_ts.js';
import {App, Permission, PermissionType} from './app_management.mojom-webui.js';
import {BrowserPr... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/util.ts | TypeScript | unknown | 3,588 |
<app-management-toggle-row
id="toggle-row"
label="[[windowModeLabel]]"
value="[[getValue_(app)]]">
</app-management-toggle-row>
| Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/window_mode_item.html | HTML | unknown | 140 |
// 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 './app_management_shared_style.css.js';
import './toggle_row.js';
import {assert, assertNotReached} from '//resources/js/assert_ts.js';
import {PolymerElement} from 'ch... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/app_management/window_mode_item.ts | TypeScript | unknown | 3,021 |
<style include="certificate-shared">
cr-checkbox,
#description {
margin: 15px 0;
}
</style>
<cr-dialog id="dialog" close-text="[[i18n('close')]]">
<div slot="title">
[[i18n('certificateManagerCaTrustEditDialogTitle')]]
</div>
<div slot="body">
<di... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/ca_trust_edit_dialog.html | HTML | unknown | 1,288 |
// 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 'ca-trust-edit-dialog' allows the user to:
* - specify the trust level of a certificate authority that is being
* imported.
* - edit the trust leve... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/ca_trust_edit_dialog.ts | TypeScript | unknown | 4,172 |
<style include="certificate-shared"></style>
<cr-dialog id="dialog" close-text="[[i18n('close')]]">
<div slot="title">
[[getTitleText_(model, certificateType)]]
</div>
<div slot="body">
<div>[[getDescriptionText_(model, certificateType)]]</div>
</div>
<div slot="but... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_delete_confirmation_dialog.html | HTML | unknown | 598 |
// 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 A confirmation dialog allowing the user to delete various types
* of certificates.
*/
import 'chrome://resources/cr_elements/cr_button/cr_button.js';
imp... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_delete_confirmation_dialog.ts | TypeScript | unknown | 3,853 |
<style include="certificate-shared iron-flex">
.expand-box {
align-items: center;
border-top: var(--cr-separator-line);
display: flex;
min-height: 48px;
padding: 0 20px;
}
</style>
<div class="expand-box">
<div class="flex">[[model.id]]</div>
<... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_entry.html | HTML | unknown | 963 |
// 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 An element that represents an SSL certificate entry.
*/
import 'chrome://resources/cr_elements/cr_expand_button/cr_expand_button.js';
import 'chrome://res... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_entry.ts | TypeScript | unknown | 1,852 |
<style include="certificate-shared iron-flex">
.button-box {
align-items: center;
display: flex;
margin-bottom: 24px;
min-height: 48px;
padding: 0 20px;
}
/* TODO(aee): add platform conditional after crbug/964506 is fixed. */
#importAndBind {
... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_list.html | HTML | unknown | 1,143 |
// 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 'certificate-list' is an element that displays a list of
* certificates.
*/
import 'chrome://resources/cr_elements/cr_button/cr_button.js';
import 'chrom... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_list.ts | TypeScript | unknown | 5,828 |
<style include="cr-hidden-style">
cr-tabs {
--cr-tabs-font-size: inherit;
--cr-tabs-height: 40px;
margin-bottom: 24px;
}
</style>
<template is="dom-if" if="[[showCaTrustEditDialog_]]" restamp>
<ca-trust-edit-dialog model="[[dialogModel_]]">
</ca-trust-edit-di... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_manager.html | HTML | unknown | 2,673 |
// 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 The 'certificate-manager' component manages SSL certificates.
*/
import 'chrome://resources/cr_elements/cr_tabs/cr_tabs.js';
import 'chrome://resources/cr... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_manager.ts | TypeScript | unknown | 9,101 |
// 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 Closure compiler typedefs.
*/
// clang-format off
// <if expr="is_chromeos">
import {CertificateProvisioningProcess} from './certificate_provisioning_bro... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_manager_types.ts | TypeScript | unknown | 2,303 |
<style include="certificate-shared">
cr-input {
--cr-input-error-display: none;
}
</style>
<cr-dialog id="dialog" close-text="[[i18n('close')]]">
<div slot="title">
[[i18n('certificateManagerDecryptPasswordTitle')]]
</div>
<div slot="body">
<cr-input typ... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_password_decryption_dialog.html | HTML | unknown | 782 |
// 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 A dialog prompting the user for a decryption password such that
* a previously exported personal certificate can be imported.
*/
import 'chrome://resourc... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_password_decryption_dialog.ts | TypeScript | unknown | 2,678 |
<style include="certificate-shared">
cr-input {
--cr-input-error-display: none;
margin-top: var(--cr-form-field-bottom-spacing);
}
.password-buttons {
margin-bottom: 20px;
}
</style>
<cr-dialog id="dialog" close-text="[[i18n('close')]]">
<div slot="titl... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_password_encryption_dialog.html | HTML | unknown | 1,275 |
// 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 A dialog prompting the user to encrypt a personal certificate
* before it is exported to disk.
*/
import 'chrome://resources/cr_elements/cr_button/cr_but... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_password_encryption_dialog.ts | TypeScript | unknown | 2,982 |
// 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 A helper object used on Chrome OS from the "Manage
* certificates" section to interact with certificate provisioining processes.
*/
/**
* The 'certific... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_provisioning_browser_proxy.ts | TypeScript | unknown | 2,316 |
<style include="iron-flex">
.button-box {
align-items: center;
display: flex;
min-height: 48px;
}
.label {
color: var(--cr-secondary-text-color);
font-size: 85%;
}
/* A row with two lines of text.
* Consistnt with chrome/browser/resources/settings/settings_shared_css.html
* (which... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_provisioning_details_dialog.html | HTML | unknown | 3,261 |
// 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 'certificate-provisioning-details-dialog' allows the user to
* view the details of an in-progress certiifcate provisioning process.
*/
import 'chrome://r... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_provisioning_details_dialog.ts | TypeScript | unknown | 2,478 |
<style include="certificate-shared iron-flex">
.cert-box {
align-items: center;
border-top: var(--cr-separator-line);
display: flex;
min-height: 48px;
padding: 0 20px;
}
</style>
<div class="cert-box">
<div class="flex" tabindex="0">[[model.certProfileName]]</div>
<cr-icon-button class="icon... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_provisioning_entry.html | HTML | unknown | 757 |
// 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 'certificate-provisioning-entry' is an element that displays
* one certificate provisioning processes.
*/
import 'chrome://resources/cr_elements/cr_actio... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_provisioning_entry.ts | TypeScript | unknown | 2,555 |
<style include="cr-shared-style iron-flex ">
.header-box {
align-items: center;
display: flex;
margin-top: 16px;
min-height: 24px;
padding: 0 20px;
}
.hidden {
display: none;
}
</style>
<template is="dom-if" if="[[showProvisioningDetailsDialog_]]" restamp>
<certificate-provisioning-d... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_provisioning_list.html | HTML | unknown | 891 |
// 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 'certificate-provisioning-list' is an element that displays a
* list of certificate provisioning processes.
*/
import 'chrome://resources/cr_elements/cr_... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_provisioning_list.ts | TypeScript | unknown | 4,739 |
/* 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
* #include=cr-shared-style
* #css_wrapper_metadata_end */
/... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_shared.css | CSS | unknown | 734 |
<style include="certificate-shared cr-icons">
.name {
flex: auto;
}
.untrusted {
color: var(--paper-red-700);
font-weight: 500;
margin-inline-end: 16px;
text-transform: uppercase;
}
:host([is-last]) .list-item {
border-bottom: none;
... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_subentry.html | HTML | unknown | 1,806 |
// 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 certificate-subentry represents an SSL certificate sub-entry.
*/
import 'chrome://resources/cr_elements/cr_action_menu/cr_action_menu.js';
import 'chrome... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificate_subentry.ts | TypeScript | unknown | 5,265 |
// 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 A helper object used from the "Manage certificates" section
* to interact with the browser.
*/
import {sendWithPromise} from 'chrome://resources/js/cr.j... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificates_browser_proxy.ts | TypeScript | unknown | 6,843 |
<style include="certificate-shared"></style>
<cr-dialog id="dialog" close-text="[[i18n('close')]]">
<div slot="title">[[model.title]]</div>
<div slot="body">
<div>[[model.description]]</div>
<template is="dom-if" if="[[model.certificateErrors]]">
<template is="dom-repeat" i... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificates_error_dialog.html | HTML | unknown | 651 |
// 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 A dialog for showing SSL certificate related error messages.
* The user can only close the dialog, there is no other possible interaction.
*/
import 'chr... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/certificate_manager/certificates_error_dialog.ts | TypeScript | unknown | 1,918 |
// 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 singleton class that exposes the Mojo
* handler interface used for one way communication between the JS and the
* browser.
* TODO(t... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/color_change_listener/browser_proxy.ts | TypeScript | unknown | 1,004 |
// 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 holds the functions that allow WebUI to update its
* colors CSS stylesheet when a ColorProvider change in the browser is detected.
*/
import {... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/color_change_listener/colors_css_updater.ts | TypeScript | unknown | 3,741 |
// 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 A helper object used by the customize-themes component to
* interact with the browser.
*/
import {CustomizeThemesClientCallbackRouter, CustomizeThemesHa... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/customize_themes/browser_proxy.ts | TypeScript | unknown | 1,631 |
<style include="cr-hidden-style cr-icons cr-shared-style">
:host {
--cr-customize-themes-grid-gap: 20px;
--cr-customize-themes-icon-size: 72px;
display: inline-block;
}
#thirdPartyThemeContainer {
max-width: 544px;
width: 100%;
}
#thirdPartyTheme {
align-items: center;
border: 1p... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/customize_themes/customize_themes.html | HTML | unknown | 6,220 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'chrome://resources/cr_components/managed_dialog/managed_dialog.js';
import 'chrome://resources/cr_elements/cr_button/cr_button.js';
import 'chrome://resources/cr_elemen... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/customize_themes/customize_themes.ts | TypeScript | unknown | 7,901 |
<style>
:host {
--cr-theme-icon-size: 72px;
cursor: pointer;
display: block;
}
:host,
svg {
display: block;
height: var(--cr-theme-icon-size);
width: var(--cr-theme-icon-size);
}
#ring {
fill: rgba(var(--google-blue-600-rgb), 0.4);
visibility: hidden;
}
#checkMark {
... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/customize_themes/theme_icon.html | HTML | unknown | 1,873 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'chrome://resources/cr_elements/cr_shared_vars.css.js';
import {PolymerElement} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {getTempl... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/customize_themes/theme_icon.ts | TypeScript | unknown | 926 |
<style include="cr-hidden-style">
:host {
border-radius: 8px;
box-shadow: 0 6px 10px 4px rgba(60, 64, 67, 0.15), 0 2px 3px rgba(60, 64, 67, 0.3);
box-sizing: border-box;
position: absolute;
z-index: 1;
}
#arrow {
--help-bubble-arrow-size: 11.3px;
--help-bubble-arrow-size-half: calc(va... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/help_bubble/help_bubble.html | HTML | unknown | 7,696 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview A bubble for displaying in-product help. These are created
* dynamically by HelpBubbleMixin, and their API should be considered an
* implementation detai... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/help_bubble/help_bubble.ts | TypeScript | unknown | 17,384 |
// 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 'chrome://resources/js/assert_ts.js';
import {InsetsF, RectF} from 'chrome://resources/mojo/ui/gfx/geometry/mojom/geometry.mojom-webui.js... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/help_bubble/help_bubble_controller.ts | TypeScript | unknown | 8,740 |
<iron-iconset-svg name="iph" size="24">
<svg>
<defs>
<!--
These icons are copied from Material UI and optimized through SVGOMG
See http://goo.gl/Y1OdAq for instructions on adding additional icons.
-->
<g id="celebration">
<path fill="none" d="M0 0h20v20H0z"></path>
<p... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/help_bubble/help_bubble_icons.html | HTML | unknown | 1,372 |
// 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 Logic common to components that support a help bubble.
*
* A component implementing this mixin should call
* registerHelpBubble() to associate specific ... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/help_bubble/help_bubble_mixin.ts | TypeScript | unknown | 24,314 |
// 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 {HelpBubbleClientCallbackRouter, HelpBubbleHandlerFactory, HelpBubbleHandlerInterface, HelpBubbleHandlerRemote} from './help_bubble.mojom-webui.js';
export interface He... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/help_bubble/help_bubble_proxy.ts | TypeScript | unknown | 1,242 |
// 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 {PageCallbackRouter, PageHandler, PageHandlerRemote} from './history_clusters.mojom-webui.js';
/**
* @fileoverview This file provides a singleton class that exposes th... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/cr_components/history_clusters/browser_proxy.ts | TypeScript | unknown | 1,246 |