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

Side by Side Diff: Source/devtools/front_end/main/OverridesView.js

Issue 421543003: [DevTools] Fix emulation drawer button styles. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | Source/devtools/front_end/overrides.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/overrides.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698