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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/SwatchPopoverHelper.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/SwatchPopoverHelper.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/SwatchPopoverHelper.js b/third_party/WebKit/Source/devtools/front_end/ui/SwatchPopoverHelper.js
index 24cc48044a0de40116539ae16c4329476088b749..9ce5442eea3656ab7a3bf57397c7b25de71829bd 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/SwatchPopoverHelper.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/SwatchPopoverHelper.js
@@ -4,10 +4,10 @@
/**
* @unrestricted
*/
-WebInspector.SwatchPopoverHelper = class extends WebInspector.Object {
+UI.SwatchPopoverHelper = class extends Common.Object {
constructor() {
super();
- this._popover = new WebInspector.Popover();
+ this._popover = new UI.Popover();
this._popover.setCanShrink(false);
this._popover.setNoPadding(true);
this._popover.element.addEventListener('mousedown', (e) => e.consume(), false);
@@ -35,7 +35,7 @@ WebInspector.SwatchPopoverHelper = class extends WebInspector.Object {
}
/**
- * @param {!WebInspector.Widget} view
+ * @param {!UI.Widget} view
* @param {!Element} anchorElement
* @param {function(boolean)=} hiddenCallback
*/
@@ -66,7 +66,7 @@ WebInspector.SwatchPopoverHelper = class extends WebInspector.Object {
this._popover.showView(this._view, this._anchorElement);
this._view.contentElement.addEventListener('focusout', this._boundFocusOut, false);
if (!this._focusRestorer)
- this._focusRestorer = new WebInspector.WidgetFocusRestorer(this._view);
+ this._focusRestorer = new UI.WidgetFocusRestorer(this._view);
}
/**

Powered by Google App Engine
This is Rietveld 408576698