Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Unified Diff: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js

Issue 2597013002: Run clang-format on ui/webui/resources (Closed)
Patch Set: remove cr_shared_menu.js Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js
diff --git a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js
index 4b607fec117f9488300fa44e4251b4b2ac5d5cd3..10986a955ae881706d426895493023863a75349a 100644
--- a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js
+++ b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js
@@ -27,10 +27,7 @@ Polymer({
spinnerActive: Boolean,
// Controls whether the menu button is shown at the start of the menu.
- showMenu: {
- type: Boolean,
- value: false
- },
+ showMenu: {type: Boolean, value: false},
// Whether to show menu promo tooltip.
showMenuPromo: {
@@ -41,10 +38,7 @@ Polymer({
closeMenuPromo: String,
/** @private */
- narrow_: {
- type: Boolean,
- reflectToAttribute: true
- },
+ narrow_: {type: Boolean, reflectToAttribute: true},
/** @private */
showingSearch_: {
@@ -58,30 +52,25 @@ Polymer({
],
/** @return {!CrToolbarSearchFieldElement} */
- getSearchField: function() {
- return this.$.search;
- },
+ getSearchField: function() { return this.$.search; },
/** @private */
- onClosePromoTap_: function() {
- this.fire('cr-toolbar-menu-promo-close');
- },
+ onClosePromoTap_: function() { this.fire('cr-toolbar-menu-promo-close'); },
/** @private */
- onMenuTap_: function() {
- this.fire('cr-toolbar-menu-tap');
- },
+ onMenuTap_: function() { this.fire('cr-toolbar-menu-tap'); },
/** @private */
possiblyShowMenuPromo_: function() {
Polymer.RenderStatus.afterNextRender(this, function() {
if (this.showMenu && this.showMenuPromo && !this.showingSearch_) {
- this.$$('#menuPromo').animate({
- opacity: [0, .9],
- }, /** @type {!KeyframeEffectOptions} */({
- duration: 500,
- fill: 'forwards'
- }));
+ this.$$('#menuPromo')
+ .animate(
+ {
+ opacity: [0, .9],
+ },
+ /** @type {!KeyframeEffectOptions} */ (
+ {duration: 500, fill: 'forwards'}));
this.fire('cr-toolbar-menu-promo-shown');
}
}.bind(this));

Powered by Google App Engine
This is Rietveld 408576698