| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 1773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1784 { | 1784 { |
| 1785 if (!this._timeUpdateTimer) | 1785 if (!this._timeUpdateTimer) |
| 1786 return; | 1786 return; |
| 1787 var elapsed = (Date.now() - this._startTime) / 1000; | 1787 var elapsed = (Date.now() - this._startTime) / 1000; |
| 1788 this._time.textContent = WebInspector.UIString("%s\u2009sec", elapsed.to
Fixed(precise ? 1 : 0)); | 1788 this._time.textContent = WebInspector.UIString("%s\u2009sec", elapsed.to
Fixed(precise ? 1 : 0)); |
| 1789 }, | 1789 }, |
| 1790 | 1790 |
| 1791 __proto__: WebInspector.VBox.prototype | 1791 __proto__: WebInspector.VBox.prototype |
| 1792 } | 1792 } |
| 1793 | 1793 |
| 1794 WebInspector.TimelinePanel.show = function() | |
| 1795 { | |
| 1796 WebInspector.inspectorView.setCurrentPanel(WebInspector.TimelinePanel.instan
ce()); | |
| 1797 } | |
| 1798 | |
| 1799 /** | 1794 /** |
| 1800 * @return {!WebInspector.TimelinePanel} | 1795 * @return {!WebInspector.TimelinePanel} |
| 1801 */ | 1796 */ |
| 1802 WebInspector.TimelinePanel.instance = function() | 1797 WebInspector.TimelinePanel.instance = function() |
| 1803 { | 1798 { |
| 1804 return /** @type {!WebInspector.TimelinePanel} */ (self.runtime.sharedInstan
ce(WebInspector.TimelinePanel)); | 1799 return /** @type {!WebInspector.TimelinePanel} */ (self.runtime.sharedInstan
ce(WebInspector.TimelinePanel)); |
| 1805 } | 1800 } |
| 1806 | 1801 |
| 1807 /** | 1802 /** |
| 1808 * @constructor | 1803 * @constructor |
| 1809 * @implements {WebInspector.QueryParamHandler} | 1804 * @implements {WebInspector.QueryParamHandler} |
| 1810 */ | 1805 */ |
| 1811 WebInspector.LoadTimelineHandler = function() | 1806 WebInspector.LoadTimelineHandler = function() |
| 1812 { | 1807 { |
| 1813 } | 1808 } |
| 1814 | 1809 |
| 1815 WebInspector.LoadTimelineHandler.prototype = { | 1810 WebInspector.LoadTimelineHandler.prototype = { |
| 1816 /** | 1811 /** |
| 1817 * @override | 1812 * @override |
| 1818 * @param {string} value | 1813 * @param {string} value |
| 1819 */ | 1814 */ |
| 1820 handleQueryParam: function(value) | 1815 handleQueryParam: function(value) |
| 1821 { | 1816 { |
| 1822 WebInspector.TimelinePanel.show(); | 1817 WebInspector.viewManager.showView("timeline").then(() => { |
| 1823 WebInspector.TimelinePanel.instance()._loadFromURL(window.decodeURICompo
nent(value)); | 1818 WebInspector.TimelinePanel.instance()._loadFromURL(window.decodeURIC
omponent(value)); |
| 1819 }); |
| 1824 } | 1820 } |
| 1825 } | 1821 } |
| 1826 | 1822 |
| 1827 /** | 1823 /** |
| 1828 * @constructor | 1824 * @constructor |
| 1829 * @implements {WebInspector.ActionDelegate} | 1825 * @implements {WebInspector.ActionDelegate} |
| 1830 */ | 1826 */ |
| 1831 WebInspector.TimelinePanel.ActionDelegate = function() | 1827 WebInspector.TimelinePanel.ActionDelegate = function() |
| 1832 { | 1828 { |
| 1833 } | 1829 } |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2116 _onKeyDown: function(event) | 2112 _onKeyDown: function(event) |
| 2117 { | 2113 { |
| 2118 if (event.keyCode === WebInspector.KeyboardShortcut.Keys.Enter.code) { | 2114 if (event.keyCode === WebInspector.KeyboardShortcut.Keys.Enter.code) { |
| 2119 event.preventDefault(); | 2115 event.preventDefault(); |
| 2120 this._apply(); | 2116 this._apply(); |
| 2121 } | 2117 } |
| 2122 }, | 2118 }, |
| 2123 | 2119 |
| 2124 __proto__: WebInspector.HBox.prototype | 2120 __proto__: WebInspector.HBox.prototype |
| 2125 } | 2121 } |
| OLD | NEW |