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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/main/RenderingOptions.js

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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
OLDNEW
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 this.contentElement.appendChild(checkboxLabel); 76 this.contentElement.appendChild(checkboxLabel);
77 77
78 var mediaRow = this.contentElement.createChild("div", "media-row"); 78 var mediaRow = this.contentElement.createChild("div", "media-row");
79 this._mediaSelect = mediaRow.createChild("select", "chrome-select"); 79 this._mediaSelect = mediaRow.createChild("select", "chrome-select");
80 this._mediaSelect.appendChild(new Option(WebInspector.UIString("print"), "pr int")); 80 this._mediaSelect.appendChild(new Option(WebInspector.UIString("print"), "pr int"));
81 this._mediaSelect.appendChild(new Option(WebInspector.UIString("screen"), "s creen")); 81 this._mediaSelect.appendChild(new Option(WebInspector.UIString("screen"), "s creen"));
82 this._mediaSelect.addEventListener("change", this._mediaToggled.bind(this), false); 82 this._mediaSelect.addEventListener("change", this._mediaToggled.bind(this), false);
83 this._mediaSelect.disabled = true; 83 this._mediaSelect.disabled = true;
84 84
85 WebInspector.targetManager.observeTargets(this, WebInspector.Target.Capabili ty.Browser); 85 WebInspector.targetManager.observeTargets(this, WebInspector.Target.Capabili ty.Browser);
86 } 86 };
87 87
88 WebInspector.RenderingOptionsView.prototype = { 88 WebInspector.RenderingOptionsView.prototype = {
89 /** 89 /**
90 * @param {string} label 90 * @param {string} label
91 * @param {string} setterName 91 * @param {string} setterName
92 * @param {string=} subtitle 92 * @param {string=} subtitle
93 * @param {string=} tooltip 93 * @param {string=} tooltip
94 */ 94 */
95 _appendCheckbox: function(label, setterName, subtitle, tooltip) 95 _appendCheckbox: function(label, setterName, subtitle, tooltip)
96 { 96 {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 /** 148 /**
149 * @override 149 * @override
150 * @param {!WebInspector.Target} target 150 * @param {!WebInspector.Target} target
151 */ 151 */
152 targetRemoved: function(target) 152 targetRemoved: function(target)
153 { 153 {
154 }, 154 },
155 155
156 __proto__: WebInspector.VBox.prototype 156 __proto__: WebInspector.VBox.prototype
157 } 157 };
158 158
159 /** 159 /**
160 * @return {!WebInspector.RenderingOptionsView} 160 * @return {!WebInspector.RenderingOptionsView}
161 */ 161 */
162 WebInspector.RenderingOptionsView.instance = function() 162 WebInspector.RenderingOptionsView.instance = function()
163 { 163 {
164 if (!WebInspector.RenderingOptionsView._instanceObject) 164 if (!WebInspector.RenderingOptionsView._instanceObject)
165 WebInspector.RenderingOptionsView._instanceObject = new WebInspector.Ren deringOptionsView(); 165 WebInspector.RenderingOptionsView._instanceObject = new WebInspector.Ren deringOptionsView();
166 return WebInspector.RenderingOptionsView._instanceObject; 166 return WebInspector.RenderingOptionsView._instanceObject;
167 } 167 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698