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 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 {assert} from 'chrome://resources/ash/common/assert.js';
import {LoadImageRequest} from './load_image_request.js';
export function ImageLoaderUtil() {}
/**
* Checks ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/image_loader/image_loader_util.js | JavaScript | unknown | 5,682 |
// 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.
/**
* rotate90: clockwise degrees / 90.
*
* @typedef {{scaleX: number, scaleY: number, rotate90: number}}
*/
export let ImageTransformParam;
/**
* Class representing imag... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/image_loader/image_orientation.js | JavaScript | unknown | 4,639 |
// 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.
import {assertDeepEquals, assertEquals, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js';
import {ImageOrientation} from './image_orientation.js';
export functi... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/image_loader/image_orientation_unittest.js | JavaScript | unknown | 4,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.
import {FileType} from 'chrome://file-manager/common/js/file_type.js';
import {assert, assertInstanceof} from 'chrome://resources/ash/common/assert.js';
import {ImageCache} fr... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/image_loader/image_request_task.js | JavaScript | unknown | 20,897 |
// 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 'chrome://resources/ash/common/assert.js';
import {ImageOrientation, ImageTransformParam} from './image_orientation.js';
/**
* Response status.
*
* @e... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/image_loader/load_image_request.js | JavaScript | unknown | 5,555 |
include_rules = [
"+node_modules/piex",
]
| Zhao-PengFei35/chromium_src_4 | ui/file_manager/image_loader/piex/DEPS | Python | unknown | 44 |
# Makefile for piex-wasm
#
# An IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE is used to
# wrap em++ compiler-generated JS code so it does not pollute |globalThis|.
#
# CFI sanitizer options are used to compile our WebAssembly, as recommended
# by https://webassembly.org/docs/security/#memory-safety (for ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/image_loader/piex/Makefile | Makefile | unknown | 1,697 |
// 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.
//
// background.js: test loading the [piexwasm] module in chrome extension.
//
window.onload = () => {
console.log('[piexwasm] window.onload');
const script = document.cre... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/image_loader/piex/extension/background.js | JavaScript | unknown | 705 |
#!/bin/bash
# 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.
# Fetch the test images into ./images if that directory does not exist.
[[ -d images ]] && exit 0
read -p "npm run test needs test images: install them now (y/n)? " ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/image_loader/piex/images.sh | Shell | unknown | 449 |
// 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 "node_modules/piex/src/piex.h"
#include <assert.h>
#include <emscripten.h>
#include <emscripten/bind.h>
#include <emscripten/val.h>
#include <stdint.h>
#include <stri... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/image_loader/piex/piex.cpp | C++ | unknown | 5,513 |
/* 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.
*/
canvas {
margin: 0 9px 0 0;
vertical-align: top;
}
img {
margin: 0 9px 0 0;
vertical-align: top;
}
pre {
font-size: 18pt;
}
.zoom {
width: 50%;
}
| Zhao-PengFei35/chromium_src_4 | ui/file_manager/image_loader/piex/tests.css | CSS | unknown | 308 |
<!--
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.
-->
<!doctype html>
<head>
<title>piex wasm raw image preview / thumbnail test page</title>
<link type="text/css" rel="stylesheet" href="/tests.css">
</head>
<body>
<button onc... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/image_loader/piex/tests.html | HTML | unknown | 8,837 |
// 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.
const example = 'node tests tests.html [options]';
const program = require('commander');
program.usage('test-page [options]')
.description('piex wasm raw image preview test... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/image_loader/piex/tests.js | JavaScript | unknown | 3,047 |
#!/bin/bash
# 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.
# Extract preview thumbnails from the raw test images.
rm -f tests.result.txt tests.log
node tests tests.html $* | tee tests.log | \
grep --text "^test: images/" > ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/image_loader/piex/tests.sh | Shell | unknown | 512 |
// 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.
/**
* Declares the piex-wasm Module interface. The Module has many interfaces
* but only declare the parts required for PIEX work.
*
* @typedef {{
* calledRun: boolean,
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/image_loader/piex_loader.js | JavaScript | unknown | 24,389 |
// 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.
import {ImageRequestTask} from './image_request_task.js';
/**
* Scheduler for ImageRequestTask objects. Fetches tasks from a queue and
* processes them synchronously, taking... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/image_loader/scheduler.js | JavaScript | unknown | 4,319 |
// 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 {assertEquals} from 'chrome://webui-test/chromeos/chai_assert.js';
import {ImageRequestTask} from './image_request_task.js';
import {Scheduler} from './scheduler.js';
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/image_loader/scheduler_unittest.js | JavaScript | unknown | 2,999 |
// 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.
// TODO(b/199452030): Fix duplication with volume_manager_types.js
/**
* Paths that can be handled by the dialog opener in native code.
* @enum {string}
* @const
*/
export ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/allowed_paths.js | JavaScript | unknown | 433 |
// 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.
'use strict';
/**
* @fileOverview This file loads the MOCK cast APIs for test.
*/
chrome.cast = {};
/**
* @enum {string}
* @const
*/
chrome.cast.ReceiverAvailability = ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/cast_extension_mock/load.js | JavaScript | unknown | 1,735 |
// 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.
// TODO(b/199452030): Fix duplication with dialog_type.js
/**
* List of dialog types.
*
* Keep this in sync with FileManagerDialog::GetDialogTypeAsString, except
* FULL_PAG... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/dialog_type.js | JavaScript | unknown | 629 |
// 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.
// TODO(b/199452030): Fix duplication with runtime_loaded_test_util.js
/**
* @typedef {{
* attributes:Object<string>,
* text:string,
* styles:(Object<string>|undefine... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/element_object.js | JavaScript | unknown | 794 |
// 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 {addEntries, ENTRIES, RootPath} from '../test_util.js';
import {testcase} from '../testcase.js';
import {openNewWindow, remoteCall} from './background.js';
testcase.an... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/android_photos.js | JavaScript | unknown | 3,291 |
<!DOCTYPE html>
<meta charset="utf-8">
<script type="module" src="background.js"></script>
| Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/background.html | HTML | unknown | 92 |
// 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.
import './android_photos.js';
import './breadcrumbs.js';
import './context_menu.js';
import './copy_between_windows.js';
import './create_new_folder.js';
import './crostini.js'... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/background.js | JavaScript | unknown | 19,186 |
// 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 Tests that breadcrumbs work.
*/
import {ENTRIES, EntryType, getCaller, getUserActionCount, pending, repeatUntil, RootPath, sendTestMessage, TestEntryInfo}... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/breadcrumbs.js | JavaScript | unknown | 27,360 |
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Choose Entry</title>
<script src="choose_entry.js" type="module"></script>
</head>
<body>
<h1>Choose Entry</h1>
</body>
| Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/choose_entry.html | HTML | unknown | 181 |
// 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 {CHOOSE_ENTRY_PROPERTY} from './choose_entry_const.js';
/**
* Extracts parameters used by chooseEntry function.
* @return {!chrome.fileSystem.ChooseEntryOptions}
*/
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/choose_entry.js | JavaScript | unknown | 1,749 |
// 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.
// The name of the property under which we store the selected file entry.
export const CHOOSE_ENTRY_PROPERTY = 'chooseEntryResult';
| Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/choose_entry_const.js | JavaScript | unknown | 276 |
// 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 {addEntries, ENTRIES, RootPath, sendTestMessage, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.js';
import {navigateWithDirectoryTree, open... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/context_menu.js | JavaScript | unknown | 33,705 |
// 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.
import {addEntries, ENTRIES, RootPath, sendTestMessage, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.js';
import {openNewWindow, remoteCall} from... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/copy_between_windows.js | JavaScript | unknown | 8,479 |
// 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 {RootPath, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.js';
import {navigateWithDirectoryTree, recursiveExpand, remoteCall, setupAndWaitU... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/create_new_folder.js | JavaScript | unknown | 6,507 |
// 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 {ENTRIES, RootPath, sendTestMessage} from '../test_util.js';
import {testcase} from '../testcase.js';
import {mountCrostini, remoteCall, setupAndWaitUntilReady} from '.... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/crostini.js | JavaScript | unknown | 9,971 |
// 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 {addEntries, ENTRIES, EntryType, RootPath, sendTestMessage, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.js';
import {navigateWithDirector... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/directory_tree.js | JavaScript | unknown | 25,617 |
// 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.
import {addEntries, ENTRIES, EntryType, getCaller, pending, REPEAT_UNTIL_INTERVAL, repeatUntil, RootPath, sendTestMessage, TestEntryInfo, wait} from '../test_util.js';
import {... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/directory_tree_context_menu.js | JavaScript | unknown | 65,951 |
// 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 {DialogType} from '../dialog_type.js';
import {addEntries, ENTRIES, EntryType, RootPath, sendBrowserTestCommand, sendTestMessage, TestEntryInfo} from '../test_util.js';
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/dlp.js | JavaScript | unknown | 26,093 |
// 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.
import {ENTRIES, EntryType, expectHistogramTotalCount, getCaller, getUserActionCount, pending, repeatUntil, RootPath, sendTestMessage, TestEntryInfo} from '../test_util.js';
im... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/drive_specific.js | JavaScript | unknown | 46,416 |
// 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.
import {addEntries, ENTRIES, getCaller, pending, repeatUntil, sendBrowserTestCommand, sendTestMessage, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcas... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/file_dialog.js | JavaScript | unknown | 38,325 |
// 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.
import {addEntries, ENTRIES, RootPath, sendTestMessage, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.js';
import {IGNORE_APP_ERRORS, isSinglePart... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/file_display.js | JavaScript | unknown | 36,383 |
// 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 {ENTRIES, RootPath, sendTestMessage} from '../test_util.js';
import {testcase} from '../testcase.js';
import {remoteCall, setupAndWaitUntilReady} from './background.js'... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/file_list.js | JavaScript | unknown | 19,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.
import {addEntries, ENTRIES, EntryType, getCaller, pending, repeatUntil, RootPath, sendTestMessage, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.j... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/file_transfer_connector.js | JavaScript | unknown | 24,260 |
// 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 {ENTRIES, getCaller, pending, repeatUntil, RootPath, sendTestMessage, wait} from '../test_util.js';
import {testcase} from '../testcase.js';
import {remoteCall, setupAn... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/files_tooltip.js | JavaScript | unknown | 14,589 |
// 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.
import {addEntries, ENTRIES, getCaller, pending, repeatUntil, RootPath, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.js';
import {createShortcut,... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/folder_shortcuts.js | JavaScript | unknown | 9,026 |
// 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 {ENTRIES, RootPath, sendTestMessage, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.js';
import {isSinglePartitionFormat, navigateWithDirect... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/format_dialog.js | JavaScript | unknown | 14,075 |
// 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.
import {addEntries, ENTRIES, getCaller, pending, repeatUntil, RootPath, sendTestMessage, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.js';
import... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/gear_menu.js | JavaScript | unknown | 28,633 |
// 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.
import {addEntries, ENTRIES, getCaller, pending, repeatUntil, RootPath, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.js';
import {openNewWindow, ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/grid_view.js | JavaScript | unknown | 6,472 |
// 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 {ENTRIES, RootPath, sendTestMessage} from '../test_util.js';
import {testcase} from '../testcase.js';
import {IGNORE_APP_ERRORS, remoteCall, setupAndWaitUntilReady} fro... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/guest_os.js | JavaScript | unknown | 6,259 |
// 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 {getCaller, pending, repeatUntil, RootPath, sendTestMessage} from '../test_util.js';
import {testcase} from '../testcase.js';
import {navigateWithDirectoryTree, openEnt... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/holding_space.js | JavaScript | unknown | 4,914 |
// 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 {addEntries, ENTRIES, getCaller, pending, repeatUntil, RootPath, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.js';
import {remoteCall, set... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/install_linux_package_dialog.js | JavaScript | unknown | 2,934 |
// 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.
import {ENTRIES, getCaller, pending, repeatUntil, RootPath, sendTestMessage, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.js';
import {expandTree... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/keyboard_operations.js | JavaScript | unknown | 21,922 |
// 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 {MetadataStatsType} from '../metadata_stats_type.js';
import {addEntries, createTestFile, ENTRIES, EntryType, RootPath, TestEntryInfo} from '../test_util.js';
import {te... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/metadata.js | JavaScript | unknown | 12,964 |
// 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 Tests that enum metrics are recorded correctly.
*/
import {createTestFile, ENTRIES, getHistogramCount, getHistogramSum, RootPath} from '../test_util.js';
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/metrics.js | JavaScript | unknown | 4,604 |
// 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 {addEntries, ENTRIES, EntryType, RootPath, sendTestMessage, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.js';
import {expandTreeItem, moun... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/my_files.js | JavaScript | unknown | 13,974 |
// 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 {ENTRIES, RootPath} from '../test_util.js';
import {testcase} from '../testcase.js';
import {remoteCall, setupAndWaitUntilReady} from './background.js';
/** Tests that... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/navigation.js | JavaScript | unknown | 975 |
// 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 {ENTRIES, getCaller, getHistogramCount, pending, repeatUntil, RootPath, sendTestMessage} from '../test_util.js';
import {testcase} from '../testcase.js';
import {remote... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/office.js | JavaScript | unknown | 15,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.
import {ENTRIES, RootPath} from '../test_util.js';
import {testcase} from '../testcase.js';
import {opensInMediaApp} from './open_media_app.js';
/**
* Tests opening audio op... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/open_audio_media_app.js | JavaScript | unknown | 710 |
// 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 Tests opening hosted files in the browser.
*/
import {ENTRIES, getBrowserWindows, RootPath, sendTestMessage, TestEntryInfo} from '../test_util.js';
import... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/open_hosted_files.js | JavaScript | unknown | 2,225 |
// 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 {ENTRIES, RootPath} from '../test_util.js';
import {testcase} from '../testcase.js';
import {opensInMediaApp} from './open_media_app.js';
/**
* Tests opening an image... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/open_image_media_app.js | JavaScript | unknown | 726 |
// 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 {getCaller, pending, repeatUntil, sendTestMessage, TestEntryInfo} from '../test_util.js';
import {remoteCall, setupAndWaitUntilReady, waitForMediaApp} from './backgroun... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/open_media_app.js | JavaScript | unknown | 1,803 |
// 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 Tests opening files in the browser using content sniffing.
*/
import {addEntries, ENTRIES, EntryType, getBrowserWindows, getCaller, pending, repeatUntil, ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/open_sniffed_files.js | JavaScript | unknown | 3,618 |
// 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 {ENTRIES, RootPath} from '../test_util.js';
import {testcase} from '../testcase.js';
import {opensInMediaApp} from './open_media_app.js';
/**
* Tests opening a video ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/open_video_media_app.js | JavaScript | unknown | 708 |
// 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.
import {getHistogramCount, RootPath, sendTestMessage} from '../test_util.js';
import {testcase} from '../testcase.js';
import {IGNORE_APP_ERRORS, remoteCall, setupAndWaitUntil... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/providers.js | JavaScript | unknown | 10,096 |
// 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 {assert} from 'chrome://resources/ash/common/assert.js';
import {DialogType} from '../dialog_type.js';
import {ExecuteScriptError} from '../remote_call.js';
import {add... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/quick_view.js | JavaScript | unknown | 134,586 |
// 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 {addEntries, ENTRIES, formatDate, getCaller, getDateWithDayDiff, pending, repeatUntil, RootPath, sanitizeDate, sendTestMessage, TestEntryInfo} from '../test_util.js';
im... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/recents.js | JavaScript | unknown | 47,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.
import {ENTRIES, RootPath, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.js';
import {openNewWindow, remoteCall, setupAndWaitUntilReady} from './b... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/restore_prefs.js | JavaScript | unknown | 2,765 |
// 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 {FilesAppState} from '../files_app_state.js';
import {addEntries, ENTRIES, EntryType, getCaller, getDateWithDayDiff, pending, repeatUntil, RootPath, sendTestMessage, Sha... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/search.js | JavaScript | unknown | 31,381 |
// 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.
import {RootPath} from '../test_util.js';
import {testcase} from '../testcase.js';
import {navigateWithDirectoryTree, remoteCall, setupAndWaitUntilReady} from './background.js... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/share_and_manage_dialog.js | JavaScript | unknown | 8,547 |
// 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.
import {ENTRIES, RootPath, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.js';
import {remoteCall, setupAndWaitUntilReady} from './background.js';
... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/sort_columns.js | JavaScript | unknown | 8,612 |
// 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.
import {addEntries, RootPath, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.js';
import {openAndWaitForClosingDialog, remoteCall, setupAndWaitUnti... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/tab_index.js | JavaScript | unknown | 12,575 |
// 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.
import {getCaller, pending, repeatUntil, RootPath} from '../test_util.js';
import {testcase} from '../testcase.js';
import {remoteCall, setupAndWaitUntilReady} from './backgro... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/tasks.js | JavaScript | unknown | 14,243 |
// 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 {ENTRIES, TestEntryInfo} from '../test_util.js';
/**
* Extension ID of the Files app.
* @type {string}
* @const
*/
export const FILE_MANAGER_EXTENSIONS_ID = 'hhaomj... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/test_data.js | JavaScript | unknown | 6,324 |
// 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.
import {addEntries, ENTRIES, getCaller, pending, repeatUntil, RootPath, sendTestMessage, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.js';
import... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/toolbar.js | JavaScript | unknown | 15,366 |
// 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.
import {ENTRIES, EntryType, getCaller, pending, repeatUntil, RootPath, sendTestMessage, TestEntryInfo} from '../test_util.js';
import {testcase} from '../testcase.js';
import ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/transfer.js | JavaScript | unknown | 45,630 |
// 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 {DialogType} from '../dialog_type.js';
import {addEntries, ENTRIES, repeatUntil, RootPath, sendTestMessage} from '../test_util.js';
import {testcase} from '../testcase.j... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/trash.js | JavaScript | unknown | 49,286 |
// 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.
import {addEntries, ENTRIES, RootPath} from '../test_util.js';
import {testcase} from '../testcase.js';
import {openNewWindow, remoteCall} from './background.js';
import {NEST... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/traverse.js | JavaScript | unknown | 1,578 |
// 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 {addEntries, ENTRIES, expectHistogramTotalCount, getCaller, pending, repeatUntil, RootPath, sendTestMessage} from '../test_util.js';
import {testcase} from '../testcase.... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/file_manager/zip_files.js | JavaScript | unknown | 31,647 |
// 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 {AllowedPaths} from './allowed_paths.js';
import {DialogType} from './dialog_type.js';
// TODO(b/199452030): Fix duplication with files_app_state.js
/**
* FilesAppSta... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/files_app_state.js | JavaScript | unknown | 3,144 |
// 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.
// TODO(b/199452030): Fix duplication with runtime_loaded_test_util.js
/**
* Object containing common key modifiers: shift, alt, and ctrl.
*
* @typedef {{
* shift: (boole... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/key_modifiers.js | JavaScript | unknown | 433 |
// 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.
// TODO(b/199452030): Fix duplication with runtime_loaded_test_util.js
/**
* @typedef {{
* fromCache: number,
* fullFetch: number,
* invalidateCount: number,
* cl... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/metadata_stats_type.js | JavaScript | unknown | 411 |
// 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.
import {ElementObject} from './element_object.js';
import {KeyModifiers} from './key_modifiers.js';
import {getCaller, pending, repeatUntil, sendTestMessage} from './test_util.... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/remote_call.js | JavaScript | unknown | 37,567 |
// 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.
import {RemoteCall} from './remote_call.js';
/**
* Sends a command to the controlling test harness, namely and usually, the
* chrome FileManagerBrowserTest harness: it expec... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/test_util.js | JavaScript | unknown | 48,876 |
// 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.
/**
* Namespace for test cases.
*/
export const testcase = {};
| Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/testcase.js | JavaScript | unknown | 210 |
// 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.
'use strict';
// eslint-disable-next-line no-var
var dialogSettings = {};
function mountFileSystem(onSuccess, onError) {
chrome.fileSystemProvider.getAll(function(mounted) ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/testing_provider/background.js | JavaScript | unknown | 2,020 |
// 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.
// TODO(b/199452030): Fix duplication with volume_manager_types.js
/**
* The type of each volume.
* @enum {string}
* @const
*/
export const VolumeManagerCommonVolumeType = ... | Zhao-PengFei35/chromium_src_4 | ui/file_manager/integration_tests/volume_manager_common_volume_type.js | JavaScript | unknown | 641 |
include_rules = [
"+base",
"+cc/base",
"+cc/paint",
"+device/vr/buildflags/buildflags.h",
"+skia/ext",
"+third_party/harfbuzz-ng",
"+third_party/skia",
"+third_party/test_fonts",
"+ui/base/ui_base_features.h",
"+ui/ios",
"+ui/linux",
"+ui/ozone/buildflags.h",
"-testing/gmock",
]
specific_inc... | Zhao-PengFei35/chromium_src_4 | ui/gfx/DEPS | Python | unknown | 422 |
# 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.
"""Presubmit checks for ui/gfx
See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presubmit API built into depot_tools.
"""
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/PRESUBMIT.py | Python | unknown | 777 |
include_rules = [
"+ui/gfx/gfx_jni_headers",
]
| Zhao-PengFei35/chromium_src_4 | ui/gfx/android/DEPS | Python | unknown | 49 |
// 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/gfx/android/achoreographer_compat.h"
#include <dlfcn.h>
#include "base/android/build_info.h"
#include "base/logging.h"
#define LOAD_FUNCTION(lib, func) ... | Zhao-PengFei35/chromium_src_4 | ui/gfx/android/achoreographer_compat.cc | C++ | unknown | 2,610 |
// 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_GFX_ANDROID_ACHOREOGRAPHER_COMPAT_H_
#define UI_GFX_ANDROID_ACHOREOGRAPHER_COMPAT_H_
#include <sys/types.h>
#include "ui/gfx/gfx_export.h"
extern "C" {
typedef st... | Zhao-PengFei35/chromium_src_4 | ui/gfx/android/achoreographer_compat.h | C++ | unknown | 3,838 |
// 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/gfx/android/android_surface_control_compat.h"
#include <android/data_space.h>
#include <android/hdr_metadata.h>
#include <dlfcn.h>
#include "base/android/build_i... | Zhao-PengFei35/chromium_src_4 | ui/gfx/android/android_surface_control_compat.cc | C++ | unknown | 38,254 |
// 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_GFX_ANDROID_ANDROID_SURFACE_CONTROL_COMPAT_H_
#define UI_GFX_ANDROID_ANDROID_SURFACE_CONTROL_COMPAT_H_
#include <android/hardware_buffer.h>
#include <android/native... | Zhao-PengFei35/chromium_src_4 | ui/gfx/android/android_surface_control_compat.h | C++ | unknown | 7,068 |
// 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/gfx/android/android_surface_control_compat.h"
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/tas... | Zhao-PengFei35/chromium_src_4 | ui/gfx/android/android_surface_control_compat_unittest.cc | C++ | unknown | 5,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.
#include "ui/gfx/android/java_bitmap.h"
#include <android/bitmap.h>
#include "base/android/jni_string.h"
#include "base/bits.h"
#include "base/check_op.h"
#include "base/debu... | Zhao-PengFei35/chromium_src_4 | ui/gfx/android/java_bitmap.cc | C++ | unknown | 5,227 |
// 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_GFX_ANDROID_JAVA_BITMAP_H_
#define UI_GFX_ANDROID_JAVA_BITMAP_H_
#include <jni.h>
#include <stdint.h>
#include "base/android/scoped_java_ref.h"
#include "base/memo... | Zhao-PengFei35/chromium_src_4 | ui/gfx/android/java_bitmap.h | C++ | unknown | 2,764 |
// 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/gfx/android/view_configuration.h"
#include "base/android/jni_android.h"
#include "base/lazy_instance.h"
#include "base/synchronization/lock.h"
#include "ui/gfx/gf... | Zhao-PengFei35/chromium_src_4 | ui/gfx/android/view_configuration.cc | C++ | unknown | 5,878 |
// 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_GFX_ANDROID_VIEW_CONFIGURATION_H_
#define UI_GFX_ANDROID_VIEW_CONFIGURATION_H_
#include <jni.h>
#include "ui/gfx/gfx_export.h"
namespace gfx {
// Provides access... | Zhao-PengFei35/chromium_src_4 | ui/gfx/android/view_configuration.h | C++ | unknown | 902 |
include_rules = [
"+ui/gfx/gfx_jni_headers",
]
| Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/DEPS | Python | unknown | 49 |
// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gfx/animation/animation.h"
#include <memory>
#include "base/command_line.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "ui/g... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation.cc | C++ | unknown | 4,584 |
// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GFX_ANIMATION_ANIMATION_H_
#define UI_GFX_ANIMATION_ANIMATION_H_
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "base/time/time.h"... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation.h | C++ | unknown | 5,142 |
// 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/gfx/animation/animation.h"
#include "base/android/jni_android.h"
#include "ui/gfx/gfx_jni_headers/Animation_jni.h"
using base::android::AttachCurrentThread;
nam... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_android.cc | C++ | unknown | 675 |
// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gfx/animation/animation_container.h"
#include "base/functional/bind.h"
#include "ui/gfx/animation/animation_container_element.h"
#include "ui/gfx/animation/animat... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_container.cc | C++ | unknown | 5,025 |