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

Side by Side Diff: Source/devtools/front_end/sources/SourcesPanel.js

Issue 301163005: DevTools: [JSDoc] Avoid partial arg list annotations in code except "profiler" module (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 777
778 /** 778 /**
779 * @param {!WebInspector.UISourceCode} uiSourceCode 779 * @param {!WebInspector.UISourceCode} uiSourceCode
780 */ 780 */
781 _showLocalHistory: function(uiSourceCode) 781 _showLocalHistory: function(uiSourceCode)
782 { 782 {
783 WebInspector.RevisionHistoryView.showHistory(uiSourceCode); 783 WebInspector.RevisionHistoryView.showHistory(uiSourceCode);
784 }, 784 },
785 785
786 /** 786 /**
787 * @param {!Event} event
787 * @param {!WebInspector.ContextMenu} contextMenu 788 * @param {!WebInspector.ContextMenu} contextMenu
788 * @param {!Object} target 789 * @param {!Object} target
789 */ 790 */
790 appendApplicableItems: function(event, contextMenu, target) 791 appendApplicableItems: function(event, contextMenu, target)
791 { 792 {
792 this._appendUISourceCodeItems(event, contextMenu, target); 793 this._appendUISourceCodeItems(event, contextMenu, target);
793 this._appendRemoteObjectItems(contextMenu, target); 794 this._appendRemoteObjectItems(contextMenu, target);
794 }, 795 },
795 796
796 _suggestReload: function() 797 _suggestReload: function()
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 871
871 if (uiSourceCode.project().type() === WebInspector.projectTypes.Network || uiSourceCode.project().type() === WebInspector.projectTypes.ContentScripts) { 872 if (uiSourceCode.project().type() === WebInspector.projectTypes.Network || uiSourceCode.project().type() === WebInspector.projectTypes.ContentScripts) {
872 if (!this._workspace.projects().filter(filterProject).length) 873 if (!this._workspace.projects().filter(filterProject).length)
873 return; 874 return;
874 if (this._workspace.uiSourceCodeForURL(uiSourceCode.url) === uiSourc eCode) 875 if (this._workspace.uiSourceCodeForURL(uiSourceCode.url) === uiSourc eCode)
875 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLow erCaseMenuTitles() ? "Map to file system resource\u2026" : "Map to File System R esource\u2026"), this._mapNetworkToFileSystem.bind(this, uiSourceCode)); 876 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLow erCaseMenuTitles() ? "Map to file system resource\u2026" : "Map to File System R esource\u2026"), this._mapNetworkToFileSystem.bind(this, uiSourceCode));
876 } 877 }
877 }, 878 },
878 879
879 /** 880 /**
880 * @param {!Event} event 881 * @param {?Event} event
881 * @param {!WebInspector.ContextMenu} contextMenu 882 * @param {!WebInspector.ContextMenu} contextMenu
882 * @param {!Object} target 883 * @param {!Object} target
883 */ 884 */
884 _appendUISourceCodeItems: function(event, contextMenu, target) 885 _appendUISourceCodeItems: function(event, contextMenu, target)
885 { 886 {
886 if (!(target instanceof WebInspector.UISourceCode)) 887 if (!(target instanceof WebInspector.UISourceCode))
887 return; 888 return;
888 889
889 var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (target); 890 var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (target);
890 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMe nuTitles() ? "Local modifications\u2026" : "Local Modifications\u2026"), this._s howLocalHistory.bind(this, uiSourceCode)); 891 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMe nuTitles() ? "Local modifications\u2026" : "Local Modifications\u2026"), this._s howLocalHistory.bind(this, uiSourceCode));
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 /** 1240 /**
1240 * @constructor 1241 * @constructor
1241 * @implements {WebInspector.ContextMenu.Provider} 1242 * @implements {WebInspector.ContextMenu.Provider}
1242 */ 1243 */
1243 WebInspector.SourcesPanel.ContextMenuProvider = function() 1244 WebInspector.SourcesPanel.ContextMenuProvider = function()
1244 { 1245 {
1245 } 1246 }
1246 1247
1247 WebInspector.SourcesPanel.ContextMenuProvider.prototype = { 1248 WebInspector.SourcesPanel.ContextMenuProvider.prototype = {
1248 /** 1249 /**
1250 * @param {!Event} event
1249 * @param {!WebInspector.ContextMenu} contextMenu 1251 * @param {!WebInspector.ContextMenu} contextMenu
1250 * @param {!Object} target 1252 * @param {!Object} target
1251 */ 1253 */
1252 appendApplicableItems: function(event, contextMenu, target) 1254 appendApplicableItems: function(event, contextMenu, target)
1253 { 1255 {
1254 WebInspector.inspectorView.panel("sources").appendApplicableItems(event, contextMenu, target); 1256 WebInspector.inspectorView.panel("sources").appendApplicableItems(event, contextMenu, target);
1255 } 1257 }
1256 } 1258 }
1257 1259
1258 /** 1260 /**
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1386 var disabled = forbidden || (status === "disabled"); 1388 var disabled = forbidden || (status === "disabled");
1387 1389
1388 this._disableJSInfo.classList.toggle("hidden", !forbidden); 1390 this._disableJSInfo.classList.toggle("hidden", !forbidden);
1389 this._disableJSCheckbox.checked = disabled; 1391 this._disableJSCheckbox.checked = disabled;
1390 this._disableJSCheckbox.disabled = forbidden; 1392 this._disableJSCheckbox.disabled = forbidden;
1391 } 1393 }
1392 }, 1394 },
1393 1395
1394 __proto__: WebInspector.UISettingDelegate.prototype 1396 __proto__: WebInspector.UISettingDelegate.prototype
1395 } 1397 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sources/SourcesNavigator.js ('k') | Source/devtools/front_end/timeline/TimelineModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698