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

Side by Side Diff: Source/devtools/front_end/sources/AddSourceMapURLDialog.js

Issue 662793002: [DevTools] Replace usages of document with custom functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
OLDNEW
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.DialogDelegate} 7 * @extends {WebInspector.DialogDelegate}
8 * @param {function(string)} callback 8 * @param {function(string)} callback
9 */ 9 */
10 WebInspector.AddSourceMapURLDialog = function(callback) 10 WebInspector.AddSourceMapURLDialog = function(callback)
11 { 11 {
12 WebInspector.DialogDelegate.call(this); 12 WebInspector.DialogDelegate.call(this);
13 13
14 this.element = document.createElementWithClass("div", "go-to-line-dialog"); 14 this.element = createElementWithClass("div", "go-to-line-dialog");
15 this.element.createChild("label").textContent = WebInspector.UIString("Sourc e map URL: "); 15 this.element.createChild("label").textContent = WebInspector.UIString("Sourc e map URL: ");
16 16
17 this._input = this.element.createChild("input"); 17 this._input = this.element.createChild("input");
18 this._input.setAttribute("type", "text"); 18 this._input.setAttribute("type", "text");
19 19
20 this._goButton = this.element.createChild("button"); 20 this._goButton = this.element.createChild("button");
21 this._goButton.textContent = WebInspector.UIString("Go"); 21 this._goButton.textContent = WebInspector.UIString("Go");
22 this._goButton.addEventListener("click", this._onGoClick.bind(this), false); 22 this._goButton.addEventListener("click", this._onGoClick.bind(this), false);
23 23
24 this._callback = callback; 24 this._callback = callback;
(...skipping 27 matching lines...) Expand all
52 this._callback(value); 52 this._callback(value);
53 }, 53 },
54 54
55 onEnter: function() 55 onEnter: function()
56 { 56 {
57 this._apply(); 57 this._apply();
58 }, 58 },
59 59
60 __proto__: WebInspector.DialogDelegate.prototype 60 __proto__: WebInspector.DialogDelegate.prototype
61 } 61 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/source_frame/SourceFrame.js ('k') | Source/devtools/front_end/sources/AdvancedSearchView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698