OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
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 15 matching lines...) Expand all Loading... |
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 /** | 29 /** |
30 * @constructor | 30 * @constructor |
31 * @extends {WebInspector.ElementsSidebarPane} | 31 * @extends {WebInspector.ElementsSidebarPane} |
32 */ | 32 */ |
33 WebInspector.MetricsSidebarPane = function() | 33 WebInspector.MetricsSidebarPane = function() |
34 { | 34 { |
35 WebInspector.ElementsSidebarPane.call(this); | 35 WebInspector.ElementsSidebarPane.call(this); |
36 } | 36 }; |
37 | 37 |
38 WebInspector.MetricsSidebarPane.prototype = { | 38 WebInspector.MetricsSidebarPane.prototype = { |
39 /** | 39 /** |
40 * @override | 40 * @override |
41 * @protected | 41 * @protected |
42 * @return {!Promise.<?>} | 42 * @return {!Promise.<?>} |
43 */ | 43 */ |
44 doUpdate: function() | 44 doUpdate: function() |
45 { | 45 { |
46 // "style" attribute might have changed. Update metrics unless they are
being edited | 46 // "style" attribute might have changed. Update metrics unless they are
being edited |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 } | 460 } |
461 }, | 461 }, |
462 | 462 |
463 _editingCommitted: function(element, userInput, previousContent, context) | 463 _editingCommitted: function(element, userInput, previousContent, context) |
464 { | 464 { |
465 this.editingEnded(element, context); | 465 this.editingEnded(element, context); |
466 this._applyUserInput(element, userInput, previousContent, context, true)
; | 466 this._applyUserInput(element, userInput, previousContent, context, true)
; |
467 }, | 467 }, |
468 | 468 |
469 __proto__: WebInspector.ElementsSidebarPane.prototype | 469 __proto__: WebInspector.ElementsSidebarPane.prototype |
470 } | 470 }; |
OLD | NEW |