OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 * @constructor | 6 * @constructor |
7 * @param {!WebInspector.ActionRegistry} actionRegistry | 7 * @param {!WebInspector.ActionRegistry} actionRegistry |
8 */ | 8 */ |
9 WebInspector.ShortcutRegistry = function(actionRegistry) | 9 WebInspector.ShortcutRegistry = function(actionRegistry) |
10 { | 10 { |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 var platforms = platformsString.split(","); | 194 var platforms = platformsString.split(","); |
195 var isMatch = false; | 195 var isMatch = false; |
196 var currentPlatform = WebInspector.platform(); | 196 var currentPlatform = WebInspector.platform(); |
197 for (var i = 0; !isMatch && i < platforms.length; ++i) | 197 for (var i = 0; !isMatch && i < platforms.length; ++i) |
198 isMatch = platforms[i] === currentPlatform; | 198 isMatch = platforms[i] === currentPlatform; |
199 return isMatch; | 199 return isMatch; |
200 } | 200 } |
201 } | 201 } |
202 } | 202 } |
203 | 203 |
| 204 /** |
| 205 * @constructor |
| 206 */ |
| 207 WebInspector.ShortcutRegistry.ForwardedShortcut = function() |
| 208 { |
| 209 } |
| 210 |
| 211 WebInspector.ShortcutRegistry.ForwardedShortcut.instance = new WebInspector.Shor
tcutRegistry.ForwardedShortcut(); |
| 212 |
204 /** @type {!WebInspector.ShortcutRegistry} */ | 213 /** @type {!WebInspector.ShortcutRegistry} */ |
205 WebInspector.shortcutRegistry; | 214 WebInspector.shortcutRegistry; |
OLD | NEW |