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

Side by Side Diff: chrome/tools/test/reference_build/chrome_linux/resources/inspector/Breakpoint.js

Issue 177049: On Linux, move the passing of filedescriptors to a dedicated socketpair(). (Closed)
Patch Set: Removed *.d files from reference build Created 11 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 WebInspector.Breakpoint = function(url, line, sourceID) 26 WebInspector.Breakpoint = function(url, line, sourceID)
27 { 27 {
28 this.url = url; 28 this.url = url;
29 this.line = line; 29 this.line = line;
30 this.sourceID = sourceID; 30 this.sourceID = sourceID;
31 this._enabled = true; 31 this._enabled = true;
32 this._sourceText = "";
32 } 33 }
33 34
34 WebInspector.Breakpoint.prototype = { 35 WebInspector.Breakpoint.prototype = {
35 get enabled() 36 get enabled()
36 { 37 {
37 return this._enabled; 38 return this._enabled;
38 }, 39 },
39 40
40 set enabled(x) 41 set enabled(x)
41 { 42 {
42 if (this._enabled === x) 43 if (this._enabled === x)
43 return; 44 return;
44 45
45 this._enabled = x; 46 this._enabled = x;
46 47
47 if (this._enabled) 48 if (this._enabled)
48 this.dispatchEventToListeners("enabled"); 49 this.dispatchEventToListeners("enabled");
49 else 50 else
50 this.dispatchEventToListeners("disabled"); 51 this.dispatchEventToListeners("disabled");
52 },
53
54 get sourceText()
55 {
56 return this._sourceText;
57 },
58
59 set sourceText(text)
60 {
61 this._sourceText = text;
62 this.dispatchEventToListeners("text-changed");
63 },
64
65 get label()
66 {
67 var displayName = (this.url ? WebInspector.displayNameForURL(this.url) : WebInspector.UIString("(program)"));
68 return displayName + ":" + this.line;
69 },
70
71 get id()
72 {
73 return this.sourceID + ":" + this.line;
51 } 74 }
52 } 75 }
53 76
54 WebInspector.Breakpoint.prototype.__proto__ = WebInspector.Object.prototype; 77 WebInspector.Breakpoint.prototype.__proto__ = WebInspector.Object.prototype;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698