| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 this._historyIterator = -1; | 74 this._historyIterator = -1; |
| 75 document.addEventListener("keydown", this._keyDown.bind(this), false); | 75 document.addEventListener("keydown", this._keyDown.bind(this), false); |
| 76 document.addEventListener("keypress", this._keyPress.bind(this), false); | 76 document.addEventListener("keypress", this._keyPress.bind(this), false); |
| 77 this._panelDescriptors = {}; | 77 this._panelDescriptors = {}; |
| 78 | 78 |
| 79 // Windows and Mac have two different definitions of '[' and ']', so accept
both of each. | 79 // Windows and Mac have two different definitions of '[' and ']', so accept
both of each. |
| 80 this._openBracketIdentifiers = ["U+005B", "U+00DB"].keySet(); | 80 this._openBracketIdentifiers = ["U+005B", "U+00DB"].keySet(); |
| 81 this._closeBracketIdentifiers = ["U+005D", "U+00DD"].keySet(); | 81 this._closeBracketIdentifiers = ["U+005D", "U+00DD"].keySet(); |
| 82 this._lastActivePanelSetting = WebInspector.settings.createSetting("lastActi
vePanel", "elements"); | 82 this._lastActivePanelSetting = WebInspector.settings.createSetting("lastActi
vePanel", "elements"); |
| 83 | 83 |
| 84 if ("tracing" === this._lastActivePanelSetting.get()) { |
| 85 WebInspector.experimentsSettings.timelineOnTraceEvents.setEnabled(true); |
| 86 this._lastActivePanelSetting.set("timeline"); |
| 87 } |
| 88 |
| 84 this._loadPanelDesciptors(); | 89 this._loadPanelDesciptors(); |
| 85 | 90 |
| 86 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Event
s.ShowConsole, this.showPanel.bind(this, "console")); | 91 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Event
s.ShowConsole, this.showPanel.bind(this, "console")); |
| 87 }; | 92 }; |
| 88 | 93 |
| 89 WebInspector.InspectorView.prototype = { | 94 WebInspector.InspectorView.prototype = { |
| 90 _loadPanelDesciptors: function() | 95 _loadPanelDesciptors: function() |
| 91 { | 96 { |
| 92 WebInspector.startBatchUpdate(); | 97 WebInspector.startBatchUpdate(); |
| 93 self.runtime.extensions(WebInspector.Panel).forEach(processPanelExtensio
ns.bind(this)); | 98 self.runtime.extensions(WebInspector.Panel).forEach(processPanelExtensio
ns.bind(this)); |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 | 461 |
| 457 WebInspector.InspectorView.ToggleDrawerButtonProvider.prototype = { | 462 WebInspector.InspectorView.ToggleDrawerButtonProvider.prototype = { |
| 458 /** | 463 /** |
| 459 * @return {?WebInspector.StatusBarItem} | 464 * @return {?WebInspector.StatusBarItem} |
| 460 */ | 465 */ |
| 461 item: function() | 466 item: function() |
| 462 { | 467 { |
| 463 return WebInspector.inspectorView._drawer.toggleButton(); | 468 return WebInspector.inspectorView._drawer.toggleButton(); |
| 464 } | 469 } |
| 465 } | 470 } |
| OLD | NEW |