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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/resources/AppManifestView.js

Issue 1936773003: DevTools: brush up command menu looks, render badges. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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.VBox} 7 * @extends {WebInspector.VBox}
8 * @implements {WebInspector.TargetManager.Observer} 8 * @implements {WebInspector.TargetManager.Observer}
9 */ 9 */
10 WebInspector.AppManifestView = function() 10 WebInspector.AppManifestView = function()
11 { 11 {
12 WebInspector.VBox.call(this, true); 12 WebInspector.VBox.call(this, true);
13 this.registerRequiredCSS("resources/appManifestView.css"); 13 this.registerRequiredCSS("resources/appManifestView.css");
14 14
15 this._contentBox = this.contentElement.createChild("div", "app-content-box") ; 15 this._contentBox = this.contentElement.createChild("div", "app-content-box") ;
16 this._contentBox.createChild("div", "app-manifest-title").textContent = WebI nspector.UIString("App Manifest"); 16 this._contentBox.createChild("div", "app-manifest-title").textContent = WebI nspector.UIString("App Manifest");
17 this._urlElement = this._contentBox.createChild("div", "app-manifest-url lin k"); 17 this._urlElement = this._contentBox.createChild("div", "app-manifest-url lin k");
18 this._errorsSection = this._createSection(WebInspector.UIString("Errors and warnings"));
19 this._errorsList = this._errorsSection.createChild("div", "app-manifest-erro rs");
18 this._identitySection = this._createSection(WebInspector.UIString("Identity" )); 20 this._identitySection = this._createSection(WebInspector.UIString("Identity" ));
19 this._presentationSection = this._createSection(WebInspector.UIString("Prese ntation")); 21 this._presentationSection = this._createSection(WebInspector.UIString("Prese ntation"));
20 var iconsSection = this._createSection(WebInspector.UIString("Icons")); 22 var iconsSection = this._createSection(WebInspector.UIString("Icons"));
21 this._iconsList = iconsSection.createChild("div", "app-manifest-icons"); 23 this._iconsList = iconsSection.createChild("div", "app-manifest-icons");
22 this._errorsSection = this._createSection(WebInspector.UIString("Errors and warnings"));
23 this._errorsList = this._errorsSection.createChild("div", "app-manifest-erro rs");
24 24
25 this._nameField = this._createField(this._identitySection, WebInspector.UISt ring("Name")); 25 this._nameField = this._createField(this._identitySection, WebInspector.UISt ring("Name"));
26 this._shortNameField = this._createField(this._identitySection, WebInspector .UIString("Short name")); 26 this._shortNameField = this._createField(this._identitySection, WebInspector .UIString("Short name"));
27 27
28 this._startURLField = this._createField(this._presentationSection, WebInspec tor.UIString("Start URL")); 28 this._startURLField = this._createField(this._presentationSection, WebInspec tor.UIString("Start URL"));
29 29
30 var themeColorField = this._createField(this._presentationSection, WebInspec tor.UIString("Theme color")); 30 var themeColorField = this._createField(this._presentationSection, WebInspec tor.UIString("Theme color"));
31 this._themeColorSwatch = WebInspector.ColorSwatch.create(); 31 this._themeColorSwatch = WebInspector.ColorSwatch.create();
32 themeColorField.appendChild(this._themeColorSwatch); 32 themeColorField.appendChild(this._themeColorSwatch);
33 33
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 { 143 {
144 var value = parsedManifest[name]; 144 var value = parsedManifest[name];
145 if (typeof value !== "string") 145 if (typeof value !== "string")
146 return ""; 146 return "";
147 return value; 147 return value;
148 } 148 }
149 }, 149 },
150 150
151 __proto__: WebInspector.VBox.prototype 151 __proto__: WebInspector.VBox.prototype
152 } 152 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698