| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 28 matching lines...) Expand all Loading... |
| 39 this.registerRequiredCSS("main/renderingOptions.css"); | 39 this.registerRequiredCSS("main/renderingOptions.css"); |
| 40 | 40 |
| 41 /** @type {!Map.<string, !Element>} */ | 41 /** @type {!Map.<string, !Element>} */ |
| 42 this._settings = new Map(); | 42 this._settings = new Map(); |
| 43 | 43 |
| 44 this._appendCheckbox(WebInspector.UIString("Enable paint flashing"), "setSho
wPaintRects"); | 44 this._appendCheckbox(WebInspector.UIString("Enable paint flashing"), "setSho
wPaintRects"); |
| 45 this._appendCheckbox(WebInspector.UIString("Show layer borders"), "setShowDe
bugBorders"); | 45 this._appendCheckbox(WebInspector.UIString("Show layer borders"), "setShowDe
bugBorders"); |
| 46 this._appendCheckbox(WebInspector.UIString("Show FPS meter"), "setShowFPSCou
nter"); | 46 this._appendCheckbox(WebInspector.UIString("Show FPS meter"), "setShowFPSCou
nter"); |
| 47 var scrollingTitle = WebInspector.UIString("Shows areas of the page that slo
w down scrolling:\nTouch and mousewheel event listeners can delay scrolling.\nSo
me areas need to repaint their content when scrolled."); | 47 var scrollingTitle = WebInspector.UIString("Shows areas of the page that slo
w down scrolling:\nTouch and mousewheel event listeners can delay scrolling.\nSo
me areas need to repaint their content when scrolled."); |
| 48 this._appendCheckbox(WebInspector.UIString("Show scrolling perf issues"), "s
etShowScrollBottleneckRects", scrollingTitle); | 48 this._appendCheckbox(WebInspector.UIString("Show scrolling perf issues"), "s
etShowScrollBottleneckRects", scrollingTitle); |
| 49 this._appendCheckbox(WebInspector.UIString("Show page size on resize"), "set
ShowViewportSizeOnResize"); | |
| 50 | 49 |
| 51 // CSS media. | 50 // CSS media. |
| 52 var mediaRow = this.contentElement.createChild("div", "media-row"); | 51 var mediaRow = this.contentElement.createChild("div", "media-row"); |
| 53 var checkboxLabel = createCheckboxLabel(WebInspector.UIString("Emulate media
"), false); | 52 var checkboxLabel = createCheckboxLabel(WebInspector.UIString("Emulate media
"), false); |
| 54 this._mediaCheckbox = checkboxLabel.checkboxElement; | 53 this._mediaCheckbox = checkboxLabel.checkboxElement; |
| 55 this._mediaCheckbox.addEventListener("click", this._mediaToggled.bind(this),
false); | 54 this._mediaCheckbox.addEventListener("click", this._mediaToggled.bind(this),
false); |
| 56 mediaRow.appendChild(checkboxLabel); | 55 mediaRow.appendChild(checkboxLabel); |
| 57 this._mediaSelect = mediaRow.createChild("select", "chrome-select"); | 56 this._mediaSelect = mediaRow.createChild("select", "chrome-select"); |
| 58 this._mediaSelect.appendChild(new Option(WebInspector.UIString("print"), "pr
int")); | 57 this._mediaSelect.appendChild(new Option(WebInspector.UIString("print"), "pr
int")); |
| 59 this._mediaSelect.appendChild(new Option(WebInspector.UIString("screen"), "s
creen")); | 58 this._mediaSelect.appendChild(new Option(WebInspector.UIString("screen"), "s
creen")); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 * @param {!WebInspector.Context} context | 157 * @param {!WebInspector.Context} context |
| 159 * @param {string} actionId | 158 * @param {string} actionId |
| 160 * @return {boolean} | 159 * @return {boolean} |
| 161 */ | 160 */ |
| 162 handleAction: function(context, actionId) | 161 handleAction: function(context, actionId) |
| 163 { | 162 { |
| 164 WebInspector.inspectorView.showViewInDrawer("rendering"); | 163 WebInspector.inspectorView.showViewInDrawer("rendering"); |
| 165 return true; | 164 return true; |
| 166 } | 165 } |
| 167 } | 166 } |
| OLD | NEW |