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

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

Issue 2515763003: DevTools: use shorthand syntax in interface definitions. (Closed)
Patch Set: Created 4 years, 1 month 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 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 4 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
5 * Copyright (C) 2009 Joseph Pecoraro 5 * Copyright (C) 2009 Joseph Pecoraro
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 /** 615 /**
616 * @interface 616 * @interface
617 */ 617 */
618 Components.DOMPresentationUtils.MarkerDecorator = function() {}; 618 Components.DOMPresentationUtils.MarkerDecorator = function() {};
619 619
620 Components.DOMPresentationUtils.MarkerDecorator.prototype = { 620 Components.DOMPresentationUtils.MarkerDecorator.prototype = {
621 /** 621 /**
622 * @param {!SDK.DOMNode} node 622 * @param {!SDK.DOMNode} node
623 * @return {?{title: string, color: string}} 623 * @return {?{title: string, color: string}}
624 */ 624 */
625 decorate: function(node) {} 625 decorate(node) {}
626 }; 626 };
627 627
628 /** 628 /**
629 * @implements {Components.DOMPresentationUtils.MarkerDecorator} 629 * @implements {Components.DOMPresentationUtils.MarkerDecorator}
630 * @unrestricted 630 * @unrestricted
631 */ 631 */
632 Components.DOMPresentationUtils.GenericDecorator = class { 632 Components.DOMPresentationUtils.GenericDecorator = class {
633 /** 633 /**
634 * @param {!Runtime.Extension} extension 634 * @param {!Runtime.Extension} extension
635 */ 635 */
636 constructor(extension) { 636 constructor(extension) {
637 this._title = Common.UIString(extension.title()); 637 this._title = Common.UIString(extension.title());
638 this._color = extension.descriptor()['color']; 638 this._color = extension.descriptor()['color'];
639 } 639 }
640 640
641 /** 641 /**
642 * @override 642 * @override
643 * @param {!SDK.DOMNode} node 643 * @param {!SDK.DOMNode} node
644 * @return {?{title: string, color: string}} 644 * @return {?{title: string, color: string}}
645 */ 645 */
646 decorate(node) { 646 decorate(node) {
647 return {title: this._title, color: this._color}; 647 return {title: this._title, color: this._color};
648 } 648 }
649 }; 649 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698