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

Unified Diff: ui/webui/resources/js/cr/ui/command.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/js/cr/ui/command.js
diff --git a/ui/webui/resources/js/cr/ui/command.js b/ui/webui/resources/js/cr/ui/command.js
index ec967796e4157971e2432f6b575ac13862dd2998..3f857aff09a39264540c339a1f1273ffe84eda73 100644
--- a/ui/webui/resources/js/cr/ui/command.js
+++ b/ui/webui/resources/js/cr/ui/command.js
@@ -108,8 +108,8 @@ cr.define('cr.ui', function() {
* @param {Node=} opt_node Node for which to actuate command state.
*/
canExecuteChange: function(opt_node) {
- dispatchCanExecuteEvent(this,
- opt_node || this.ownerDocument.activeElement);
+ dispatchCanExecuteEvent(
+ this, opt_node || this.ownerDocument.activeElement);
},
/**
@@ -129,9 +129,7 @@ cr.define('cr.ui', function() {
* @type {string}
*/
shortcut_: '',
- get shortcut() {
- return this.shortcut_;
- },
+ get shortcut() { return this.shortcut_; },
set shortcut(shortcut) {
var oldShortcut = this.shortcut_;
if (shortcut !== oldShortcut) {
@@ -141,8 +139,8 @@ cr.define('cr.ui', function() {
// Set this after the keyboardShortcuts_ since that might throw.
this.shortcut_ = shortcut;
- cr.dispatchPropertyChange(this, 'shortcut', this.shortcut_,
- oldShortcut);
+ cr.dispatchPropertyChange(
+ this, 'shortcut', this.shortcut_, oldShortcut);
}
},
@@ -312,9 +310,7 @@ cr.define('cr.ui', function() {
* @type {boolean}
*/
canExecute_: false,
- get canExecute() {
- return this.canExecute_;
- },
+ get canExecute() { return this.canExecute_; },
set canExecute(canExecute) {
this.canExecute_ = !!canExecute;
this.stopPropagation();
@@ -323,8 +319,5 @@ cr.define('cr.ui', function() {
};
// Export
- return {
- Command: Command,
- CanExecuteEvent: CanExecuteEvent
- };
+ return {Command: Command, CanExecuteEvent: CanExecuteEvent};
});

Powered by Google App Engine
This is Rietveld 408576698