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

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

Issue 202043002: DevTools: Use open resource dialog for go to line feature in sources panel. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 6 years, 9 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 return false; 74 return false;
75 WebInspector.Dialog.show(sourceView.element, new WebInspector.GoToLineDialog (sourceView)); 75 WebInspector.Dialog.show(sourceView.element, new WebInspector.GoToLineDialog (sourceView));
76 return true; 76 return true;
77 } 77 }
78 78
79 /** 79 /**
80 * @return {!WebInspector.KeyboardShortcut.Descriptor} 80 * @return {!WebInspector.KeyboardShortcut.Descriptor}
81 */ 81 */
82 WebInspector.GoToLineDialog.createShortcut = function() 82 WebInspector.GoToLineDialog.createShortcut = function()
83 { 83 {
84 var isMac = WebInspector.isMac();
85 var shortcut;
86 return WebInspector.KeyboardShortcut.makeDescriptor("g", WebInspector.Keyboa rdShortcut.Modifiers.Ctrl); 84 return WebInspector.KeyboardShortcut.makeDescriptor("g", WebInspector.Keyboa rdShortcut.Modifiers.Ctrl);
87 } 85 }
88 86
89 WebInspector.GoToLineDialog.prototype = { 87 WebInspector.GoToLineDialog.prototype = {
90 focus: function() 88 focus: function()
91 { 89 {
92 WebInspector.setCurrentFocusElement(this._input); 90 WebInspector.setCurrentFocusElement(this._input);
93 this._input.select(); 91 this._input.select();
94 }, 92 },
95 93
(...skipping 11 matching lines...) Expand all
107 this._view.highlightPosition(lineNumber); 105 this._view.highlightPosition(lineNumber);
108 }, 106 },
109 107
110 onEnter: function() 108 onEnter: function()
111 { 109 {
112 this._applyLineNumber(); 110 this._applyLineNumber();
113 }, 111 },
114 112
115 __proto__: WebInspector.DialogDelegate.prototype 113 __proto__: WebInspector.DialogDelegate.prototype
116 } 114 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/FilteredItemSelectionDialog.js ('k') | Source/devtools/front_end/ShortcutsScreen.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698