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

Side by Side Diff: Source/devtools/front_end/components/HelpScreen.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 /* 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 = {
61 _createCloseButton: function() 61 _createCloseButton: function()
62 { 62 {
63 var closeButton = document.createElement("div"); 63 var closeButton = createElement("div");
64 closeButton.className = "help-close-button close-button-gray"; 64 closeButton.className = "help-close-button close-button-gray";
65 closeButton.addEventListener("click", this.hide.bind(this), false); 65 closeButton.addEventListener("click", this.hide.bind(this), false);
66 return closeButton; 66 return closeButton;
67 }, 67 },
68 68
69 showModal: function() 69 showModal: function()
70 { 70 {
71 var visibleHelpScreen = WebInspector.HelpScreen._visibleScreen; 71 var visibleHelpScreen = WebInspector.HelpScreen._visibleScreen;
72 if (visibleHelpScreen === this) 72 if (visibleHelpScreen === this)
73 return; 73 return;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 var p = this.contentElement.createChild("p"); 145 var p = this.contentElement.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/HandlerRegistry.js ('k') | Source/devtools/front_end/components/InspectorView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698