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

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

Issue 1907263002: DevTools: Fix all outstanding JavaScript style issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove yoda disable. fix throw parens Created 4 years, 8 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 * 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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 } 639 }
640 640
641 /** 641 /**
642 * @constructor 642 * @constructor
643 * @implements {WebInspector.DOMPresentationUtils.MarkerDecorator} 643 * @implements {WebInspector.DOMPresentationUtils.MarkerDecorator}
644 * @param {!Runtime.Extension} extension 644 * @param {!Runtime.Extension} extension
645 */ 645 */
646 WebInspector.DOMPresentationUtils.GenericDecorator = function(extension) 646 WebInspector.DOMPresentationUtils.GenericDecorator = function(extension)
647 { 647 {
648 this._title = WebInspector.UIString(extension.title(WebInspector.platform()) ); 648 this._title = WebInspector.UIString(extension.title(WebInspector.platform()) );
649 this._color = extension.descriptor()['color']; 649 this._color = extension.descriptor()["color"];
650 } 650 }
651 651
652 WebInspector.DOMPresentationUtils.GenericDecorator.prototype = { 652 WebInspector.DOMPresentationUtils.GenericDecorator.prototype = {
653 /** 653 /**
654 * @override 654 * @override
655 * @param {!WebInspector.DOMNode} node 655 * @param {!WebInspector.DOMNode} node
656 * @return {?{title: string, color: string}} 656 * @return {?{title: string, color: string}}
657 */ 657 */
658 decorate: function(node) 658 decorate: function(node)
659 { 659 {
660 return { title: this._title, color: this._color }; 660 return { title: this._title, color: this._color };
661 } 661 }
662 } 662 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698