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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/Infobar.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/ui/Infobar.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Infobar.js b/third_party/WebKit/Source/devtools/front_end/ui/Infobar.js
index 6d743704a42cbe8ff977ef4eb918823e2c9a2a46..08d703aced1f2aa1a4fae5f9ab05d4097ab225bf 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/Infobar.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Infobar.js
@@ -4,15 +4,15 @@
/**
* @unrestricted
*/
-WebInspector.Infobar = class {
+UI.Infobar = class {
/**
- * @param {!WebInspector.Infobar.Type} type
+ * @param {!UI.Infobar.Type} type
* @param {string} text
- * @param {!WebInspector.Setting=} disableSetting
+ * @param {!Common.Setting=} disableSetting
*/
constructor(type, text, disableSetting) {
this.element = createElementWithClass('div', 'flex-none');
- this._shadowRoot = WebInspector.createShadowRootWithCoreStyles(this.element, 'ui/infobar.css');
+ this._shadowRoot = UI.createShadowRootWithCoreStyles(this.element, 'ui/infobar.css');
this._contentElement = this._shadowRoot.createChild('div', 'infobar infobar-' + type);
this._mainRow = this._contentElement.createChild('div', 'infobar-main-row');
@@ -23,13 +23,13 @@ WebInspector.Infobar = class {
this._toggleElement = this._mainRow.createChild('div', 'infobar-toggle hidden');
this._toggleElement.addEventListener('click', this._onToggleDetails.bind(this), false);
- this._toggleElement.textContent = WebInspector.UIString('more');
+ this._toggleElement.textContent = Common.UIString('more');
- /** @type {?WebInspector.Setting} */
+ /** @type {?Common.Setting} */
this._disableSetting = disableSetting || null;
if (disableSetting) {
var disableButton = this._mainRow.createChild('div', 'infobar-toggle');
- disableButton.textContent = WebInspector.UIString('never show');
+ disableButton.textContent = Common.UIString('never show');
disableButton.addEventListener('click', this._onDisable.bind(this), false);
}
@@ -41,15 +41,15 @@ WebInspector.Infobar = class {
}
/**
- * @param {!WebInspector.Infobar.Type} type
+ * @param {!UI.Infobar.Type} type
* @param {string} text
- * @param {!WebInspector.Setting=} disableSetting
- * @return {?WebInspector.Infobar}
+ * @param {!Common.Setting=} disableSetting
+ * @return {?UI.Infobar}
*/
static create(type, text, disableSetting) {
if (disableSetting && disableSetting.get())
return null;
- return new WebInspector.Infobar(type, text, disableSetting);
+ return new UI.Infobar(type, text, disableSetting);
}
dispose() {
@@ -75,7 +75,7 @@ WebInspector.Infobar = class {
}
/**
- * @param {!WebInspector.Widget} parentView
+ * @param {!UI.Widget} parentView
*/
setParentView(parentView) {
this._parentView = parentView;
@@ -112,7 +112,7 @@ WebInspector.Infobar = class {
/** @enum {string} */
-WebInspector.Infobar.Type = {
+UI.Infobar.Type = {
Warning: 'warning',
Info: 'info'
};

Powered by Google App Engine
This is Rietveld 408576698