code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
// Copyright 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 This file defines a singleton which provides access to all data
* that is available as soon as the page's resources are loaded (before DOM
* content has ... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/load_time_data.ts | TypeScript | unknown | 6,774 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview
* NOTE: This file is deprecated, and provides only the minimal LoadTimeData
* functions for places in the code still not using JS modules. Use
* load_ti... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/load_time_data_deprecated.js | JavaScript | unknown | 5,871 |
// 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 {TimeDelta} from '//resources/mojo/mojo/public/mojom/base/time.mojom-webui.js';
import {PageMetricsCallbackRouter, PageMetricsHost, PageMetricsHostRemote} from '../metr... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/metrics_reporter/browser_proxy.ts | TypeScript | unknown | 1,538 |
// 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 {TimeDelta} from '//resources/mojo/mojo/public/mojom/base/time.mojom-webui.js';
import {assert} from '../assert_ts.js';
import {BrowserProxy, BrowserProxyImpl} from '.... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/metrics_reporter/metrics_reporter.ts | TypeScript | unknown | 4,845 |
// 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 {String16} from 'chrome://resources/mojo/mojo/public/mojom/base/string16.mojom-webui.js';
import {Url} from 'chrome://resources/mojo/url/mojom/url.mojom-webui.js';
expo... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/mojo_type_util.ts | TypeScript | unknown | 708 |
// 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 A helper object used to open a URL in a new tab.
* the browser.
*/
export interface OpenWindowProxy {
/**
* Opens the specified URL in a new tab.
... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/open_window_proxy.ts | TypeScript | unknown | 697 |
// 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 {getRequiredElement} from './util_ts.js';
getRequiredElement('os-link-href').onclick = crosUrlAboutRedirect;
function crosUrlAboutRedirect() {
chrome.send('crosUrlAb... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/os_about.ts | TypeScript | unknown | 337 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert, assertNotReached} from './assert_ts.js';
export interface SanitizeInnerHtmlOpts {
substitutions?: string[];
attrs?: string[];
tags?: string[];
}
/**
* ... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/parse_html_subset.ts | TypeScript | unknown | 7,006 |
// 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 Utilities for determining the current platform. */
/** Whether we are using a Mac or not. */
export const isMac = /Mac/.test(navigator.platform);
/** Whether... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/platform.ts | TypeScript | unknown | 1,140 |
// 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 to get a pluralized string.
*/
// clang-format off
import {sendWithPromise} from './cr.js';
// clang-format on
export interface Plu... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/plural_string_proxy.ts | TypeScript | unknown | 3,004 |
// 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 PromiseResolver is a helper class that allows creating a
* Promise that will be fulfilled (resolved or rejected) some time later.
*
* Example:
* const... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/promise_resolver.ts | TypeScript | unknown | 1,357 |
// 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 './assert_ts.js';
const WRAPPER_CSS_CLASS: string = 'search-highlight-wrapper';
const ORIGINAL_CONTENT_CSS_CLASS: string = 'search-highlight-original-con... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/search_highlight_utils.ts | TypeScript | unknown | 5,973 |
// 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 './assert_ts.js';
/**
* @return Whether the passed tagged template literal is a valid array.
*/
function isValidArray(arr: TemplateStringsArray|readonly... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/static_types.ts | TypeScript | unknown | 2,328 |
// 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.
export interface Action {
name: string;
}
export type DeferredAction = (callback: (p: Action|null) => void) => void;
export interface StoreObserver<T> {
onStateChanged(ne... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/store_ts.ts | TypeScript | unknown | 3,492 |
// 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 Helper script used to load a JS module test into a WebUI page.
//
// Example usage:
// chrome://welcome/test_loader.html?module=my_test.js
//
// will load th... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/test_loader.ts | TypeScript | unknown | 891 |
// 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.
const scriptPolicy: TrustedTypePolicy =
window.trustedTypes!.createPolicy('webui-test-script', {
createHTML: () => '',
createScriptURL: urlString => {
c... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/test_loader_util.ts | TypeScript | unknown | 1,780 |
// 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.
/* @filedescription Minimal utils and assertion support for places in the code
* that are still not updated to JS modules. Do not use in new code. Use
* assert_ts and util_ts... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/util_deprecated.js | JavaScript | unknown | 3,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.
import {assert} from './assert_ts.js';
/**
* Alias for document.getElementById. Found elements must be HTMLElements.
*/
export function $<T extends HTMLElement = HTMLElement... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/js/util_ts.ts | TypeScript | unknown | 4,355 |
<!DOCTYPE html>
<html>
<body>
<script src="chrome://webui-test/mocha.js"></script>
<script src="chrome://webui-test/mocha_adapter.js"></script>
<script type="module" src="test_loader.js"></script>
</body>
</html>
| Zhao-PengFei35/chromium_src_4 | ui/webui/resources/test_loader.html | HTML | unknown | 220 |
# 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.
USE_PYTHON3 = True
def _CheckChangeOnUploadOrCommit(input_api, output_api):
results = []
webui_sources = set([
'optimize_webui.py', 'rollup_plugin.js', 'generate_grd.p... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/tools/PRESUBMIT.py | Python | unknown | 1,181 |
# 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.
# Generates a grit grd file from a list of input manifest files. This is useful
# for preventing the need to list JS files in multiple locations, as files can
# be listed just onc... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/tools/generate_grd.py | Python | unknown | 7,802 |
#!/usr/bin/env python3
# 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 generate_grd
import os
import shutil
import sys
import tempfile
import unittest
_CWD = os.getcwd()
_HERE_DIR = os.path.dirname(__file__)
pathToHere... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/tools/generate_grd_test.py | Python | unknown | 5,944 |
#!/usr/bin/env python3
# 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 argparse
import json
import sys
import os
_HERE_PATH = os.path.dirname(__file__)
_SRC_PATH = os.path.normpath(os.path.join(_HERE_PATH, '..', '..', '... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/tools/minify_js.py | Python | unknown | 1,508 |
#!/usr/bin/env python3
# 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 json
import minify_js
import os
import tempfile
import shutil
import unittest
_HERE_DIR = os.path.dirname(__file__)
class MinifyJsTest(unittest.Te... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/tools/minify_js_test.py | Python | unknown | 1,843 |
#!/usr/bin/env python3
# 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 argparse
import itertools
import json
import os
import glob
import platform
import re
import shutil
import sys
import tempfile
_HERE_PATH = os.path.... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/tools/optimize_webui.py | Python | unknown | 12,416 |
#!/usr/bin/env python3
# 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 json
import optimize_webui
import os
import shutil
import tempfile
import unittest
_CWD = os.getcwd()
_HERE_DIR = os.path.dirname(__file__)
class ... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/tools/optimize_webui_test.py | Python | unknown | 15,340 |
// 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 Plugin for rollup to correctly resolve resources.
*/
import * as path from 'path';
function normalizeSlashes(filepath) {
return filepath.replace(/\\/gi... | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/tools/rollup_plugin.mjs | JavaScript | unknown | 5,598 |
// 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.
// comments should be removed
const foo = {
'bar': 0,
baz: 5,
};
const qux = foo.bar + foo.baz;
| Zhao-PengFei35/chromium_src_4 | ui/webui/resources/tools/tests/minify_js/bar.js | JavaScript | unknown | 248 |
// 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.
const foo={bar:0,baz:5};const qux=foo.bar+foo.baz; | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/tools/tests/minify_js/bar_expected.js | JavaScript | unknown | 193 |
// 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.
const foo = 0;
| Zhao-PengFei35/chromium_src_4 | ui/webui/resources/tools/tests/minify_js/foo.js | JavaScript | unknown | 159 |
// 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.
const foo=0; | Zhao-PengFei35/chromium_src_4 | ui/webui/resources/tools/tests/minify_js/foo_expected.js | JavaScript | unknown | 155 |
// 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/untrusted_bubble_web_ui_controller.h"
#include "content/public/browser/web_ui.h"
#include "content/public/common/bindings_policy.h"
namespace ui {
Untrust... | Zhao-PengFei35/chromium_src_4 | ui/webui/untrusted_bubble_web_ui_controller.cc | C++ | unknown | 843 |
// 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_UNTRUSTED_BUBBLE_WEB_UI_CONTROLLER_H_
#define UI_WEBUI_UNTRUSTED_BUBBLE_WEB_UI_CONTROLLER_H_
#include "ui/webui/mojo_bubble_web_ui_controller.h"
namespace co... | Zhao-PengFei35/chromium_src_4 | ui/webui/untrusted_bubble_web_ui_controller.h | C++ | unknown | 1,133 |
// 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.
#include "ui/webui/untrusted_web_ui_browsertest_util.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/url_constants.h"
#include "ui/webui/un... | Zhao-PengFei35/chromium_src_4 | ui/webui/untrusted_web_ui_browsertest_util.cc | C++ | unknown | 1,621 |
// 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_UNTRUSTED_WEB_UI_BROWSERTEST_UTIL_H_
#define UI_WEBUI_UNTRUSTED_WEB_UI_BROWSERTEST_UTIL_H_
#include "content/public/browser/webui_config.h"
#include "content/... | Zhao-PengFei35/chromium_src_4 | ui/webui/untrusted_web_ui_browsertest_util.h | C++ | unknown | 987 |
// 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/untrusted_web_ui_controller.h"
#include "content/public/browser/web_ui.h"
#include "content/public/common/bindings_policy.h"
namespace ui {
UntrustedWebUI... | Zhao-PengFei35/chromium_src_4 | ui/webui/untrusted_web_ui_controller.cc | C++ | unknown | 624 |
// 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_UNTRUSTED_WEB_UI_CONTROLLER_H_
#define UI_WEBUI_UNTRUSTED_WEB_UI_CONTROLLER_H_
#include "content/public/browser/web_ui_controller.h"
namespace content {
clas... | Zhao-PengFei35/chromium_src_4 | ui/webui/untrusted_web_ui_controller.h | C++ | unknown | 897 |
// 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/untrusted_web_ui_controller_factory.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
#include "content/public/... | Zhao-PengFei35/chromium_src_4 | ui/webui/untrusted_web_ui_controller_factory.cc | C++ | unknown | 2,059 |
// 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_UNTRUSTED_WEB_UI_CONTROLLER_FACTORY_H_
#define UI_WEBUI_UNTRUSTED_WEB_UI_CONTROLLER_FACTORY_H_
#include "content/public/browser/web_ui_controller_factory.h"
... | Zhao-PengFei35/chromium_src_4 | ui/webui/untrusted_web_ui_controller_factory.h | C++ | unknown | 1,978 |
// 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/webui_allowlist.h"
#include <memory>
#include "base/memory/scoped_refptr.h"
#include "base/sequence_checker.h"
#include "base/supports_user_data.h"
#includ... | Zhao-PengFei35/chromium_src_4 | ui/webui/webui_allowlist.cc | C++ | unknown | 4,927 |
// 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_WEBUI_ALLOWLIST_H_
#define UI_WEBUI_WEBUI_ALLOWLIST_H_
#include <initializer_list>
#include <map>
#include "base/memory/raw_ptr.h"
#include "base/memory/ref_... | Zhao-PengFei35/chromium_src_4 | ui/webui/webui_allowlist.h | C++ | unknown | 3,800 |
// 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/webui_allowlist_provider.h"
#include "components/content_settings/core/common/content_settings_pattern.h"
#include "ui/webui/webui_allowlist.h"
WebUIAllowl... | Zhao-PengFei35/chromium_src_4 | ui/webui/webui_allowlist_provider.cc | C++ | unknown | 1,805 |
// 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_WEBUI_ALLOWLIST_PROVIDER_H_
#define UI_WEBUI_WEBUI_ALLOWLIST_PROVIDER_H_
#include "base/synchronization/lock.h"
#include "base/thread_annotations.h"
#include ... | Zhao-PengFei35/chromium_src_4 | ui/webui/webui_allowlist_provider.h | C++ | unknown | 1,926 |
include_rules = [
"+ui/base",
"+ui/aura",
"+ui/events",
"+ui/display",
"+ui/gfx",
]
| Zhao-PengFei35/chromium_src_4 | ui/wm/DEPS | Python | unknown | 94 |
include_rules = [
"+third_party/skia",
"+ui/aura",
"+ui/compositor",
"+ui/compositor_extra",
"+ui/gfx",
"+ui/platform_window",
"+ui/resources/grit/ui_resources.h",
]
| Zhao-PengFei35/chromium_src_4 | ui/wm/core/DEPS | Python | unknown | 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.
#ifndef UI_WM_CORE_ACCELERATOR_DELEGATE_H_
#define UI_WM_CORE_ACCELERATOR_DELEGATE_H_
namespace ui {
class Accelerator;
class KeyEvent;
}
namespace wm {
class AcceleratorDel... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/accelerator_delegate.h | C++ | unknown | 638 |
// 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/wm/core/accelerator_filter.h"
#include <utility>
#include "build/build_config.h"
#include "ui/base/accelerators/accelerator.h"
#include "ui/events/event.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/accelerator_filter.cc | C++ | unknown | 1,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_WM_CORE_ACCELERATOR_FILTER_H_
#define UI_WM_CORE_ACCELERATOR_FILTER_H_
#include <memory>
#include "base/component_export.h"
#include "ui/events/event_handler.h"
n... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/accelerator_filter.h | C++ | unknown | 1,223 |
// 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.
#include "ui/wm/core/base_focus_rules.h"
#include "base/containers/adapters.h"
#include "ui/aura/client/focus_client.h"
#include "ui/aura/window.h"
#include "ui/wm/core/window... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/base_focus_rules.cc | C++ | unknown | 6,564 |
// 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.
#ifndef UI_WM_CORE_BASE_FOCUS_RULES_H_
#define UI_WM_CORE_BASE_FOCUS_RULES_H_
#include "base/component_export.h"
#include "ui/wm/core/focus_rules.h"
namespace wm {
// A set ... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/base_focus_rules.h | C++ | unknown | 1,969 |
// 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.
#include "ui/wm/core/capture_controller.h"
#include "base/observer_list.h"
#include "ui/aura/client/capture_client_observer.h"
#include "ui/aura/env.h"
#include "ui/aura/windo... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/capture_controller.cc | C++ | unknown | 5,384 |
// 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.
#ifndef UI_WM_CORE_CAPTURE_CONTROLLER_H_
#define UI_WM_CORE_CAPTURE_CONTROLLER_H_
#include <map>
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
#include ... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/capture_controller.h | C++ | unknown | 3,714 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/wm/core/capture_controller.h"
#include <memory>
#include <utility>
#include "base/memory/raw_ptr_exclusion.h"
#include "ui/aura/client/capture_delegate.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/capture_controller_unittest.cc | C++ | unknown | 13,051 |
// 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.
#include "ui/wm/core/compound_event_filter.h"
#include "base/check.h"
#include "base/observer_list.h"
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/compound_event_filter.cc | C++ | unknown | 9,563 |
// 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.
#ifndef UI_WM_CORE_COMPOUND_EVENT_FILTER_H_
#define UI_WM_CORE_COMPOUND_EVENT_FILTER_H_
#include "base/component_export.h"
#include "base/observer_list.h"
#include "base/strin... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/compound_event_filter.h | C++ | unknown | 3,430 |
// 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.
#include "ui/wm/core/compound_event_filter.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "ui/aura/client/cursor_client.h"
#include "ui/aur... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/compound_event_filter_unittest.cc | C++ | unknown | 10,631 |
// 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/wm/core/coordinate_conversion.h"
#include "ui/aura/client/screen_position_client.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/point_f.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/coordinate_conversion.cc | C++ | unknown | 2,672 |
// 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_WM_CORE_COORDINATE_CONVERSION_H_
#define UI_WM_CORE_COORDINATE_CONVERSION_H_
#include "base/component_export.h"
namespace aura {
class Window;
} // namespace aura... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/coordinate_conversion.h | C++ | unknown | 1,981 |
// 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.
#include "ui/wm/core/coordinate_conversion.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/aura/test/aura_test_base.h"
#include "ui/aura/test/test_windows.h"
n... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/coordinate_conversion_unittest.cc | C++ | unknown | 1,022 |
// 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.
#include "ui/wm/core/cursor_loader.h"
#include <map>
#include <vector>
#include "base/check.h"
#include "base/memory/scoped_refptr.h"
#include "base/time/time.h"
#include "th... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/cursor_loader.cc | C++ | unknown | 5,287 |
// 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.
#ifndef UI_WM_CORE_CURSOR_LOADER_H_
#define UI_WM_CORE_CURSOR_LOADER_H_
#include <map>
#include <memory>
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
#... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/cursor_loader.h | C++ | unknown | 3,004 |
// 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/wm/core/cursor_loader.h"
#include "base/memory/scoped_refptr.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/abseil-cpp/absl/types/optiona... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/cursor_loader_unittest.cc | C++ | unknown | 4,933 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/wm/core/cursor_manager.h"
#include <utility>
#include "base/check_op.h"
#include "base/observer_list.h"
#include "base/trace_event/trace_event.h"
#include "ui/au... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/cursor_manager.cc | C++ | unknown | 9,033 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_WM_CORE_CURSOR_MANAGER_H_
#define UI_WM_CORE_CURSOR_MANAGER_H_
#include <memory>
#include "base/component_export.h"
#include "base/observer_list.h"
#include "ui/au... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/cursor_manager.h | C++ | unknown | 3,861 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/wm/core/cursor_manager.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "ui/aura/client/cursor_client_observer.h"
#include "ui/aura/... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/cursor_manager_unittest.cc | C++ | unknown | 14,978 |
// 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/wm/core/cursor_util.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/ranges/algorithm.h"
#include "third_party/abseil-cpp/absl/types/opti... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/cursor_util.cc | C++ | unknown | 16,426 |
// 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_WM_CORE_CURSOR_UTIL_H_
#define UI_WM_CORE_CURSOR_UTIL_H_
#include "base/component_export.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "ui/bas... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/cursor_util.h | C++ | unknown | 1,818 |
// 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.
#include "ui/wm/core/cursor_util.h"
#include "base/numerics/safe_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/abseil-cpp/absl/types/opti... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/cursor_util_unittest.cc | C++ | unknown | 4,771 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/wm/core/default_activation_client.h"
#include "base/memory/raw_ptr.h"
#include "base/observer_list.h"
#include "ui/aura/window.h"
#include "ui/wm/public/activatio... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/default_activation_client.cc | C++ | unknown | 5,378 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_WM_CORE_DEFAULT_ACTIVATION_CLIENT_H_
#define UI_WM_CORE_DEFAULT_ACTIVATION_CLIENT_H_
#include <vector>
#include "base/component_export.h"
#include "base/memory/raw... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/default_activation_client.h | C++ | unknown | 2,685 |
// 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/wm/core/default_screen_position_client.h"
#include "ui/aura/window_tree_host.h"
#include "ui/display/screen.h"
#include "ui/gfx/geometry/point_conversions.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/default_screen_position_client.cc | C++ | unknown | 2,144 |
// 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_WM_CORE_DEFAULT_SCREEN_POSITION_CLIENT_H_
#define UI_WM_CORE_DEFAULT_SCREEN_POSITION_CLIENT_H_
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
#... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/default_screen_position_client.h | C++ | unknown | 1,700 |
// 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/wm/core/easy_resize_window_targeter.h"
#include <algorithm>
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/client/transient_window_client.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/easy_resize_window_targeter.cc | C++ | unknown | 1,884 |
// 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_WM_CORE_EASY_RESIZE_WINDOW_TARGETER_H_
#define UI_WM_CORE_EASY_RESIZE_WINDOW_TARGETER_H_
#include "base/component_export.h"
#include "ui/aura/window_targeter.h"
na... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/easy_resize_window_targeter.h | C++ | unknown | 1,689 |
// 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.
#include "ui/wm/core/focus_controller.h"
#include "base/auto_reset.h"
#include "base/observer_list.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/client/captu... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/focus_controller.cc | C++ | unknown | 17,820 |
// 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.
#ifndef UI_WM_CORE_FOCUS_CONTROLLER_H_
#define UI_WM_CORE_FOCUS_CONTROLLER_H_
#include <memory>
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
#include "... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/focus_controller.h | C++ | unknown | 7,180 |
// 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.
#include "ui/wm/core/focus_controller.h"
#include <map>
#include "base/memory/raw_ptr.h"
#include "base/test/scoped_feature_list.h"
#include "ui/aura/client/aura_constants.h"... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/focus_controller_unittest.cc | C++ | unknown | 64,278 |
// 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.
#ifndef UI_WM_CORE_FOCUS_RULES_H_
#define UI_WM_CORE_FOCUS_RULES_H_
#include "base/component_export.h"
namespace aura {
class Window;
}
namespace ui {
class Event;
}
namesp... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/focus_rules.h | C++ | unknown | 3,130 |
// 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.
#include "ui/wm/core/ime_util_chromeos.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/base/ui_base_switches.h"
#include "ui/display/display.h"
#include "ui/display... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/ime_util_chromeos.cc | C++ | unknown | 3,330 |
// 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.
#ifndef UI_WM_CORE_IME_UTIL_CHROMEOS_H_
#define UI_WM_CORE_IME_UTIL_CHROMEOS_H_
#include "base/component_export.h"
#include "ui/aura/window.h"
namespace gfx {
class Rect;
}
... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/ime_util_chromeos.h | C++ | unknown | 1,000 |
// 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.
#include "ui/wm/core/ime_util_chromeos.h"
#include "base/command_line.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/aura/client/aura_constants.h"
#include "ui... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/ime_util_chromeos_unittest.cc | C++ | unknown | 5,276 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_
#define UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_
#include "base/component_export.h"
#include "ui/wm/core/native_cursor_manager_delegate.... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/native_cursor_manager.h | C++ | unknown | 2,077 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_WM_CORE_NATIVE_CURSOR_MANAGER_DELEGATE_H_
#define UI_WM_CORE_NATIVE_CURSOR_MANAGER_DELEGATE_H_
#include "base/component_export.h"
#include "ui/gfx/native_widget_typ... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/native_cursor_manager_delegate.h | C++ | unknown | 1,228 |
// 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.
#include "ui/wm/core/shadow_controller.h"
#include <utility>
#include "base/check.h"
#include "base/command_line.h"
#include "base/containers/contains.h"
#include "base/conta... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/shadow_controller.cc | C++ | unknown | 12,498 |
// 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.
#ifndef UI_WM_CORE_SHADOW_CONTROLLER_H_
#define UI_WM_CORE_SHADOW_CONTROLLER_H_
#include <map>
#include <memory>
#include "base/component_export.h"
#include "base/memory/raw_... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/shadow_controller.h | C++ | unknown | 2,177 |
// 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.
#ifndef UI_WM_CORE_SHADOW_CONTROLLER_DELEGATE_H_
#define UI_WM_CORE_SHADOW_CONTROLLER_DELEGATE_H_
#include "base/component_export.h"
namespace aura {
class Window;
}
namespa... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/shadow_controller_delegate.h | C++ | unknown | 873 |
// 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.
#include "ui/wm/core/shadow_controller.h"
#include <algorithm>
#include <memory>
#include <vector>
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/client/window_... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/shadow_controller_unittest.cc | C++ | unknown | 11,074 |
// 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.
#include "ui/wm/core/shadow_types.h"
#include "ui/base/class_property.h"
namespace wm {
DEFINE_UI_CLASS_PROPERTY_KEY(int, kShadowElevationKey, kShadowElevationDefault)
void... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/shadow_types.cc | C++ | unknown | 1,090 |
// 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.
#ifndef UI_WM_CORE_SHADOW_TYPES_H_
#define UI_WM_CORE_SHADOW_TYPES_H_
#include "base/component_export.h"
#include "build/chromeos_buildflags.h"
#include "ui/aura/window.h"
na... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/shadow_types.h | C++ | unknown | 2,004 |
// 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/wm/core/transient_window_controller.h"
#include "base/observer_list.h"
#include "ui/aura/client/transient_window_client_observer.h"
#include "ui/wm/core/transient... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/transient_window_controller.cc | C++ | unknown | 2,194 |
// 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_WM_CORE_TRANSIENT_WINDOW_CONTROLLER_H_
#define UI_WM_CORE_TRANSIENT_WINDOW_CONTROLLER_H_
#include "base/component_export.h"
#include "base/observer_list.h"
#include... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/transient_window_controller.h | C++ | unknown | 1,886 |
// 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/wm/core/transient_window_manager.h"
#include <functional>
#include "base/auto_reset.h"
#include "base/containers/adapters.h"
#include "base/containers/contains.h... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/transient_window_manager.cc | C++ | unknown | 9,569 |
// 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_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_
#define UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_
#include <vector>
#include "base/component_export.h"
#include "base/memory/raw_p... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/transient_window_manager.h | C++ | unknown | 4,918 |
// 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/wm/core/transient_window_manager.h"
#include "base/memory/raw_ptr.h"
#include <utility>
#include "ui/aura/client/window_parenting_client.h"
#include "ui/aura/tes... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/transient_window_manager_unittest.cc | C++ | unknown | 19,660 |
// 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_WM_CORE_TRANSIENT_WINDOW_OBSERVER_H_
#define UI_WM_CORE_TRANSIENT_WINDOW_OBSERVER_H_
#include "base/component_export.h"
namespace aura {
class Window;
}
namespace... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/transient_window_observer.h | C++ | unknown | 961 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/wm/core/transient_window_stacking_client.h"
#include <stddef.h>
#include "base/ranges/algorithm.h"
#include "ui/aura/client/transient_window_client.h"
#include "... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/transient_window_stacking_client.cc | C++ | unknown | 3,228 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_WM_CORE_TRANSIENT_WINDOW_STACKING_CLIENT_H_
#define UI_WM_CORE_TRANSIENT_WINDOW_STACKING_CLIENT_H_
#include "base/component_export.h"
#include "ui/aura/client/windo... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/transient_window_stacking_client.h | C++ | unknown | 1,167 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/wm/core/transient_window_stacking_client.h"
#include <memory>
#include "ui/aura/test/aura_test_base.h"
#include "ui/aura/test/test_windows.h"
#include "ui/compos... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/transient_window_stacking_client_unittest.cc | C++ | unknown | 8,688 |
// 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.
#include "ui/wm/core/visibility_controller.h"
#include "ui/aura/window.h"
#include "ui/base/class_property.h"
#include "ui/compositor/layer.h"
#include "ui/wm/core/window_anim... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/visibility_controller.cc | C++ | unknown | 3,463 |
// 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.
#ifndef UI_WM_CORE_VISIBILITY_CONTROLLER_H_
#define UI_WM_CORE_VISIBILITY_CONTROLLER_H_
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
#include "ui/aura/c... | Zhao-PengFei35/chromium_src_4 | ui/wm/core/visibility_controller.h | C++ | unknown | 3,117 |