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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/PlatformFontsWidget.js

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 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
Index: third_party/WebKit/Source/devtools/front_end/elements/PlatformFontsWidget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/PlatformFontsWidget.js b/third_party/WebKit/Source/devtools/front_end/elements/PlatformFontsWidget.js
index 0fccd648a17c2675b79fe412c56d2b19c213364d..b50738b6b20f6ca9b9a2febccc96aec5deb6095a 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/PlatformFontsWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/PlatformFontsWidget.js
@@ -31,21 +31,21 @@
/**
* @unrestricted
*/
-WebInspector.PlatformFontsWidget = class extends WebInspector.ThrottledWidget {
+Elements.PlatformFontsWidget = class extends UI.ThrottledWidget {
/**
- * @param {!WebInspector.ComputedStyleModel} sharedModel
+ * @param {!Elements.ComputedStyleModel} sharedModel
*/
constructor(sharedModel) {
super(true);
this.registerRequiredCSS('elements/platformFontsWidget.css');
this._sharedModel = sharedModel;
- this._sharedModel.addEventListener(WebInspector.ComputedStyleModel.Events.ComputedStyleChanged, this.update, this);
+ this._sharedModel.addEventListener(Elements.ComputedStyleModel.Events.ComputedStyleChanged, this.update, this);
this._sectionTitle = createElementWithClass('div', 'title');
this.contentElement.classList.add('platform-fonts');
this.contentElement.appendChild(this._sectionTitle);
- this._sectionTitle.textContent = WebInspector.UIString('Rendered Fonts');
+ this._sectionTitle.textContent = Common.UIString('Rendered Fonts');
this._fontStatsSection = this.contentElement.createChild('div', 'stats-section');
}
@@ -64,7 +64,7 @@ WebInspector.PlatformFontsWidget = class extends WebInspector.ThrottledWidget {
}
/**
- * @param {!WebInspector.DOMNode} node
+ * @param {!SDK.DOMNode} node
* @param {?Array.<!Protocol.CSS.PlatformFontUsage>} platformFonts
*/
_refreshUI(node, platformFonts) {
@@ -91,13 +91,13 @@ WebInspector.PlatformFontsWidget = class extends WebInspector.ThrottledWidget {
fontDelimeterElement.textContent = '\u2014';
var fontOrigin = fontStatElement.createChild('span');
- fontOrigin.textContent = platformFonts[i].isCustomFont ? WebInspector.UIString('Network resource') :
- WebInspector.UIString('Local file');
+ fontOrigin.textContent = platformFonts[i].isCustomFont ? Common.UIString('Network resource') :
+ Common.UIString('Local file');
var fontUsageElement = fontStatElement.createChild('span', 'font-usage');
var usage = platformFonts[i].glyphCount;
fontUsageElement.textContent =
- usage === 1 ? WebInspector.UIString('(%d glyph)', usage) : WebInspector.UIString('(%d glyphs)', usage);
+ usage === 1 ? Common.UIString('(%d glyph)', usage) : Common.UIString('(%d glyphs)', usage);
}
}
};

Powered by Google App Engine
This is Rietveld 408576698