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

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

Issue 1165263002: DevTools: Add 'continue to here' to the editor context menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 if (!messageBucket.uniqueMessagesCount()) { 597 if (!messageBucket.uniqueMessagesCount()) {
598 messageBucket.detachFromEditor(); 598 messageBucket.detachFromEditor();
599 delete this._rowMessageBuckets[lineNumber]; 599 delete this._rowMessageBuckets[lineNumber];
600 } 600 }
601 }, 601 },
602 602
603 populateLineGutterContextMenu: function(contextMenu, lineNumber) 603 populateLineGutterContextMenu: function(contextMenu, lineNumber)
604 { 604 {
605 }, 605 },
606 606
607 populateTextAreaContextMenu: function(contextMenu, lineNumber) 607 populateTextAreaContextMenu: function(contextMenu, lineNumber, columnNumber)
608 { 608 {
609 }, 609 },
610 610
611 /** 611 /**
612 * @param {?WebInspector.TextRange} from 612 * @param {?WebInspector.TextRange} from
613 * @param {?WebInspector.TextRange} to 613 * @param {?WebInspector.TextRange} to
614 */ 614 */
615 onJumpToPosition: function(from, to) 615 onJumpToPosition: function(from, to)
616 { 616 {
617 this.dispatchEventToListeners(WebInspector.SourceFrame.Events.JumpHappen ed, { 617 this.dispatchEventToListeners(WebInspector.SourceFrame.Events.JumpHappen ed, {
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 * @override 1012 * @override
1013 */ 1013 */
1014 populateLineGutterContextMenu: function(contextMenu, lineNumber) 1014 populateLineGutterContextMenu: function(contextMenu, lineNumber)
1015 { 1015 {
1016 this._sourceFrame.populateLineGutterContextMenu(contextMenu, lineNumber) ; 1016 this._sourceFrame.populateLineGutterContextMenu(contextMenu, lineNumber) ;
1017 }, 1017 },
1018 1018
1019 /** 1019 /**
1020 * @override 1020 * @override
1021 */ 1021 */
1022 populateTextAreaContextMenu: function(contextMenu, lineNumber) 1022 populateTextAreaContextMenu: function(contextMenu, lineNumber, columnNumber)
1023 { 1023 {
1024 this._sourceFrame.populateTextAreaContextMenu(contextMenu, lineNumber); 1024 this._sourceFrame.populateTextAreaContextMenu(contextMenu, lineNumber, c olumnNumber);
1025 }, 1025 },
1026 1026
1027 /** 1027 /**
1028 * @override 1028 * @override
1029 * @param {?WebInspector.TextRange} from 1029 * @param {?WebInspector.TextRange} from
1030 * @param {?WebInspector.TextRange} to 1030 * @param {?WebInspector.TextRange} to
1031 */ 1031 */
1032 onJumpToPosition: function(from, to) 1032 onJumpToPosition: function(from, to)
1033 { 1033 {
1034 this._sourceFrame.onJumpToPosition(from, to); 1034 this._sourceFrame.onJumpToPosition(from, to);
1035 } 1035 }
1036 } 1036 }
1037 1037
1038 WebInspector.SourceFrameMessage._messageLevelPriority = { 1038 WebInspector.SourceFrameMessage._messageLevelPriority = {
1039 "Warning": 3, 1039 "Warning": 3,
1040 "Error": 4 1040 "Error": 4
1041 }; 1041 };
1042 1042
1043 /** 1043 /**
1044 * @param {!WebInspector.SourceFrameMessage} a 1044 * @param {!WebInspector.SourceFrameMessage} a
1045 * @param {!WebInspector.SourceFrameMessage} b 1045 * @param {!WebInspector.SourceFrameMessage} b
1046 * @return {number} 1046 * @return {number}
1047 */ 1047 */
1048 WebInspector.SourceFrameMessage.messageLevelComparator = function(a, b) 1048 WebInspector.SourceFrameMessage.messageLevelComparator = function(a, b)
1049 { 1049 {
1050 return WebInspector.SourceFrameMessage._messageLevelPriority[a.level()] - We bInspector.SourceFrameMessage._messageLevelPriority[b.level()]; 1050 return WebInspector.SourceFrameMessage._messageLevelPriority[a.level()] - We bInspector.SourceFrameMessage._messageLevelPriority[b.level()];
1051 } 1051 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698