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

Side by Side Diff: ui/webui/resources/js/cr/ui/context_menu_button.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview This implements a special button that is useful for showing a 6 * @fileoverview This implements a special button that is useful for showing a
7 * context menu. 7 * context menu.
8 */ 8 */
9 9
10 cr.define('cr.ui', function() { 10 cr.define('cr.ui', function() {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 */ 79 */
80 showMenu: function(shouldSetFocus) { 80 showMenu: function(shouldSetFocus) {
81 var self = this; 81 var self = this;
82 window.setTimeout(function() { 82 window.setTimeout(function() {
83 MenuButton.prototype.showMenu.call(self, shouldSetFocus); 83 MenuButton.prototype.showMenu.call(self, shouldSetFocus);
84 }, 0); 84 }, 0);
85 } 85 }
86 }; 86 };
87 87
88 // Export 88 // Export
89 return { 89 return {ContextMenuButton: ContextMenuButton};
90 ContextMenuButton: ContextMenuButton
91 };
92 }); 90 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698