Commit 53fc653e authored by dpapad's avatar dpapad Committed by Commit Bot

Roll third_party/closure_compiler to v20190929.

chrome_extensions.js: 8c8758d268411a685b187a9942077c604a8e11c3 -> 5a25bfc4e006f1a965d362e27938611242908acd

 - Delete third_party/closure_compiler/externs/web_animations.js and
   all references to it. No longer needed since a better version of these
   externs is distributed within compiler.jar itself.
 - Fix newly found JSC_HIDDEN_INTERFACE_PROPERTY_MISMATCH, as a result of the
   interface checking overhaul at [1]
 - Fix/suppress newly found JSC_CONSTANT_PROPERTY_REASSIGNED_VALUE errors.

The latest version of chrome_extensions.js contains a fix needed by PDF Viewer.

[1] https://github.com/google/closure-compiler/commit/86acbd5e3ec78f08a1804df5f1efbea129d29c0e

Bug: 1011585
Change-Id: Ic7682834da9cfb75990d82fd8d34d3325d0a6bc3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1842626Reviewed-by: default avatarRebekah Potter <rbpotter@chromium.org>
Reviewed-by: default avatarJoel Hockey <joelhockey@chromium.org>
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Joel Hockey <joelhockey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708089}
parent 1d465d6b
...@@ -28,13 +28,20 @@ class GraphNode { ...@@ -28,13 +28,20 @@ class GraphNode {
/** @type {string} */ /** @type {string} */
this.iconUrl = ''; this.iconUrl = '';
// Implementation of the d3.ForceNode interface. /**
// See https://github.com/d3/d3-force#simulation_nodes. * Implementation of the d3.ForceNode interface.
this.index = null; * See https://github.com/d3/d3-force#simulation_nodes.
this.x = null; * @type {number|undefined}
this.y = null; */
this.vx = null; this.index;
this.vy = null; /** @type {number|undefined} */
this.x;
/** @type {number|undefined} */
this.y;
/** @type {number|undefined} */
this.vx;
/** @type {number|undefined} */
this.vy;
this.fx = null; this.fx = null;
this.fy = null; this.fy = null;
} }
......
...@@ -30,7 +30,6 @@ js_library("about_page") { ...@@ -30,7 +30,6 @@ js_library("about_page") {
"//ui/webui/resources/js:parse_html_subset", "//ui/webui/resources/js:parse_html_subset",
"//ui/webui/resources/js:web_ui_listener_behavior", "//ui/webui/resources/js:web_ui_listener_behavior",
] ]
externs_list = [ "$externs_path/web_animations.js" ]
} }
js_library("about_page_browser_proxy") { js_library("about_page_browser_proxy") {
......
...@@ -22,5 +22,4 @@ js_library("os_about_page") { ...@@ -22,5 +22,4 @@ js_library("os_about_page") {
"//ui/webui/resources/js:parse_html_subset", "//ui/webui/resources/js:parse_html_subset",
"//ui/webui/resources/js:web_ui_listener_behavior", "//ui/webui/resources/js:web_ui_listener_behavior",
] ]
externs_list = [ "$externs_path/web_animations.js" ]
} }
...@@ -14,5 +14,4 @@ js_library("os_toolbar") { ...@@ -14,5 +14,4 @@ js_library("os_toolbar") {
deps = [ deps = [
"//ui/webui/resources/cr_elements/cr_toolbar:cr_toolbar_search_field", "//ui/webui/resources/cr_elements/cr_toolbar:cr_toolbar_search_field",
] ]
externs_list = [ "$externs_path/web_animations.js" ]
} }
...@@ -101,7 +101,6 @@ js_library("fingerprint_list") { ...@@ -101,7 +101,6 @@ js_library("fingerprint_list") {
"//ui/webui/resources/js:web_ui_listener_behavior", "//ui/webui/resources/js:web_ui_listener_behavior",
"//ui/webui/resources/js/cr/ui:focus_without_ink", "//ui/webui/resources/js/cr/ui:focus_without_ink",
] ]
externs_list = [ "$externs_path/web_animations.js" ]
} }
js_library("import_data_browser_proxy") { js_library("import_data_browser_proxy") {
......
Name: Closure compiler Name: Closure compiler
Short Name: closure-compiler Short Name: closure-compiler
URL: http://github.com/google/closure-compiler URL: http://github.com/google/closure-compiler
Version: v20190709 Version: v20190929
Date: 2019/07/24 01:19 Date: 2019/10/07 21:43
License: Apache 2.0 License: Apache 2.0
License File: LICENSE License File: LICENSE
Security Critical: no Security Critical: no
......
...@@ -7595,7 +7595,7 @@ ContentSetting.prototype.clear = function(details, opt_callback) {}; ...@@ -7595,7 +7595,7 @@ ContentSetting.prototype.clear = function(details, opt_callback) {};
/** /**
* @param {!Object<string,(string|boolean|ResourceIdentifier)>} details * @param {!Object<string,(string|boolean|ResourceIdentifier)>} details
* Settings details. * Settings details.
* @param {function(): void} callback Callback function. * @param {function({setting: *}): void} callback Callback function.
* @return {undefined} * @return {undefined}
*/ */
ContentSetting.prototype.get = function(details, callback) {}; ContentSetting.prototype.get = function(details, callback) {};
......
// Copyright 2016 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.
/**
* @fileoverview Minimal Closure externs for Web Animations.
* "Minimal" because the web-animations spec is in flux, Chromium's support is
* changing, and the intended consumer (MD Settings) is actually using the
* web-animations-js polyfill for the time being.
* @see https://w3c.github.io/web-animations/#programming-interface
*/
/**
* @enum {number}
* @see https://w3c.github.io/web-animations/#enumdef-fillmode
*/
var FillMode = {
'none': 0,
'forwards': 1,
'backwards': 2,
'both': 3,
'auto': 4
};
/**
* @enum {number}
* @see https://w3c.github.io/web-animations/#enumdef-playbackdirection
*/
var PlaybackDirection = {
'normal': 0,
'reverse': 1,
'alternate': 2,
'alternate-reverse': 3
};
/**
* @enum {number}
* @see https://w3c.github.io/web-animations/#enumdef-iterationcompositeoperation
*/
var IterationCompositeOperation = {
'replace': 0,
'accumulate': 1
};
/**
* @enum {number}
* @see https://w3c.github.io/web-animations/#enumdef-compositeoperation
*/
var CompositeOperation = {
'replace': 0,
'add': 1,
'accumulate': 2
};
/**
* @constructor
* @param {!Event} event
*/
var EventHandlerNonNull = function(event) {};
/** @typedef {?EventHandlerNonNull} */
var EventHandler;
/**
* @constructor
* @see https://w3c.github.io/web-animations/#dictdef-keyframeanimationoptions
*/
var KeyframeAnimationOptions = function() {};
/**
* @constructor
* @see https://w3c.github.io/web-animations/#dictdef-keyframeeffectoptions
*/
var KeyframeEffectOptions = function() {};
/** @type {number} */
KeyframeEffectOptions.prototype.delay;
/** @type {number} */
KeyframeEffectOptions.prototype.endDelay;
/** @type {!FillMode} */
KeyframeEffectOptions.prototype.fill;
/** @type {number} */
KeyframeEffectOptions.prototype.iterationStart;
/** @type {number} */
KeyframeEffectOptions.prototype.iterations;
/** @type {number|string} */
KeyframeEffectOptions.prototype.duration;
/** @type {number} */
KeyframeEffectOptions.prototype.playbackRate;
/** @type {!PlaybackDirection} */
KeyframeEffectOptions.prototype.direction;
/** @type {string} */
KeyframeEffectOptions.prototype.easing;
/** @type {string} */
KeyframeEffectOptions.prototype.id;
/**
* @interface
* @see https://w3c.github.io/web-animations/#animatable
*/
var Animatable = function() {};
Animatable.prototype = /** @lends {Element.prototype} */({
/**
* @param {?Array<Object>|Object} effect
* @param {number|!KeyframeEffectOptions=} opt_timing
* @return {!Animation}
*/
animate: function(effect, opt_timing) {},
});
...@@ -12,9 +12,6 @@ import sys ...@@ -12,9 +12,6 @@ import sys
_COMPILE_JS = '//third_party/closure_compiler/compile_js.gni' _COMPILE_JS = '//third_party/closure_compiler/compile_js.gni'
_POLYMERS = ['polymer.html', 'polymer-mini.html', 'polymer-micro.html'] _POLYMERS = ['polymer.html', 'polymer-mini.html', 'polymer-micro.html']
_WEB_ANIMATIONS_BASE = 'web-animations.html'
_WEB_ANIMATIONS_EXTERNS = \
'//third_party/closure_compiler/externs/web_animations.js'
_COMPILED_RESOURCES_TEMPLATE = ''' _COMPILED_RESOURCES_TEMPLATE = '''
# Copyright %d The Chromium Authors. All rights reserved. # Copyright %d The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
...@@ -61,11 +58,6 @@ def main(created_by, html_files): ...@@ -61,11 +58,6 @@ def main(created_by, html_files):
if import_base in _POLYMERS: if import_base in _POLYMERS:
continue continue
if import_base == _WEB_ANIMATIONS_BASE:
externs += '\n externs_list = [ "%s" ]' % \
_WEB_ANIMATIONS_EXTERNS
continue
# Only exclude these after appending web animations externs. # Only exclude these after appending web animations externs.
if not _has_extracted_js(path.join(html_dir, html_import)): if not _has_extracted_js(path.join(html_dir, html_import)):
continue continue
......
...@@ -11,9 +11,6 @@ import os.path as path ...@@ -11,9 +11,6 @@ import os.path as path
import sys import sys
_COMPILE_JS = '//third_party/closure_compiler/compile_js.gni' _COMPILE_JS = '//third_party/closure_compiler/compile_js.gni'
_WEB_ANIMATIONS_BASE = 'web-animations.html'
_WEB_ANIMATIONS_EXTERNS = \
'//third_party/closure_compiler/externs/web_animations.js'
_COMPILED_RESOURCES_TEMPLATE = ''' _COMPILED_RESOURCES_TEMPLATE = '''
# Copyright %d The Chromium Authors. All rights reserved. # Copyright %d The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
...@@ -55,10 +52,6 @@ def main(created_by, input_files): ...@@ -55,10 +52,6 @@ def main(created_by, input_files):
for i in sorted(imports): for i in sorted(imports):
import_dir, import_base = path.split(i.encode('ascii')) import_dir, import_base = path.split(i.encode('ascii'))
if import_base == _WEB_ANIMATIONS_BASE:
externs += '\n externs_list = [ "%s" ]' % _WEB_ANIMATIONS_EXTERNS
continue
# Redirect dependencies to minified Polymer to the non-minified version. # Redirect dependencies to minified Polymer to the non-minified version.
if import_base == 'polymer_bundled.min.js': if import_base == 'polymer_bundled.min.js':
import_base = 'polymer_bundled.js' import_base = 'polymer_bundled.js'
......
...@@ -102,7 +102,6 @@ js_library("files_safe_media_webview_content") { ...@@ -102,7 +102,6 @@ js_library("files_safe_media_webview_content") {
# TODO(tapted): Move this to //ui/file_manager/base. # TODO(tapted): Move this to //ui/file_manager/base.
js_library("files_toast") { js_library("files_toast") {
visibility += [ "//ui/file_manager/gallery/*" ] visibility += [ "//ui/file_manager/gallery/*" ]
externs_list = [ "$externs_path/web_animations.js" ]
} }
# TODO(tapted): Move this to //ui/file_manager/base. # TODO(tapted): Move this to //ui/file_manager/base.
......
...@@ -83,7 +83,6 @@ js_library("closure_compile_externs") { ...@@ -83,7 +83,6 @@ js_library("closure_compile_externs") {
externs_list = [ externs_list = [
"$externs_path/command_line_private.js", "$externs_path/command_line_private.js",
"$externs_path/metrics_private.js", "$externs_path/metrics_private.js",
"$externs_path/web_animations.js",
"//ui/file_manager/externs/background/crostini.js", "//ui/file_manager/externs/background/crostini.js",
"//ui/file_manager/externs/background/drive_sync_handler.js", "//ui/file_manager/externs/background/drive_sync_handler.js",
"//ui/file_manager/externs/background/file_browser_background.js", "//ui/file_manager/externs/background/file_browser_background.js",
......
...@@ -64,7 +64,6 @@ js_library("closure_compile_externs") { ...@@ -64,7 +64,6 @@ js_library("closure_compile_externs") {
sources = [] sources = []
externs_list = [ externs_list = [
"$externs_path/metrics_private.js", "$externs_path/metrics_private.js",
"$externs_path/web_animations.js",
"//ui/file_manager/externs/background/crostini.js", "//ui/file_manager/externs/background/crostini.js",
"//ui/file_manager/externs/background/drive_sync_handler.js", "//ui/file_manager/externs/background/drive_sync_handler.js",
"//ui/file_manager/externs/background/file_browser_background.js", "//ui/file_manager/externs/background/file_browser_background.js",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
async function testShowDialogAfterHide(done) { async function testShowDialogAfterHide(done) {
// Polyfill chrome.app.window.current(). // Polyfill chrome.app.window.current().
/** @suppress {duplicate|checkTypes} */ /** @suppress {duplicate,checkTypes,const} */
chrome.app = {window: {current: () => null}}; chrome.app = {window: {current: () => null}};
const container = const container =
......
...@@ -16,7 +16,6 @@ js_library("cr_dialog") { ...@@ -16,7 +16,6 @@ js_library("cr_dialog") {
"..:cr_container_shadow_behavior", "..:cr_container_shadow_behavior",
"//ui/webui/resources/js:assert", "//ui/webui/resources/js:assert",
] ]
externs_list = [ "$externs_path/web_animations.js" ]
} }
polymer_modulizer("cr_dialog") { polymer_modulizer("cr_dialog") {
...@@ -46,5 +45,4 @@ js_library("cr_dialog.m") { ...@@ -46,5 +45,4 @@ js_library("cr_dialog.m") {
"//ui/webui/resources/js:assert.m", "//ui/webui/resources/js:assert.m",
] ]
extra_deps = [ ":cr_dialog_module" ] extra_deps = [ ":cr_dialog_module" ]
externs_list = [ "$externs_path/web_animations.js" ]
} }
...@@ -26,7 +26,6 @@ js_library("cr_toolbar") { ...@@ -26,7 +26,6 @@ js_library("cr_toolbar") {
deps = [ deps = [
":cr_toolbar_search_field", ":cr_toolbar_search_field",
] ]
externs_list = [ "$externs_path/web_animations.js" ]
} }
polymer_modulizer("cr_toolbar") { polymer_modulizer("cr_toolbar") {
......
...@@ -15,7 +15,6 @@ js_library("cr_view_manager") { ...@@ -15,7 +15,6 @@ js_library("cr_view_manager") {
deps = [ deps = [
"//ui/webui/resources/js:assert", "//ui/webui/resources/js:assert",
] ]
externs_list = [ "$externs_path/web_animations.js" ]
} }
polymer_modulizer("cr_view_manager") { polymer_modulizer("cr_view_manager") {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment