diff options
author | Devlin Cronin <rdevlin.cronin@chromium.org> | 2016-02-02 14:16:42 -0800 |
---|---|---|
committer | Devlin Cronin <rdevlin.cronin@chromium.org> | 2016-02-02 22:23:01 +0000 |
commit | 3d7d66a9c117d92000e87d75509bdc12d79aa455 (patch) | |
tree | 1b52ffac2bd345086e5af03668156f9db9623167 /ui/file_manager | |
parent | 68b47b29bafb2c4bdfc40049829627ba08aeb266 (diff) | |
download | chromium_src-3d7d66a9c117d92000e87d75509bdc12d79aa455.zip chromium_src-3d7d66a9c117d92000e87d75509bdc12d79aa455.tar.gz chromium_src-3d7d66a9c117d92000e87d75509bdc12d79aa455.tar.bz2 |
Roll closure compiler and update sources
Change log:
https://github.com/google/closure-compiler/compare/53f3d8a41579c002ec656bb645ce5d54470f6e0b...972497be96e537b8eee93fbeb367ede9c878df7a
chrome_extensions.js: 56292b9c2ae3991e75c0c8d5e86ef91a94058d2e -> a40c181d7d0f0e35ced922d0d8c935821b8ab214
Update $() to return HTMLElement.
Add a base.getHtmlElement to remoting.
BUG=
R=dbeam@chromium.org, hirono@chromium.org, jamiewalch@chromium.org, stevenjb@chromium.org
Review URL: https://codereview.chromium.org/1473723002 .
Cr-Commit-Position: refs/heads/master@{#373056}
Diffstat (limited to 'ui/file_manager')
3 files changed, 7 insertions, 6 deletions
diff --git a/ui/file_manager/file_manager/foreground/js/import_controller.js b/ui/file_manager/file_manager/foreground/js/import_controller.js index 3e06bfe..73b7f7c 100644 --- a/ui/file_manager/file_manager/foreground/js/import_controller.js +++ b/ui/file_manager/file_manager/foreground/js/import_controller.js @@ -516,7 +516,8 @@ importer.ClickSource = { importer.RuntimeCommandWidget = function() { /** @private {HTMLElement} */ - this.detailsPanel_ = document.getElementById('cloud-import-details'); + this.detailsPanel_ = /** @type {HTMLElement} */( + document.getElementById('cloud-import-details')); this.detailsPanel_.addEventListener( 'transitionend', this.onDetailsTransitionEnd_.bind(this), diff --git a/ui/file_manager/file_manager/foreground/js/ui/banners.js b/ui/file_manager/file_manager/foreground/js/ui/banners.js index cf6c4d9..8d19ac0 100644 --- a/ui/file_manager/file_manager/foreground/js/ui/banners.js +++ b/ui/file_manager/file_manager/foreground/js/ui/banners.js @@ -213,7 +213,7 @@ Banners.prototype.prepareAndShowWelcomeBanner_ = function(type, messageId) { more.href = str('GOOGLE_DRIVE_REDEEM_URL'); var moreInnerButton = util.createChild( more, 'imitate-paper-button primary', 'button'); - moreInnerButton.tabIndex = '-1'; + moreInnerButton.tabIndex = -1; moreInnerButton.textContent = str('DRIVE_WELCOME_CHECK_ELIGIBILITY'); } else { title.textContent = str('DRIVE_WELCOME_TITLE'); @@ -221,7 +221,7 @@ Banners.prototype.prepareAndShowWelcomeBanner_ = function(type, messageId) { more.textContent = str('DRIVE_LEARN_MORE'); more.href = str('GOOGLE_DRIVE_OVERVIEW_URL'); } - more.tabIndex = '21'; // See: go/filesapp-tabindex. + more.tabIndex = 21; // See: go/filesapp-tabindex. more.id = 'drive-welcome-link'; more.target = '_blank'; diff --git a/ui/file_manager/file_manager/foreground/js/ui/search_box.js b/ui/file_manager/file_manager/foreground/js/ui/search_box.js index ff52ec5..e56aa4c 100644 --- a/ui/file_manager/file_manager/foreground/js/ui/search_box.js +++ b/ui/file_manager/file_manager/foreground/js/ui/search_box.js @@ -239,7 +239,7 @@ SearchBox.prototype.onKeyDown_ = function(event) { if (event.keyIdentifier != 'U+001B' /* Esc */ || this.inputElement.value) return; - this.inputElement.tabIndex = '-1'; // Focus to default element after blur. + this.inputElement.tabIndex = -1; // Focus to default element after blur. this.inputElement.blur(); }; @@ -275,8 +275,8 @@ SearchBox.prototype.updateStyles_ = function() { var hasFocusOnInput = this.element.classList.contains('has-cursor'); // See go/filesapp-tabindex for tabindexes. - this.inputElement.tabIndex = (hasText || hasFocusOnInput) ? '13' : '-1'; - this.searchButton.tabIndex = (hasText || hasFocusOnInput) ? '-1' : '12'; + this.inputElement.tabIndex = (hasText || hasFocusOnInput) ? 13 : -1; + this.searchButton.tabIndex = (hasText || hasFocusOnInput) ? -1 : 12; }; /** |