OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |