| OLD | NEW |
| 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 Loading... |
| 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 }); |
| OLD | NEW |