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

Unified Diff: ui/webui/resources/js/cr/ui/context_menu_handler.js

Issue 2603443002: Clang format JS: Disallow single line functions, conditionals, loops, and switch statements (Closed)
Patch Set: update c/b/r/ as well 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
« no previous file with comments | « ui/webui/resources/js/cr/ui/command.js ('k') | ui/webui/resources/js/cr/ui/controlled_indicator.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/cr/ui/context_menu_handler.js
diff --git a/ui/webui/resources/js/cr/ui/context_menu_handler.js b/ui/webui/resources/js/cr/ui/context_menu_handler.js
index 2266801fe5d872ef0661996047e93c7d6e90771e..8e0ccff863e8b309cdb9e70ba2d51671a579096d 100644
--- a/ui/webui/resources/js/cr/ui/context_menu_handler.js
+++ b/ui/webui/resources/js/cr/ui/context_menu_handler.js
@@ -14,7 +14,9 @@ cr.define('cr.ui', function() {
* @extends {cr.EventTarget}
* @implements {EventListener}
*/
- function ContextMenuHandler() { this.showingEvents_ = new EventTracker(); }
+ function ContextMenuHandler() {
+ this.showingEvents_ = new EventTracker();
+ }
ContextMenuHandler.prototype = {
__proto__: EventTarget.prototype,
@@ -23,7 +25,10 @@ cr.define('cr.ui', function() {
* The menu that we are currently showing.
* @type {cr.ui.Menu}
*/
- menu_: null, get menu() { return this.menu_; },
+ menu_: null,
+ get menu() {
+ return this.menu_;
+ },
/**
* Shows a menu as a context menu.
@@ -217,8 +222,9 @@ cr.define('cr.ui', function() {
elementOrClass.prototype :
elementOrClass;
- target.__defineGetter__(
- 'contextMenu', function() { return this.contextMenu_; });
+ target.__defineGetter__('contextMenu', function() {
+ return this.contextMenu_;
+ });
target.__defineSetter__('contextMenu', function(menu) {
var oldContextMenu = this.contextMenu;
« no previous file with comments | « ui/webui/resources/js/cr/ui/command.js ('k') | ui/webui/resources/js/cr/ui/controlled_indicator.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698