| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 /** | 63 /** |
| 64 * @param {function():?WebInspector.SourceFrame} sourceFrameGetter | 64 * @param {function():?WebInspector.SourceFrame} sourceFrameGetter |
| 65 * @param {!Event=} event | 65 * @param {!Event=} event |
| 66 * @return {boolean} | 66 * @return {boolean} |
| 67 */ | 67 */ |
| 68 WebInspector.GoToLineDialog._show = function(sourceFrameGetter, event) | 68 WebInspector.GoToLineDialog._show = function(sourceFrameGetter, event) |
| 69 { | 69 { |
| 70 var sourceFrame = sourceFrameGetter(); | 70 var sourceFrame = sourceFrameGetter(); |
| 71 if (!sourceFrame) | 71 if (!sourceFrame) |
| 72 return false; | 72 return false; |
| 73 WebInspector.Dialog.show(sourceFrame.element, new WebInspector.GoToLineDialo
g(sourceFrame)); | 73 WebInspector.Dialog.show(new WebInspector.GoToLineDialog(sourceFrame)); |
| 74 return true; | 74 return true; |
| 75 } | 75 } |
| 76 | 76 |
| 77 /** | 77 /** |
| 78 * @return {!WebInspector.KeyboardShortcut.Descriptor} | 78 * @return {!WebInspector.KeyboardShortcut.Descriptor} |
| 79 */ | 79 */ |
| 80 WebInspector.GoToLineDialog.createShortcut = function() | 80 WebInspector.GoToLineDialog.createShortcut = function() |
| 81 { | 81 { |
| 82 return WebInspector.KeyboardShortcut.makeDescriptor("g", WebInspector.Keyboa
rdShortcut.Modifiers.Ctrl); | 82 return WebInspector.KeyboardShortcut.makeDescriptor("g", WebInspector.Keyboa
rdShortcut.Modifiers.Ctrl); |
| 83 } | 83 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 103 this._sourceFrame.revealPosition(lineNumber, 0, true); | 103 this._sourceFrame.revealPosition(lineNumber, 0, true); |
| 104 }, | 104 }, |
| 105 | 105 |
| 106 onEnter: function() | 106 onEnter: function() |
| 107 { | 107 { |
| 108 this._applyLineNumber(); | 108 this._applyLineNumber(); |
| 109 }, | 109 }, |
| 110 | 110 |
| 111 __proto__: WebInspector.DialogDelegate.prototype | 111 __proto__: WebInspector.DialogDelegate.prototype |
| 112 } | 112 } |
| OLD | NEW |