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

Unified Diff: Source/devtools/front_end/ui/HelpScreen.js

Issue 714423005: DevTools: move front-end files from components to ui. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comment addressed Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/ui/FlameChart.js ('k') | Source/devtools/front_end/ui/OverviewGrid.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/HelpScreen.js
diff --git a/Source/devtools/front_end/components/HelpScreen.js b/Source/devtools/front_end/ui/HelpScreen.js
similarity index 74%
rename from Source/devtools/front_end/components/HelpScreen.js
rename to Source/devtools/front_end/ui/HelpScreen.js
index eb4c4f0b5b88a1b456c54c529ad23a3c07360f03..75175667c2d5ef1ce489e42559ceccb5de959a2b 100644
--- a/Source/devtools/front_end/components/HelpScreen.js
+++ b/Source/devtools/front_end/ui/HelpScreen.js
@@ -37,7 +37,7 @@ WebInspector.HelpScreen = function(title)
{
WebInspector.VBox.call(this);
this.markAsRoot();
- this.registerRequiredCSS("components/helpScreen.css");
+ this.registerRequiredCSS("ui/helpScreen.css");
this.element.classList.add("help-window-outer");
this.element.addEventListener("keydown", this._onKeyDown.bind(this), false);
@@ -76,7 +76,7 @@ WebInspector.HelpScreen.prototype = {
visibleHelpScreen.hide();
WebInspector.HelpScreen._visibleScreen = this;
WebInspector.GlassPane.DefaultFocusedViewStack.push(this);
- this.show(WebInspector.inspectorView.element);
+ this.show(WebInspector.Dialog.modalHostView().element);
this.focus();
},
@@ -115,40 +115,3 @@ WebInspector.HelpScreen.prototype = {
__proto__: WebInspector.VBox.prototype
}
-
-/**
- * @constructor
- * @extends {WebInspector.HelpScreen}
- */
-WebInspector.RemoteDebuggingTerminatedScreen = function(reason)
-{
- WebInspector.HelpScreen.call(this, WebInspector.UIString("Detached from the target"));
- var p = this.helpContentElement.createChild("p");
- p.classList.add("help-section");
- p.createChild("span").textContent = WebInspector.UIString("Remote debugging has been terminated with reason: ");
- p.createChild("span", "error-message").textContent = reason;
- p.createChild("br");
- p.createChild("span").textContent = WebInspector.UIString("Please re-attach to the new target.");
-}
-
-WebInspector.RemoteDebuggingTerminatedScreen.prototype = {
- __proto__: WebInspector.HelpScreen.prototype
-}
-
-/**
- * @constructor
- * @extends {WebInspector.HelpScreen}
- */
-WebInspector.WorkerTerminatedScreen = function()
-{
- WebInspector.HelpScreen.call(this, WebInspector.UIString("Inspected worker terminated"));
- var p = this.helpContentElement.createChild("p");
- p.classList.add("help-section");
- p.textContent = WebInspector.UIString("Inspected worker has terminated. Once it restarts we will attach to it automatically.");
-}
-
-WebInspector.WorkerTerminatedScreen.prototype = {
-
- __proto__: WebInspector.HelpScreen.prototype
-}
-
« no previous file with comments | « Source/devtools/front_end/ui/FlameChart.js ('k') | Source/devtools/front_end/ui/OverviewGrid.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698