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

Side by Side Diff: Source/devtools/front_end/source_frame/GoToLineDialog.js

Issue 1356363002: [DevTools] Remove relativeToElement from Dialog. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months 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 | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/settings/SettingsScreen.js ('k') | Source/devtools/front_end/sources/AddSourceMapURLDialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698