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
#!/usr/bin/env python3 # 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. from . import css_checker from os import path as os_path import re from sys import path as sys_path import unittest _HERE = os_path.dirname(os_path.abspath...
Zhao-PengFei35/chromium_src_4
tools/web_dev_style/css_checker_test.py
Python
unknown
18,400
#!/usr/bin/env python # 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. def Run(os_path=None, args=None): try: _HERE_PATH = os_path.dirname(os_path.realpath(__file__)) _SRC_PATH = os_path.normpath(os_path.join(_HERE_PA...
Zhao-PengFei35/chromium_src_4
tools/web_dev_style/eslint.py
Python
unknown
822
# 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. """ Presubmit for Chromium HTML resources. See chrome/browser/PRESUBMIT.py. """ from . import regex_check class HtmlChecker(object): def __init__(self, input_api, output_api,...
Zhao-PengFei35/chromium_src_4
tools/web_dev_style/html_checker.py
Python
unknown
5,128
#!/usr/bin/env python3 # 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. from . import html_checker from os import path as os_path import re from sys import path as sys_path from . import test_util import unittest _HERE = os_pat...
Zhao-PengFei35/chromium_src_4
tools/web_dev_style/html_checker_test.py
Python
unknown
6,253
# 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. """Presubmit script for Chromium JS resources. See chrome/browser/PRESUBMIT.py """ from . import regex_check class JSChecker(object): def __init__(self, input_api, output_ap...
Zhao-PengFei35/chromium_src_4
tools/web_dev_style/js_checker.py
Python
unknown
6,489
#!/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. from . import js_checker import json import os import sys import unittest import tempfile _HERE_PATH = os.path.dirname(__file__) sys.path.append(os.path.j...
Zhao-PengFei35/chromium_src_4
tools/web_dev_style/js_checker_eslint_test.py
Python
unknown
2,389
#!/usr/bin/env python3 # 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. from . import js_checker from os import path as os_path import re from sys import path as sys_path from . import test_util import unittest _HERE = os_path....
Zhao-PengFei35/chromium_src_4
tools/web_dev_style/js_checker_test.py
Python
unknown
11,245
# 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. from . import css_checker from . import html_checker from . import js_checker from . import resource_checker from . import added_js_files_check def IsResource(f): return f.Lo...
Zhao-PengFei35/chromium_src_4
tools/web_dev_style/presubmit_support.py
Python
unknown
1,763
# 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. def RegexCheck(re, line_number, line, regex, msg): """Searches for |regex| in |line| to check for a particular style violation, returning a message like the one below if t...
Zhao-PengFei35/chromium_src_4
tools/web_dev_style/regex_check.py
Python
unknown
1,050
# 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. """ Presubmit for Chromium HTML/CSS/JS resources. See chrome/browser/PRESUBMIT.py. """ from . import regex_check class ResourceChecker(object): def __init__(self, input_api, ...
Zhao-PengFei35/chromium_src_4
tools/web_dev_style/resource_checker.py
Python
unknown
2,995
#!/usr/bin/env python3 # 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. from os import path as os_path import re from . import resource_checker from sys import path as sys_path from . import test_util import unittest _HERE = os...
Zhao-PengFei35/chromium_src_4
tools/web_dev_style/resource_checker_test.py
Python
unknown
3,922
#!/usr/bin/env python3 # 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 subprocess import sys subprocess.check_call([ sys.executable, '-m', 'unittest', 'discover', '-p', '*test.py', '-t', '..' ])
Zhao-PengFei35/chromium_src_4
tools/web_dev_style/test_suite.py
Python
unknown
300
# 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. def GetHighlight(line, error): """Returns the substring of |line| that is highlighted in |error|.""" error_lines = error.split('\n') # TODO(dschuyler): Splitting the error ...
Zhao-PengFei35/chromium_src_4
tools/web_dev_style/test_util.py
Python
unknown
610
// 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. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.IO; using System.L...
Zhao-PengFei35/chromium_src_4
tools/win/ChromeDebug/ChromeDebug/AttachDialog.cs
C#
unknown
10,397
// 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. using System; using System.Diagnostics; using System.Globalization; using System.Runtime.InteropServices; using System.ComponentModel.Design; using Microsoft.Win32; using Micr...
Zhao-PengFei35/chromium_src_4
tools/win/ChromeDebug/ChromeDebug/ChromeDebugPackage.cs
C#
unknown
4,791
// 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. // This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. Project-level // suppressions either have no target or are gi...
Zhao-PengFei35/chromium_src_4
tools/win/ChromeDebug/ChromeDebug/GlobalSuppressions.cs
C#
unknown
754
// 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. // Guids.cs // MUST match guids.h using System; namespace ChromeDebug { static class GuidList { public const string guidChromeDebugPkgString = "7de8bbab-82c7-4871-b82c-...
Zhao-PengFei35/chromium_src_4
tools/win/ChromeDebug/ChromeDebug/Guids.cs
C#
unknown
533
// 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. // PkgCmdID.cs // MUST match PkgCmdID.h using System; namespace ChromeDebug { static class PkgCmdIDList { public const uint cmdidAttachToProcess = 0x100; }; }
Zhao-PengFei35/chromium_src_4
tools/win/ChromeDebug/ChromeDebug/PkgCmdID.cs
C#
unknown
314
// 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. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ChromeDebug { internal enum ProcessCategory { ...
Zhao-PengFei35/chromium_src_4
tools/win/ChromeDebug/ChromeDebug/ProcessCategory.cs
C#
unknown
919
// 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. using Microsoft.Win32.SafeHandles; using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Text; using Sy...
Zhao-PengFei35/chromium_src_4
tools/win/ChromeDebug/ChromeDebug/ProcessDetail.cs
C#
unknown
11,266
// 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. using System; using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an as...
Zhao-PengFei35/chromium_src_4
tools/win/ChromeDebug/ChromeDebug/Properties/AssemblyInfo.cs
C#
unknown
1,277
// 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. using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading...
Zhao-PengFei35/chromium_src_4
tools/win/ChromeDebug/ChromeDebug/Utility.cs
C#
unknown
3,047
// 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. using Microsoft.Win32.SafeHandles; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Thr...
Zhao-PengFei35/chromium_src_4
tools/win/ChromeDebug/LowLevel/NativeMethods.cs
C#
unknown
3,287
// 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. using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the follo...
Zhao-PengFei35/chromium_src_4
tools/win/ChromeDebug/LowLevel/Properties/AssemblyInfo.cs
C#
unknown
1,536
// 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. using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace ChromeDebu...
Zhao-PengFei35/chromium_src_4
tools/win/ChromeDebug/LowLevel/Types.cs
C#
unknown
7,720
// 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 <windows.h> #include <stdio.h> #include <tchar.h> #include <algorithm> #include <iostream> #include <sstream> #include <string> #include "base/win/shlwapi.h" #prag...
Zhao-PengFei35/chromium_src_4
tools/win/CreateTempFilesPerfEvaluation/CreateTempFilesPerfEval.cc
C++
unknown
9,575
// 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. #include "stdafx.h" #include <algorithm> #include <map> #include <vector> #include "power_sampler.h" #include "system_information_sampler.h" // Unit for raw CPU usage data f...
Zhao-PengFei35/chromium_src_4
tools/win/IdleWakeups/idle_wakeups.cpp
C++
unknown
15,566
// 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. #include "stdafx.h" #include "power_sampler.h" // These correspond to the funcID values returned by GetMsrFunc const int MSR_FUNC_FREQ = 0; const int MSR_FUNC_POWER = 1; cons...
Zhao-PengFei35/chromium_src_4
tools/win/IdleWakeups/power_sampler.cpp
C++
unknown
2,243
// 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. #ifndef TOOLS_WIN_IDLEWAKEUPS_POWER_SAMPLER_H_ #define TOOLS_WIN_IDLEWAKEUPS_POWER_SAMPLER_H_ #include <map> #include <string> #include <windows.h> // https://software.intel...
Zhao-PengFei35/chromium_src_4
tools/win/IdleWakeups/power_sampler.h
C++
unknown
1,499
// 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. #include "stdafx.h"
Zhao-PengFei35/chromium_src_4
tools/win/IdleWakeups/stdafx.cpp
C++
unknown
164
// 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. #ifndef TOOLS_WIN_IDLEWAKEUPS_STDAFX_H_ #define TOOLS_WIN_IDLEWAKEUPS_STDAFX_H_ // stdafx.h : include file for standard system include files, // or project specific include fi...
Zhao-PengFei35/chromium_src_4
tools/win/IdleWakeups/stdafx.h
C
unknown
508
// 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. #include "stdafx.h" #include <algorithm> #include "system_information_sampler.h" // From ntdef.h typedef struct _UNICODE_STRING { USHORT Length; USHORT MaximumLength; ...
Zhao-PengFei35/chromium_src_4
tools/win/IdleWakeups/system_information_sampler.cpp
C++
unknown
12,717
// 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. #ifndef TOOLS_WIN_IDLEWAKEUPS_SYSTEM_INFORMATION_SAMPLER_H_ #define TOOLS_WIN_IDLEWAKEUPS_SYSTEM_INFORMATION_SAMPLER_H_ #include <map> #include <memory> #include <vector> #in...
Zhao-PengFei35/chromium_src_4
tools/win/IdleWakeups/system_information_sampler.h
C++
unknown
1,837
// 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. // Symbol downloading demonstration code. // For more information see ReadMe.txt and this blog post: // https://randomascii.wordpress.com/2013/03/09/symbols-the-microsoft-way/ ...
Zhao-PengFei35/chromium_src_4
tools/win/RetrieveSymbols/RetrieveSymbols.cpp
C++
unknown
4,977
// 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. // This tool scans a PDB file and prints out information about 'interesting' // global variables. This includes duplicates and large globals. This is often // helpful in unders...
Zhao-PengFei35/chromium_src_4
tools/win/ShowGlobals/ShowGlobals.cc
C++
unknown
10,312
// 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 <windows.h> #include <stdio.h> #include <tchar.h> #include <tlhelp32.h> #include <algorithm> #include <iostream> #include <iterator> #include <map> #include <sstream...
Zhao-PengFei35/chromium_src_4
tools/win/ShowThreadNames/ShowThreadNames.cc
C++
unknown
4,344
include_rules = [ # Views debug code should avoid relying on //ui/views code to ensure debugger # extensions are resillient to version structure changes within the codebase. "+ui/views/debug", ]
Zhao-PengFei35/chromium_src_4
tools/win/chromeexts/DEPS
Python
unknown
201
// 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 "tools/win/chromeexts/chrome_exts_command.h" #include <string> #include "base/check.h" #include "base/strings/utf_string_conversions.h" namespace tools { namespace ...
Zhao-PengFei35/chromium_src_4
tools/win/chromeexts/chrome_exts_command.cc
C++
unknown
1,728
// 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 TOOLS_WIN_CHROMEEXTS_CHROME_EXTS_COMMAND_H_ #define TOOLS_WIN_CHROMEEXTS_CHROME_EXTS_COMMAND_H_ #include <dbgeng.h> #include <stdarg.h> #include <wrl/client.h> #inclu...
Zhao-PengFei35/chromium_src_4
tools/win/chromeexts/chrome_exts_command.h
C++
unknown
2,307
// 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 <dbgeng.h> #include <wrl/client.h> #include "tools/win/chromeexts/chrome_exts_command.h" #include "tools/win/chromeexts/commands/hwnd_command.h" #include "tools/win/c...
Zhao-PengFei35/chromium_src_4
tools/win/chromeexts/chromeexts.cc
C++
unknown
1,424
// 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 "tools/win/chromeexts/commands/hwnd_command.h" #include <dbgeng.h> #include <windows.h> #include "base/strings/utf_string_conversions.h" namespace tools { namespace...
Zhao-PengFei35/chromium_src_4
tools/win/chromeexts/commands/hwnd_command.cc
C++
unknown
2,609
// 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 TOOLS_WIN_CHROME_EXTS_COMMANDS_HWND_COMMAND_H_ #define TOOLS_WIN_CHROME_EXTS_COMMANDS_HWND_COMMAND_H_ #include "tools/win/chromeexts/chrome_exts_command.h" namespace ...
Zhao-PengFei35/chromium_src_4
tools/win/chromeexts/commands/hwnd_command.h
C++
unknown
744
// 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 "tools/win/chromeexts/commands/view_command.h" #include <dbgeng.h> #include <windows.h> #include <wrl/client.h> #include <ostream> #include <streambuf> #include <str...
Zhao-PengFei35/chromium_src_4
tools/win/chromeexts/commands/view_command.cc
C++
unknown
9,223
// 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. #ifndef TOOLS_WIN_CHROMEEXTS_COMMANDS_VIEW_COMMAND_H_ #define TOOLS_WIN_CHROMEEXTS_COMMANDS_VIEW_COMMAND_H_ #include "tools/win/chromeexts/chrome_exts_command.h" namespace to...
Zhao-PengFei35/chromium_src_4
tools/win/chromeexts/commands/view_command.h
C++
unknown
739
ECHO OFF REM Copyright 2012 The Chromium Authors REM Use of this source code is governed by a BSD-style license that can be REM found in the LICENSE file. REM Copies an installer and symbols from a build directory on a network share REM into the directory \[out|build]\[Debug|Release] on the current drive. REM...
Zhao-PengFei35/chromium_src_4
tools/win/copy-installer.bat
Batchfile
unknown
3,482
#!/usr/bin/env python # 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. from __future__ import print_function import glob import os import shutil import subprocess import sys import tempfile BUILD_DIR = 'build' def run_with_v...
Zhao-PengFei35/chromium_src_4
tools/win/link_limiter/build_link_limiter.py
Python
unknown
3,103
// 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 <stdio.h> #include <stdlib.h> #define NOMINMAX #include <windows.h> #include <algorithm> #include <iterator> #include <sstream> #include <string> #include <vector> ...
Zhao-PengFei35/chromium_src_4
tools/win/link_limiter/limiter.cc
C++
unknown
11,082
# 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. """ This script parses the /verbose output from the VC++ linker and uses it to explain why a particular object file is being linked in. It parses records like these: Found "...
Zhao-PengFei35/chromium_src_4
tools/win/linker_verbose_tracking.py
Python
unknown
9,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. """ This script uses ShowGlobals.exe to compare two PDBs to see what interesting globals are present in one but not the other. You can either pass in a .pdb file or you can pass in...
Zhao-PengFei35/chromium_src_4
tools/win/pdb_compare_globals.py
Python
unknown
3,365
# 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. """ Parse information about a PE file to summarize the on-disk and in-memory sizes of the sections, in decimal MB instead of in hex. This script will also automatically display dif...
Zhao-PengFei35/chromium_src_4
tools/win/pe_summarize.py
Python
unknown
6,837
@ECHO off REM Copyright 2017 The Chromium Authors REM Use of this source code is governed by a BSD-style license that can be REM found in the LICENSE file. REM Run this script to add the current toolchain, as determined by REM DEPOT_TOOLS_WIN_TOOLCHAIN and the hash in vs_toolchain.py, REM to the path. Be aware of run...
Zhao-PengFei35/chromium_src_4
tools/win/setenv.bat
Batchfile
unknown
600
# 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. """ Helper script to do the heavy lifting for setenv.bat. """ from __future__ import print_function import os import sys script_path = os.path.abspath(os.path.dirname(__file__))...
Zhao-PengFei35/chromium_src_4
tools/win/setenv.py
Python
unknown
1,064
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // A...
Zhao-PengFei35/chromium_src_4
tools/win/sizeviewer/clike.js
JavaScript
unknown
18,939
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE // This is CodeMirror (http://codemirror.net), a code editor // implemented in JavaScript on top of the browser's DOM. // // You can find some technical background for some of the code below /...
Zhao-PengFei35/chromium_src_4
tools/win/sizeviewer/codemirror.js
JavaScript
unknown
317,123
// 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. google.load("visualization", "1", {packages:["treemap"]}); google.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable(g_raw_...
Zhao-PengFei35/chromium_src_4
tools/win/sizeviewer/main.js
JavaScript
unknown
4,102
# 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. from __future__ import print_function import base64 import codecs import json import os import string import subprocess import sys BASE_DIR = os.path.dirname(os.path.abspath(__f...
Zhao-PengFei35/chromium_src_4
tools/win/sizeviewer/sizeviewer.py
Python
unknown
8,252
<!DOCTYPE html> <html> <head> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <style type="text/css"> /* ----------------------------------------- Slightly modified codemirror.css */ /* BASICS */ .CodeMirror { /* Set height, width, borders, and global font properties here */ ...
Zhao-PengFei35/chromium_src_4
tools/win/sizeviewer/template.html
HTML
unknown
9,130
@setlocal call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" cl static_initializers.cc /EHsc /I "c:\Program Files (x86)\Microsoft Visual Studio 14.0\DIA SDK\include" /link Ole32.lib OleAut32.lib dbghelp.lib
Zhao-PengFei35/chromium_src_4
tools/win/static_initializers/build.bat
Batchfile
unknown
202
// 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 <Windows.h> #include <dbghelp.h> #include <dia2.h> #include <stdio.h> #include <string> static const size_t kMaxSymbolLength = 4096; // Create an IDiaData source an...
Zhao-PengFei35/chromium_src_4
tools/win/static_initializers/static_initializers.cc
C++
unknown
6,843
# 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. """ This script converts two %time% compatible strings passed to it into seconds, subtracts them, and prints the difference. That's it. It's used by timeit.bat. """ import re impo...
Zhao-PengFei35/chromium_src_4
tools/win/subtract_time.py
Python
unknown
881
@ECHO off REM Copyright 2017 The Chromium Authors REM Use of this source code is governed by a BSD-style license that can be REM found in the LICENSE file. REM This batch file executes the commands passed to it and prints out the REM elapsed run time. SETLOCAL SET starttime=%time% CALL %* CALL python3 %~dp0subtract_...
Zhao-PengFei35/chromium_src_4
tools/win/timeit.bat
Batchfile
unknown
347
# 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. """Use Chromium tracing to associate mojo endpoints with sandboxes. This script provides a rich view of where mojo interfaces are hosted and consumed when Chromium is build with m...
Zhao-PengFei35/chromium_src_4
tools/win/trace-sandbox-viewer.py
Python
unknown
6,248
@setlocal where cl if errorlevel 1 goto no_cl pushd %~dp0 cl /nologo /Zi /GS- /EHsc trim_heap.cc /link /DEBUG /OPT:REF /OPT:ICF popd exit /b :no_cl @echo Run "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" amd64 @echo or equivalent to get the 64-bit c...
Zhao-PengFei35/chromium_src_4
tools/win/trim_heap/build.bat
Batchfile
unknown
357
// 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. // This is an experimental tool which will inject a thread into a Chrome // process (tested on the browser process) and run code to call // HeapSetInformation with HEAP_OPTIMIZ...
Zhao-PengFei35/chromium_src_4
tools/win/trim_heap/trim_heap.cc
C++
unknown
6,904
call build @echo off :top echo Trimming heaps at %time% trim_heap %* sleep 300 goto top
Zhao-PengFei35/chromium_src_4
tools/win/trim_heap/trim_loop.bat
Batchfile
unknown
99
# 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. """A tool for updating IDL COM headers/TLB after updating IDL template. This tool must be run from a Windows machine at the source root directory. Example: python3 tools/win/...
Zhao-PengFei35/chromium_src_4
tools/win/update_idl.py
Python
unknown
5,708
# 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. """ Helper script to find the Windows SDK directory. """ from __future__ import print_function import os import sys # Add to the Python path so that we can import vs_toolchain s...
Zhao-PengFei35/chromium_src_4
tools/win/win_sdk_dir.py
Python
unknown
640
@echo off REM Copyright 2021 The Chromium Authors REM Use of this source code is governed by a BSD-style license that can be REM found in the LICENSE file. REM Helper batch file to launch windbg, either from a local install or from the REM packaged Chromium toolchain. REM There are windbg32.bat and windbg64.bat flavo...
Zhao-PengFei35/chromium_src_4
tools/win/windbg32.bat
Batchfile
unknown
533
@echo off REM Copyright 2021 The Chromium Authors REM Use of this source code is governed by a BSD-style license that can be REM found in the LICENSE file. REM Helper batch file to launch windbg, either from a local install or from the REM packaged Chromium toolchain. REM There are windbg32.bat and windbg64.bat flavo...
Zhao-PengFei35/chromium_src_4
tools/win/windbg64.bat
Batchfile
unknown
533
REM Copyright 2021 The Chromium Authors REM Use of this source code is governed by a BSD-style license that can be REM found in the LICENSE file. REM Helper batch file for windbg32.bat and windbg64.bat FOR /f "usebackq tokens=*" %%a in (`python3 %~dp0win_sdk_dir.py`) do set win_sdk_dir=%%a echo When debugging ...
Zhao-PengFei35/chromium_src_4
tools/win/windbg_common.bat
Batchfile
unknown
584
# 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. from __future__ import print_function import sys def YesNo(prompt): """Prompts with a yes/no question, returns True if yes.""" print(prompt, end=' ') sys.stdout.flush() ...
Zhao-PengFei35/chromium_src_4
tools/yes_no.py
Python
unknown
750
include_rules = [ # Components within ui must state their dependencies explicitly. "-ui", ] specific_include_rules = { ".*unittest\.mm": [ "+ui/base/test", ], }
Zhao-PengFei35/chromium_src_4
ui/DEPS
Python
unknown
174
include_rules = [ "+components/metal_util", "+gpu/GLES2", "+media/base/mac/color_space_util_mac.h", "+third_party/skia", "+ui/base/cocoa", "+ui/base", "+ui/events", "+ui/gfx", "+ui/gfx/geometry", "+ui/gfx/mac", "+ui/gfx/native_widget_types.h", "+ui/gl", ]
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/DEPS
Python
unknown
280
// 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_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_ #define UI_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_ #include "base/memory/raw_ptr.h" #include "ui/accelerat...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/accelerated_widget_mac.h
C++
unknown
3,373
// 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/accelerated_widget_mac/accelerated_widget_mac.h" #include <map> #include "base/lazy_instance.h" #include "base/mac/mac_util.h" #include "ui/gfx/geometry/dip_util...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/accelerated_widget_mac.mm
Objective-C++
unknown
2,833
// 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_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_EXPORT_H_ #define UI_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_EXPORT_H_ #if defined(WIN32) #error Not for use on ...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/accelerated_widget_mac_export.h
C
unknown
698
// 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_ACCELERATED_WIDGET_MAC_CA_LAYER_FRAME_SINK_H_ #define UI_ACCELERATED_WIDGET_MAC_CA_LAYER_FRAME_SINK_H_ #include "ui/accelerated_widget_mac/accelerated_widget_mac_ex...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/ca_layer_frame_sink.h
C++
unknown
1,117
// 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/accelerated_widget_mac/ca_layer_frame_sink.h" #include "build/build_config.h" #if BUILDFLAG(IS_MAC) #include "ui/accelerated_widget_mac/accelerated_widget_mac.h"...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/ca_layer_frame_sink.mm
Objective-C++
unknown
795
// 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. #ifndef UI_ACCELERATED_WIDGET_MAC_CA_LAYER_FRAME_SINK_PROVIDER_H_ #define UI_ACCELERATED_WIDGET_MAC_CA_LAYER_FRAME_SINK_PROVIDER_H_ #include "ui/accelerated_widget_mac/acceler...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/ca_layer_frame_sink_provider.h
Objective-C
unknown
622
// 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. #ifndef UI_ACCELERATED_WIDGET_MAC_CA_LAYER_TREE_COORDINATOR_H_ #define UI_ACCELERATED_WIDGET_MAC_CA_LAYER_TREE_COORDINATOR_H_ #include "ui/accelerated_widget_mac/accelerated_w...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/ca_layer_tree_coordinator.h
C++
unknown
2,709
// 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. #include "ui/accelerated_widget_mac/ca_layer_tree_coordinator.h" #import <AVFoundation/AVFoundation.h> #include "base/logging.h" #include "base/mac/mac_util.h" #include "base...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/ca_layer_tree_coordinator.mm
Objective-C++
unknown
2,864
// 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 <AVFoundation/AVFoundation.h> #include <memory> #include "gpu/GLES2/gl2extchromium.h" #include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest_mac.h" #in...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/ca_layer_tree_unittest_mac.mm
Objective-C++
unknown
49,390
// 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. #ifndef UI_ACCELERATED_WIDGET_MAC_CA_RENDERER_LAYER_TREE_H_ #define UI_ACCELERATED_WIDGET_MAC_CA_RENDERER_LAYER_TREE_H_ #include <CoreVideo/CoreVideo.h> #include <IOSurface/IO...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/ca_renderer_layer_tree.h
Objective-C
unknown
12,802
// 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. #include "ui/accelerated_widget_mac/ca_renderer_layer_tree.h" #import <AVFoundation/AVFoundation.h> #include <CoreMedia/CoreMedia.h> #include <CoreVideo/CoreVideo.h> #include ...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/ca_renderer_layer_tree.mm
Objective-C++
unknown
51,166
// 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_ACCELERATED_WIDGET_MAC_CA_TRANSACTION_OBSERVER_H_ #define UI_ACCELERATED_WIDGET_MAC_CA_TRANSACTION_OBSERVER_H_ #include <set> #include "base/functional/callback.h"...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/ca_transaction_observer.h
C++
unknown
3,745
// 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. #include "ui/accelerated_widget_mac/ca_transaction_observer.h" #include "base/no_destructor.h" #include "base/ranges/algorithm.h" #include "base/time/default_tick_clock.h" #in...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/ca_transaction_observer.mm
Objective-C++
unknown
4,372
// 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_ACCELERATED_WIDGET_MAC_DISPLAY_CA_LAYER_TREE_H_ #define UI_ACCELERATED_WIDGET_MAC_DISPLAY_CA_LAYER_TREE_H_ #include <IOSurface/IOSurfaceRef.h> #include "base/mac/s...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/display_ca_layer_tree.h
Objective-C
unknown
2,784
// 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. #include "ui/accelerated_widget_mac/display_ca_layer_tree.h" #import <QuartzCore/QuartzCore.h> #include "base/debug/dump_without_crashing.h" #include "base/logging.h" #includ...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/display_ca_layer_tree.mm
Objective-C++
unknown
6,363
// 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_ACCELERATED_WIDGET_MAC_IO_SURFACE_CONTEXT_H_ #define UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_CONTEXT_H_ #include <OpenGL/OpenGL.h> #include "base/mac/scoped_nsobject...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/io_surface_context.h
C++
unknown
2,090
// 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/accelerated_widget_mac/io_surface_context.h" #include <OpenGL/gl.h> #include <OpenGL/OpenGL.h> #include <vector> #include "base/command_line.h" #include "base/lo...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/io_surface_context.mm
Objective-C++
unknown
3,802
// 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. #include "ui/accelerated_widget_mac/window_resize_helper_mac.h" #include <stdint.h> #include <list> #include <utility> #include "base/functional/bind.h" #include "base/funct...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/window_resize_helper_mac.cc
C++
unknown
11,434
// 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. #ifndef UI_ACCELERATED_WIDGET_MAC_WINDOW_RESIZE_HELPER_MAC_H_ #define UI_ACCELERATED_WIDGET_MAC_WINDOW_RESIZE_HELPER_MAC_H_ #include "base/lazy_instance.h" #include "base/memo...
Zhao-PengFei35/chromium_src_4
ui/accelerated_widget_mac/window_resize_helper_mac.h
C++
unknown
3,922
include_rules = [ "+ash/constants", "+mojo/public", "+third_party/cld_3", "+third_party/iaccessible2", "+third_party/isimpledom", "+third_party/skia", "+services/service_manager/public/cpp", "+ui/aura", "+ui/base", "+ui/base/l10n", "+ui/base/win", "+ui/gfx", "+ui/display", "+ui/strings/grit/...
Zhao-PengFei35/chromium_src_4
ui/accessibility/DEPS
Python
unknown
1,387
# 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. """Presubmit script for ui/accessibility.""" import json import os import re USE_PYTHON3 = True AX_MOJOM = 'ui/accessibility/ax_enums.mojom' AUTOMATION_IDL = 'extensions/common...
Zhao-PengFei35/chromium_src_4
ui/accessibility/PRESUBMIT.py
Python
unknown
11,662
// 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/accessibility/accessibility_features.h" #include "base/feature_list.h" #include "build/build_config.h" #include "build/chromeos_buildflags.h" #if BUILDFLAG(IS_CH...
Zhao-PengFei35/chromium_src_4
ui/accessibility/accessibility_features.cc
C++
unknown
10,899
// 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. // Define all the base::Features used by ui/accessibility. #ifndef UI_ACCESSIBILITY_ACCESSIBILITY_FEATURES_H_ #define UI_ACCESSIBILITY_ACCESSIBILITY_FEATURES_H_ #include "base...
Zhao-PengFei35/chromium_src_4
ui/accessibility/accessibility_features.h
C++
unknown
11,012
// 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. #include "ui/accessibility/accessibility_switches.h" #include "base/command_line.h" #include "build/build_config.h" namespace switches { // Shows additional automatic click ...
Zhao-PengFei35/chromium_src_4
ui/accessibility/accessibility_switches.cc
C++
unknown
3,074
// 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. // Define all the command-line switches used by ui/accessibility. #ifndef UI_ACCESSIBILITY_ACCESSIBILITY_SWITCHES_H_ #define UI_ACCESSIBILITY_ACCESSIBILITY_SWITCHES_H_ #includ...
Zhao-PengFei35/chromium_src_4
ui/accessibility/accessibility_switches.h
C++
unknown
2,364
// 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/accessibility/android/accessibility_state.h" #include "base/android/jni_android.h" #include "base/android/jni_array.h" #include "ui/accessibility/ax_jni_headers/A...
Zhao-PengFei35/chromium_src_4
ui/accessibility/android/accessibility_state.cc
C++
unknown
2,618
// 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_ACCESSIBILITY_ANDROID_ACCESSIBILITY_STATE_H_ #define UI_ACCESSIBILITY_ANDROID_ACCESSIBILITY_STATE_H_ #include <vector> #include "base/no_destructor.h" namespace ui...
Zhao-PengFei35/chromium_src_4
ui/accessibility/android/accessibility_state.h
C++
unknown
2,431