Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: Source/devtools/front_end/components/InspectorView.js

Issue 344443003: DevTools: Code fixes for the Closure compiler roll (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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);
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
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 };
OLDNEW
« no previous file with comments | « Source/devtools/front_end/common/DOMExtension.js ('k') | Source/devtools/front_end/elements/ElementsPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698