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

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

Issue 2623743002: DevTools: extract modules (non-extensions) (Closed)
Patch Set: rebaseline Created 3 years, 11 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 * @implements {SDK.TargetManager.Observer} 5 * @implements {SDK.TargetManager.Observer}
6 * @unrestricted 6 * @unrestricted
7 */ 7 */
8 Resources.AppManifestView = class extends UI.VBox { 8 Resources.AppManifestView = class extends UI.VBox {
9 constructor() { 9 constructor() {
10 super(true); 10 super(true);
(...skipping 13 matching lines...) Expand all
24 24
25 this._presentationSection = this._reportView.appendSection(Common.UIString(' Presentation')); 25 this._presentationSection = this._reportView.appendSection(Common.UIString(' Presentation'));
26 this._iconsSection = this._reportView.appendSection(Common.UIString('Icons') ); 26 this._iconsSection = this._reportView.appendSection(Common.UIString('Icons') );
27 27
28 this._nameField = this._identitySection.appendField(Common.UIString('Name')) ; 28 this._nameField = this._identitySection.appendField(Common.UIString('Name')) ;
29 this._shortNameField = this._identitySection.appendField(Common.UIString('Sh ort name')); 29 this._shortNameField = this._identitySection.appendField(Common.UIString('Sh ort name'));
30 30
31 this._startURLField = this._presentationSection.appendField(Common.UIString( 'Start URL')); 31 this._startURLField = this._presentationSection.appendField(Common.UIString( 'Start URL'));
32 32
33 var themeColorField = this._presentationSection.appendField(Common.UIString( 'Theme color')); 33 var themeColorField = this._presentationSection.appendField(Common.UIString( 'Theme color'));
34 this._themeColorSwatch = UI.ColorSwatch.create(); 34 this._themeColorSwatch = InlineEditor.ColorSwatch.create();
35 themeColorField.appendChild(this._themeColorSwatch); 35 themeColorField.appendChild(this._themeColorSwatch);
36 36
37 var backgroundColorField = this._presentationSection.appendField(Common.UISt ring('Background color')); 37 var backgroundColorField = this._presentationSection.appendField(Common.UISt ring('Background color'));
38 this._backgroundColorSwatch = UI.ColorSwatch.create(); 38 this._backgroundColorSwatch = InlineEditor.ColorSwatch.create();
39 backgroundColorField.appendChild(this._backgroundColorSwatch); 39 backgroundColorField.appendChild(this._backgroundColorSwatch);
40 40
41 this._orientationField = this._presentationSection.appendField(Common.UIStri ng('Orientation')); 41 this._orientationField = this._presentationSection.appendField(Common.UIStri ng('Orientation'));
42 this._displayField = this._presentationSection.appendField(Common.UIString(' Display')); 42 this._displayField = this._presentationSection.appendField(Common.UIString(' Display'));
43 43
44 SDK.targetManager.observeTargets(this, SDK.Target.Capability.DOM); 44 SDK.targetManager.observeTargets(this, SDK.Target.Capability.DOM);
45 } 45 }
46 46
47 /** 47 /**
48 * @override 48 * @override
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 * @param {!Common.Event} event 140 * @param {!Common.Event} event
141 */ 141 */
142 _addToHomescreen(event) { 142 _addToHomescreen(event) {
143 var target = SDK.targetManager.mainTarget(); 143 var target = SDK.targetManager.mainTarget();
144 if (target && target.hasBrowserCapability()) { 144 if (target && target.hasBrowserCapability()) {
145 target.pageAgent().requestAppBanner(); 145 target.pageAgent().requestAppBanner();
146 Common.console.show(); 146 Common.console.show();
147 } 147 }
148 } 148 }
149 }; 149 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698