| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.VBox} | 7 * @extends {WebInspector.VBox} |
| 8 * @implements {WebInspector.OverridesSupport.PageResizer} | 8 * @implements {WebInspector.OverridesSupport.PageResizer} |
| 9 * @param {!WebInspector.InspectedPagePlaceholder} inspectedPagePlaceholder | 9 * @param {!WebInspector.InspectedPagePlaceholder} inspectedPagePlaceholder |
| 10 */ | 10 */ |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 | 377 |
| 378 this._expandedDeviceSection = document.createElementWithClass("div", "re
sponsive-design-composite-section vbox"); | 378 this._expandedDeviceSection = document.createElementWithClass("div", "re
sponsive-design-composite-section vbox"); |
| 379 this._expandedScreenTouchSection = document.createElementWithClass("div"
, "responsive-design-composite-section hbox"); | 379 this._expandedScreenTouchSection = document.createElementWithClass("div"
, "responsive-design-composite-section hbox"); |
| 380 this._expandedNetworkSection = document.createElementWithClass("div", "r
esponsive-design-composite-section vbox solid"); | 380 this._expandedNetworkSection = document.createElementWithClass("div", "r
esponsive-design-composite-section vbox solid"); |
| 381 | 381 |
| 382 this._expandSection = document.createElementWithClass("div", "responsive
-design-section vbox"); | 382 this._expandSection = document.createElementWithClass("div", "responsive
-design-section vbox"); |
| 383 WebInspector.settings.responsiveDesign.toolbarExpanded = WebInspector.se
ttings.createSetting("responsiveDesign.toolbarExpanded", false); | 383 WebInspector.settings.responsiveDesign.toolbarExpanded = WebInspector.se
ttings.createSetting("responsiveDesign.toolbarExpanded", false); |
| 384 this._expandButton = this._expandSection.createChild("div", "responsive-
design-expand"); | 384 this._expandButton = this._expandSection.createChild("div", "responsive-
design-expand"); |
| 385 this._expandButton.createChild("div", "responsive-design-icon responsive
-design-icon-expand"); | 385 this._expandButton.createChild("div", "responsive-design-icon responsive
-design-icon-expand"); |
| 386 this._expandButton.createChild("span"); | 386 this._expandButton.createChild("span"); |
| 387 this._expandButton.addEventListener("click", this._toggleToolbarExpanded
.bind(this)); | 387 this._expandButton.addEventListener("click", this._toggleToolbarExpanded
.bind(this), false); |
| 388 WebInspector.settings.responsiveDesign.toolbarExpanded.addChangeListener
(this._toolbarExpandedChanged, this); | 388 WebInspector.settings.responsiveDesign.toolbarExpanded.addChangeListener
(this._toolbarExpandedChanged, this); |
| 389 | 389 |
| 390 // Device | 390 // Device |
| 391 this._deviceSection = document.createElementWithClass("div", "responsive
-design-section"); | 391 this._deviceSection = document.createElementWithClass("div", "responsive
-design-section"); |
| 392 this._deviceSection.appendChild(WebInspector.SettingsUI.createSettingChe
ckbox(WebInspector.UIString("Device"), WebInspector.overridesSupport.settings.em
ulateDevice, true)); | 392 this._deviceSection.appendChild(WebInspector.SettingsUI.createSettingChe
ckbox(WebInspector.UIString("Device"), WebInspector.overridesSupport.settings.em
ulateDevice, true)); |
| 393 this._deviceSection.appendChild(WebInspector.overridesSupport.createDevi
ceSelect(document)); | 393 this._deviceSection.appendChild(WebInspector.overridesSupport.createDevi
ceSelect(document)); |
| 394 | 394 |
| 395 // Screen | 395 // Screen |
| 396 this._screenSection = document.createElementWithClass("div", "responsive
-design-section responsive-design-screen-section"); | 396 this._screenSection = document.createElementWithClass("div", "responsive
-design-section responsive-design-screen-section"); |
| 397 var fieldsetElement = WebInspector.SettingsUI.createSettingFieldset(WebI
nspector.overridesSupport.settings.emulateDevice); | 397 var fieldsetElement = WebInspector.SettingsUI.createSettingFieldset(WebI
nspector.overridesSupport.settings.emulateDevice); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 if (this._warningMessage.textContent === message) | 475 if (this._warningMessage.textContent === message) |
| 476 return; | 476 return; |
| 477 this._warningMessage.classList.toggle("hidden", !message); | 477 this._warningMessage.classList.toggle("hidden", !message); |
| 478 this._warningMessage.textContent = message; | 478 this._warningMessage.textContent = message; |
| 479 this._invalidateCache(); | 479 this._invalidateCache(); |
| 480 this.onResize(); | 480 this.onResize(); |
| 481 }, | 481 }, |
| 482 | 482 |
| 483 __proto__: WebInspector.VBox.prototype | 483 __proto__: WebInspector.VBox.prototype |
| 484 }; | 484 }; |
| OLD | NEW |