OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 } | 206 } |
207 | 207 |
208 WebInspector.OverridesView.DeviceTab.prototype = { | 208 WebInspector.OverridesView.DeviceTab.prototype = { |
209 _createDeviceElement: function() | 209 _createDeviceElement: function() |
210 { | 210 { |
211 var fieldsetElement = document.createElement("fieldset"); | 211 var fieldsetElement = document.createElement("fieldset"); |
212 fieldsetElement.id = "metrics-override-section"; | 212 fieldsetElement.id = "metrics-override-section"; |
213 | 213 |
214 var deviceModelElement = fieldsetElement.createChild("p", "overrides-dev
ice-model-section"); | 214 var deviceModelElement = fieldsetElement.createChild("p", "overrides-dev
ice-model-section"); |
215 deviceModelElement.createChild("span").textContent = WebInspector.UIStri
ng("Model:"); | 215 deviceModelElement.createChild("span").textContent = WebInspector.UIStri
ng("Model:"); |
216 deviceModelElement.appendChild(WebInspector.OverridesUI.createDeviceSele
ct(document, this._showTitleDialog.bind(this))); | 216 |
| 217 var deviceSelectElement = WebInspector.OverridesUI.createDeviceSelect(do
cument, this._showTitleDialog.bind(this)); |
| 218 var buttons = deviceSelectElement.querySelectorAll("button"); |
| 219 for (var i = 0; i < buttons.length; ++i) |
| 220 buttons[i].classList.add("settings-tab-text-button"); |
| 221 deviceModelElement.appendChild(deviceSelectElement); |
217 | 222 |
218 var emulateResolutionCheckbox = WebInspector.SettingsUI.createSettingChe
ckbox(WebInspector.UIString("Emulate screen resolution"), WebInspector.overrides
Support.settings.emulateResolution, true); | 223 var emulateResolutionCheckbox = WebInspector.SettingsUI.createSettingChe
ckbox(WebInspector.UIString("Emulate screen resolution"), WebInspector.overrides
Support.settings.emulateResolution, true); |
219 fieldsetElement.appendChild(emulateResolutionCheckbox); | 224 fieldsetElement.appendChild(emulateResolutionCheckbox); |
220 var resolutionFieldset = WebInspector.SettingsUI.createSettingFieldset(W
ebInspector.overridesSupport.settings.emulateResolution); | 225 var resolutionFieldset = WebInspector.SettingsUI.createSettingFieldset(W
ebInspector.overridesSupport.settings.emulateResolution); |
221 fieldsetElement.appendChild(resolutionFieldset); | 226 fieldsetElement.appendChild(resolutionFieldset); |
222 | 227 |
223 var tableElement = resolutionFieldset.createChild("table", "nowrap"); | 228 var tableElement = resolutionFieldset.createChild("table", "nowrap"); |
224 var rowElement = tableElement.createChild("tr"); | 229 var rowElement = tableElement.createChild("tr"); |
225 var cellElement = rowElement.createChild("td"); | 230 var cellElement = rowElement.createChild("td"); |
226 cellElement.appendChild(document.createTextNode(WebInspector.UIString("R
esolution:"))); | 231 cellElement.appendChild(document.createTextNode(WebInspector.UIString("R
esolution:"))); |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 | 726 |
722 WebInspector.OverridesView.Revealer.prototype = { | 727 WebInspector.OverridesView.Revealer.prototype = { |
723 /** | 728 /** |
724 * @param {!Object} overridesSupport | 729 * @param {!Object} overridesSupport |
725 */ | 730 */ |
726 reveal: function(overridesSupport) | 731 reveal: function(overridesSupport) |
727 { | 732 { |
728 WebInspector.inspectorView.showViewInDrawer("emulation"); | 733 WebInspector.inspectorView.showViewInDrawer("emulation"); |
729 } | 734 } |
730 } | 735 } |
OLD | NEW |