Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from chromium:main #107

Merged
merged 28 commits into from
Dec 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
0544677
[OriginTrial] Pass enabled features to worker thread
Dec 14, 2021
0d90bd4
Quota Internals (chrome://quota-internals-2): Skeleton architecture i…
christine-hollingsworth Dec 14, 2021
fc6a60b
Changing squeezed/blurry info icon to correct svg.
Dec 14, 2021
8ecd643
fido/cros: Fix comments in authenticator.cc
hcyang-google Dec 14, 2021
9f0cd88
Roll Perfetto Trace Processor Mac from 1302b4259684 to 86b18b837a45
Dec 14, 2021
af76930
Add google orange, pink, cyan and purple.
Dec 14, 2021
38c7115
[unseasoned-pdf] Enable cross-frame scrolling
kmoon-work Dec 14, 2021
812fe3d
[skylab_tests] Update skylab tests cros img version
skylab-tests-roller Dec 14, 2021
23401d6
[Code Health] Modernize Value API in cookies_api.cc
chikamune-cr Dec 14, 2021
2a828cd
camera: Add face auto exposure metrics description
Dec 14, 2021
4cb01cb
What's New: Fix session restore case
Dec 14, 2021
27ef6a9
Updating trunk VERSION from 4765.0 to 4766.0
Dec 14, 2021
99d46f6
Roll Chrome Win32 PGO Profile
Dec 14, 2021
bcfb067
Import wpt@fb6c24cb048c67e496db6fc652a2f4a46e413c8c
Dec 14, 2021
8e16905
Remove NonSFI mode part 4.
Dec 14, 2021
665468d
Firmware UI: Switch to use real firmware updates
Dec 14, 2021
98e6a35
Remove unused setters from TestURLFetcher
bashi Dec 14, 2021
510cda5
Roll Fuchsia SDK from 7.20211213.1.1 to 7.20211213.3.1
Dec 14, 2021
ea312d4
Remove the "tentative" part from showPicker web platform test names.
beaufortfrancois Dec 14, 2021
68e65fe
Remove HeapProfiling from fieldtrial_testing_config.json
JoeNotCharlesGoogle Dec 14, 2021
da2b040
Roll Fuchsia Internal SDK from 7.20211213.2.1 to 7.20211213.3.2
Dec 14, 2021
0bf9300
CCA: Migrate timer.js to TypeScript
peter50216 Dec 14, 2021
0804795
[iOS][ForcedSignIn]🏢 Add multi windows egtests
vincb2 Dec 14, 2021
d43e4a5
Fix SignedExchangeRequestHandlerRealCertVerifierBrowserTest.Basic
irori Dec 14, 2021
a5c5d3a
Roll Perfetto from 86b18b837a45 to 1357bd132733 (247 revisions)
Dec 14, 2021
e93796c
CCA: Migrate async_job_queue.js to TypeScript
peter50216 Dec 14, 2021
3b0c762
[Zenith] Keep the dialog open when clicking on the device selector
muyao-xu Dec 14, 2021
d11eed6
CCA: Migrate comlink related files to TypeScript
peter50216 Dec 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ deps = {
},

'src/third_party/perfetto':
Var('android_git') + '/platform/external/perfetto.git' + '@' + '86b18b837a45380f1b9070cb765ec5864994942c',
Var('android_git') + '/platform/external/perfetto.git' + '@' + '1357bd132733ccc23a295739e4bc432d7a53d120',

'src/third_party/perl': {
'url': Var('chromium_git') + '/chromium/deps/perl.git' + '@' + '6f3e5028eb65d0b4c5fdd792106ac4c84eee1eb3',
Expand Down
60 changes: 0 additions & 60 deletions ash/webui/camera_app_ui/resources/js/async_job_queue.js

This file was deleted.

44 changes: 44 additions & 0 deletions ash/webui/camera_app_ui/resources/js/async_job_queue.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

/**
* Asynchronous job queue.
*/
export class AsyncJobQueue {
private promise: Promise<unknown> = Promise.resolve();
private clearing = false;

/**
* Pushes the given job into queue.
* @return Resolved with the job return value when the job is finished, or
* null if the job is cleared.
*/
push<T>(job: () => Promise<T>): Promise<T|null> {
const promise: Promise<T|null> = this.promise.then(() => {
if (this.clearing) {
return null;
}
return job();
});
this.promise = promise;
return promise;
}

/**
* Flushes the job queue.
* @return Resolved when all jobs in the queue are finished.
*/
async flush(): Promise<void> {
await this.promise;
}

/**
* Clears all not-yet-scheduled jobs and waits for current job finished.
*/
async clear(): Promise<void> {
this.clearing = true;
await this.flush();
this.clearing = false;
}
}
6 changes: 3 additions & 3 deletions ash/webui/camera_app_ui/resources/js/externs/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ type CreateScriptURLCallback = (input: string, arguments: any) => string;

interface TrustedTypePolicy {
readonly name: string;
createHTML(input: string, arguments: any): TrustedHTML;
createScript(input: string, arguments: any): TrustedScript;
createScriptURL(input: string, arguments: any): TrustedScriptURL;
createHTML(input: string, arguments?: any): TrustedHTML;
createScript(input: string, arguments?: any): TrustedScript;
createScriptURL(input: string, arguments?: any): TrustedScriptURL;
}

interface TrustedTypePolicyFactory {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
import '/strings.m.js';

import * as Comlink from './lib/comlink.js';
import {TestBridge} from './test_bridge.js';

document.addEventListener('DOMContentLoaded', async () => {
const workerPath = '/js/test_bridge.js';
const sharedWorker = new SharedWorker(workerPath, {type: 'module'});
const testBridge = Comlink.wrap(sharedWorker.port);
const testBridge = Comlink.wrap<TestBridge>(sharedWorker.port);
const appWindow = await testBridge.bindWindow(window.location.href);
// TODO(crbug.com/980846): Refactor to use a better way rather than window
// properties to pass data to other modules.
Expand Down
15 changes: 8 additions & 7 deletions ash/webui/camera_app_ui/resources/js/js.gni
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ compile_js_files = [
"animation.js",
"app_window.js",
"assert.ts",
"async_job_queue.js",
"async_job_queue.ts",
"barcode_chip.js",
"css.ts",
"device/camera3_device_info.js",
Expand All @@ -24,9 +24,10 @@ compile_js_files = [
"geometry.js",
"h264.js",
"i18n_string.js",
"init.js",
"init.ts",
"intent.js",
"lib/comlink.js",
"lib/comlink.ts",
"lib/comlink_protocol.ts",
"lib/ffmpeg.js",
"main.js",
"metrics.ts",
Expand All @@ -46,7 +47,7 @@ compile_js_files = [
"models/local_storage.js",
"models/result_saver.js",
"models/video_processor_interface.js",
"models/video_saver.js",
"models/video_saver.ts",
"mojo/chrome_helper.ts",
"mojo/device_operator.js",
"mojo/image_capture.js",
Expand All @@ -58,17 +59,17 @@ compile_js_files = [
"snackbar.js",
"sound.js",
"state.js",
"test_bridge.js",
"test_bridge.ts",
"thumbnailer.js",
"timer.js",
"timer.ts",
"toast.js",
"tooltip.js",
"type.ts",
"unload.js",
"untrusted_ga_helper.js",
"untrusted_helper_interfaces.js",
"untrusted_script_loader.js",
"untrusted_video_processor_helper.js",
"untrusted_video_processor_helper.ts",
"util.ts",
"views/camera_intent.js",
"views/camera.js",
Expand Down
Loading