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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/components/Linkifier.js

Issue 2594883002: DevTools: [Persistence] introduce badged icons instead of checkmarks (Closed)
Patch Set: missing jsdoc Created 3 years, 12 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) 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 * * 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 /** @type {!Set<!Components.Linkifier>} */ 530 /** @type {!Set<!Components.Linkifier>} */
531 Components.Linkifier._instances = new Set(); 531 Components.Linkifier._instances = new Set();
532 /** @type {?Components.LinkDecorator} */ 532 /** @type {?Components.LinkDecorator} */
533 Components.Linkifier._decorator = null; 533 Components.Linkifier._decorator = null;
534 534
535 Components.Linkifier._sourceCodeAnchors = Symbol('Linkifier.anchors'); 535 Components.Linkifier._sourceCodeAnchors = Symbol('Linkifier.anchors');
536 Components.Linkifier._infoSymbol = Symbol('Linkifier.info'); 536 Components.Linkifier._infoSymbol = Symbol('Linkifier.info');
537 537
538 /** 538 /**
539 * @typedef {{ 539 * @typedef {{
540 * icon: ?UI.Icon, 540 * icon: ?Element,
541 * enableDecorator: boolean, 541 * enableDecorator: boolean,
542 * uiLocation: ?Workspace.UILocation, 542 * uiLocation: ?Workspace.UILocation,
543 * liveLocation: ?Bindings.LiveLocation, 543 * liveLocation: ?Bindings.LiveLocation,
544 * url: ?string, 544 * url: ?string,
545 * lineNumber: ?number, 545 * lineNumber: ?number,
546 * columnNumber: ?number, 546 * columnNumber: ?number,
547 * revealable: ?Object, 547 * revealable: ?Object,
548 * fallback: ?Element 548 * fallback: ?Element
549 * }} 549 * }}
550 */ 550 */
(...skipping 23 matching lines...) Expand all
574 574
575 /** 575 /**
576 * @extends {Common.EventTarget} 576 * @extends {Common.EventTarget}
577 * @interface 577 * @interface
578 */ 578 */
579 Components.LinkDecorator = function() {}; 579 Components.LinkDecorator = function() {};
580 580
581 Components.LinkDecorator.prototype = { 581 Components.LinkDecorator.prototype = {
582 /** 582 /**
583 * @param {!Workspace.UISourceCode} uiSourceCode 583 * @param {!Workspace.UISourceCode} uiSourceCode
584 * @return {?UI.Icon} 584 * @return {?Element}
585 */ 585 */
586 linkIcon(uiSourceCode) {} 586 linkIcon(uiSourceCode) {}
587 }; 587 };
588 588
589 Components.LinkDecorator.Events = { 589 Components.LinkDecorator.Events = {
590 LinkIconChanged: Symbol('LinkIconChanged') 590 LinkIconChanged: Symbol('LinkIconChanged')
591 }; 591 };
592 592
593 /** 593 /**
594 * @param {string} string 594 * @param {string} string
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 contextMenu.appendSeparator(); 771 contextMenu.appendSeparator();
772 contextMenu.appendItem(Common.UIString('Save'), save.bind(null, false)); 772 contextMenu.appendItem(Common.UIString('Save'), save.bind(null, false));
773 773
774 if (contentProvider instanceof Workspace.UISourceCode) { 774 if (contentProvider instanceof Workspace.UISourceCode) {
775 var uiSourceCode = /** @type {!Workspace.UISourceCode} */ (contentProvider ); 775 var uiSourceCode = /** @type {!Workspace.UISourceCode} */ (contentProvider );
776 if (!uiSourceCode.project().canSetFileContent()) 776 if (!uiSourceCode.project().canSetFileContent())
777 contextMenu.appendItem(Common.UIString.capitalize('Save ^as...'), save.b ind(null, true)); 777 contextMenu.appendItem(Common.UIString.capitalize('Save ^as...'), save.b ind(null, true));
778 } 778 }
779 } 779 }
780 }; 780 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698