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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
55 this._toolbarElement.className = "toolbar toolbar-background"; | 55 this._toolbarElement.className = "toolbar toolbar-background"; |
56 var headerElement = this._tabbedPane.headerElement(); | 56 var headerElement = this._tabbedPane.headerElement(); |
57 headerElement.parentElement.insertBefore(this._toolbarElement, headerElement ); | 57 headerElement.parentElement.insertBefore(this._toolbarElement, headerElement ); |
58 | 58 |
59 this._leftToolbarElement = this._toolbarElement.createChild("div", "toolbar- controls-left"); | 59 this._leftToolbarElement = this._toolbarElement.createChild("div", "toolbar- controls-left"); |
60 this._toolbarElement.appendChild(headerElement); | 60 this._toolbarElement.appendChild(headerElement); |
61 this._rightToolbarElement = this._toolbarElement.createChild("div", "toolbar -controls-right"); | 61 this._rightToolbarElement = this._toolbarElement.createChild("div", "toolbar -controls-right"); |
62 | 62 |
63 if (WebInspector.experimentsSettings.devicesPanel.isEnabled()) { | 63 if (WebInspector.experimentsSettings.devicesPanel.isEnabled()) { |
64 this._remoteDeviceCountElement = this._rightToolbarElement.createChild(" div", "hidden"); | 64 this._remoteDeviceCountElement = this._rightToolbarElement.createChild(" div", "hidden"); |
65 this._remoteDeviceCountElement.addEventListener("click", this.showViewIn Drawer.bind(this, "devices"), false); | 65 this._remoteDeviceCountElement.addEventListener("click", this.showViewIn Drawer.bind(this, "devices", true), false); |
aandrey
2014/06/17 20:58:37
behavior change: was this a bug?
apavlov
2014/06/18 07:55:13
No change here: showViewInDrawer would previously
| |
66 this._remoteDeviceCountElement.id = "remote-device-count"; | 66 this._remoteDeviceCountElement.id = "remote-device-count"; |
67 WebInspector.inspectorFrontendEventSink.addEventListener(WebInspector.In spectorView.Events.DeviceCountChanged, this._onDeviceCountChanged, this); | 67 WebInspector.inspectorFrontendEventSink.addEventListener(WebInspector.In spectorView.Events.DeviceCountChanged, this._onDeviceCountChanged, this); |
68 } | 68 } |
69 | 69 |
70 this._errorWarningCountElement = this._rightToolbarElement.createChild("div" , "hidden"); | 70 this._errorWarningCountElement = this._rightToolbarElement.createChild("div" , "hidden"); |
71 this._errorWarningCountElement.id = "error-warning-count"; | 71 this._errorWarningCountElement.id = "error-warning-count"; |
72 | 72 |
73 this._closeButtonToolbarItem = document.createElementWithClass("div", "toolb ar-close-button-item"); | 73 this._closeButtonToolbarItem = document.createElementWithClass("div", "toolb ar-close-button-item"); |
74 var closeButtonElement = this._closeButtonToolbarItem.createChild("div", "cl ose-button"); | 74 var closeButtonElement = this._closeButtonToolbarItem.createChild("div", "cl ose-button"); |
75 closeButtonElement.addEventListener("click", InspectorFrontendHost.closeWind ow.bind(InspectorFrontendHost), true); | 75 closeButtonElement.addEventListener("click", InspectorFrontendHost.closeWind ow.bind(InspectorFrontendHost), true); |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
550 window.addEventListener("scroll", this._onScrollBound, false); | 550 window.addEventListener("scroll", this._onScrollBound, false); |
551 else | 551 else |
552 window.removeEventListener("scroll", this._onScrollBound, false); | 552 window.removeEventListener("scroll", this._onScrollBound, false); |
553 | 553 |
554 WebInspector.VBox.prototype.doResize.call(this); | 554 WebInspector.VBox.prototype.doResize.call(this); |
555 this._onScroll(); | 555 this._onScroll(); |
556 }, | 556 }, |
557 | 557 |
558 __proto__: WebInspector.VBox.prototype | 558 __proto__: WebInspector.VBox.prototype |
559 }; | 559 }; |
OLD | NEW |