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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js

Issue 2387573002: DevTools: remove dupe evaluate selection entry from the context menu. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 10 *
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 */ 269 */
270 populateTextAreaContextMenu: function(contextMenu, lineNumber, columnNumber) 270 populateTextAreaContextMenu: function(contextMenu, lineNumber, columnNumber)
271 { 271 {
272 /** 272 /**
273 * @this {WebInspector.UISourceCodeFrame} 273 * @this {WebInspector.UISourceCodeFrame}
274 */ 274 */
275 function appendItems() 275 function appendItems()
276 { 276 {
277 contextMenu.appendApplicableItems(this._uiSourceCode); 277 contextMenu.appendApplicableItems(this._uiSourceCode);
278 contextMenu.appendApplicableItems(new WebInspector.UILocation(this._ uiSourceCode, lineNumber, columnNumber)); 278 contextMenu.appendApplicableItems(new WebInspector.UILocation(this._ uiSourceCode, lineNumber, columnNumber));
279 contextMenu.appendApplicableItems(this);
279 } 280 }
280 281
281 return WebInspector.SourceFrame.prototype.populateTextAreaContextMenu.ca ll(this, contextMenu, lineNumber, columnNumber) 282 return WebInspector.SourceFrame.prototype.populateTextAreaContextMenu.ca ll(this, contextMenu, lineNumber, columnNumber)
282 .then(appendItems.bind(this)); 283 .then(appendItems.bind(this));
283 }, 284 },
284 285
285 /** 286 /**
286 * @param {!Array.<!WebInspector.Infobar|undefined>} infobars 287 * @param {!Array.<!WebInspector.Infobar|undefined>} infobars
287 */ 288 */
288 attachInfobars: function(infobars) 289 attachInfobars: function(infobars)
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 682
682 /** 683 /**
683 * @param {!WebInspector.UISourceCode.Message} a 684 * @param {!WebInspector.UISourceCode.Message} a
684 * @param {!WebInspector.UISourceCode.Message} b 685 * @param {!WebInspector.UISourceCode.Message} b
685 * @return {number} 686 * @return {number}
686 */ 687 */
687 WebInspector.UISourceCode.Message.messageLevelComparator = function(a, b) 688 WebInspector.UISourceCode.Message.messageLevelComparator = function(a, b)
688 { 689 {
689 return WebInspector.UISourceCode.Message._messageLevelPriority[a.level()] - WebInspector.UISourceCode.Message._messageLevelPriority[b.level()]; 690 return WebInspector.UISourceCode.Message._messageLevelPriority[a.level()] - WebInspector.UISourceCode.Message._messageLevelPriority[b.level()];
690 } 691 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698