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

Side by Side Diff: Source/devtools/front_end/components/HelpScreen.js

Issue 671463002: DevTools: make flame chart a web component. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test fixed 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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 29 matching lines...) Expand all
40 this.registerRequiredCSS("components/helpScreen.css"); 40 this.registerRequiredCSS("components/helpScreen.css");
41 41
42 this.element.classList.add("help-window-outer"); 42 this.element.classList.add("help-window-outer");
43 this.element.addEventListener("keydown", this._onKeyDown.bind(this), false); 43 this.element.addEventListener("keydown", this._onKeyDown.bind(this), false);
44 this.element.tabIndex = 0; 44 this.element.tabIndex = 0;
45 45
46 if (title) { 46 if (title) {
47 var mainWindow = this.element.createChild("div", "help-window-main"); 47 var mainWindow = this.element.createChild("div", "help-window-main");
48 var captionWindow = mainWindow.createChild("div", "help-window-caption") ; 48 var captionWindow = mainWindow.createChild("div", "help-window-caption") ;
49 captionWindow.appendChild(this._createCloseButton()); 49 captionWindow.appendChild(this._createCloseButton());
50 this.contentElement = mainWindow.createChild("div", "help-content"); 50 this.helpContentElement = mainWindow.createChild("div", "help-content");
51 captionWindow.createChild("h1", "help-window-title").textContent = title ; 51 captionWindow.createChild("h1", "help-window-title").textContent = title ;
52 } 52 }
53 } 53 }
54 54
55 /** 55 /**
56 * @type {?WebInspector.HelpScreen} 56 * @type {?WebInspector.HelpScreen}
57 */ 57 */
58 WebInspector.HelpScreen._visibleScreen = null; 58 WebInspector.HelpScreen._visibleScreen = null;
59 59
60 WebInspector.HelpScreen.prototype = { 60 WebInspector.HelpScreen.prototype = {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 __proto__: WebInspector.VBox.prototype 116 __proto__: WebInspector.VBox.prototype
117 } 117 }
118 118
119 /** 119 /**
120 * @constructor 120 * @constructor
121 * @extends {WebInspector.HelpScreen} 121 * @extends {WebInspector.HelpScreen}
122 */ 122 */
123 WebInspector.RemoteDebuggingTerminatedScreen = function(reason) 123 WebInspector.RemoteDebuggingTerminatedScreen = function(reason)
124 { 124 {
125 WebInspector.HelpScreen.call(this, WebInspector.UIString("Detached from the target")); 125 WebInspector.HelpScreen.call(this, WebInspector.UIString("Detached from the target"));
126 var p = this.contentElement.createChild("p"); 126 var p = this.helpContentElement.createChild("p");
127 p.classList.add("help-section"); 127 p.classList.add("help-section");
128 p.createChild("span").textContent = WebInspector.UIString("Remote debugging has been terminated with reason: "); 128 p.createChild("span").textContent = WebInspector.UIString("Remote debugging has been terminated with reason: ");
129 p.createChild("span", "error-message").textContent = reason; 129 p.createChild("span", "error-message").textContent = reason;
130 p.createChild("br"); 130 p.createChild("br");
131 p.createChild("span").textContent = WebInspector.UIString("Please re-attach to the new target."); 131 p.createChild("span").textContent = WebInspector.UIString("Please re-attach to the new target.");
132 } 132 }
133 133
134 WebInspector.RemoteDebuggingTerminatedScreen.prototype = { 134 WebInspector.RemoteDebuggingTerminatedScreen.prototype = {
135 __proto__: WebInspector.HelpScreen.prototype 135 __proto__: WebInspector.HelpScreen.prototype
136 } 136 }
137 137
138 /** 138 /**
139 * @constructor 139 * @constructor
140 * @extends {WebInspector.HelpScreen} 140 * @extends {WebInspector.HelpScreen}
141 */ 141 */
142 WebInspector.WorkerTerminatedScreen = function() 142 WebInspector.WorkerTerminatedScreen = function()
143 { 143 {
144 WebInspector.HelpScreen.call(this, WebInspector.UIString("Inspected worker t erminated")); 144 WebInspector.HelpScreen.call(this, WebInspector.UIString("Inspected worker t erminated"));
145 var p = this.contentElement.createChild("p"); 145 var p = this.helpContentElement.createChild("p");
146 p.classList.add("help-section"); 146 p.classList.add("help-section");
147 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once it restarts we will attach to it automatically."); 147 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once it restarts we will attach to it automatically.");
148 } 148 }
149 149
150 WebInspector.WorkerTerminatedScreen.prototype = { 150 WebInspector.WorkerTerminatedScreen.prototype = {
151 151
152 __proto__: WebInspector.HelpScreen.prototype 152 __proto__: WebInspector.HelpScreen.prototype
153 } 153 }
154 154
OLDNEW
« no previous file with comments | « Source/devtools/front_end/components/FlameChart.js ('k') | Source/devtools/front_end/components/flameChart.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698