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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/HistoryInput.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/HistoryInput.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/HistoryInput.js b/third_party/WebKit/Source/devtools/front_end/ui/HistoryInput.js
index d4ef3300482b6700688e5c63dec4ad33c80cd587..bdf69f61c05597acdfae8ed8dfa8ccfc9bf7be1b 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/HistoryInput.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/HistoryInput.js
@@ -4,20 +4,20 @@
/**
* @unrestricted
*/
-WebInspector.HistoryInput = class extends HTMLInputElement {
+UI.HistoryInput = class extends HTMLInputElement {
constructor() {
super();
}
/**
- * @return {!WebInspector.HistoryInput}
+ * @return {!UI.HistoryInput}
*/
static create() {
- if (!WebInspector.HistoryInput._constructor)
- WebInspector.HistoryInput._constructor =
- registerCustomElement('input', 'history-input', WebInspector.HistoryInput.prototype);
+ if (!UI.HistoryInput._constructor)
+ UI.HistoryInput._constructor =
+ registerCustomElement('input', 'history-input', UI.HistoryInput.prototype);
- return /** @type {!WebInspector.HistoryInput} */ (new WebInspector.HistoryInput._constructor());
+ return /** @type {!UI.HistoryInput} */ (new UI.HistoryInput._constructor());
}
/**
@@ -42,17 +42,17 @@ WebInspector.HistoryInput = class extends HTMLInputElement {
* @param {!Event} event
*/
_onKeyDown(event) {
- if (event.keyCode === WebInspector.KeyboardShortcut.Keys.Up.code) {
+ if (event.keyCode === UI.KeyboardShortcut.Keys.Up.code) {
this._historyPosition = Math.max(this._historyPosition - 1, 0);
this.value = this._history[this._historyPosition];
this.dispatchEvent(new Event('input', {'bubbles': true, 'cancelable': true}));
event.consume(true);
- } else if (event.keyCode === WebInspector.KeyboardShortcut.Keys.Down.code) {
+ } else if (event.keyCode === UI.KeyboardShortcut.Keys.Down.code) {
this._historyPosition = Math.min(this._historyPosition + 1, this._history.length - 1);
this.value = this._history[this._historyPosition];
this.dispatchEvent(new Event('input', {'bubbles': true, 'cancelable': true}));
event.consume(true);
- } else if (event.keyCode === WebInspector.KeyboardShortcut.Keys.Enter.code) {
+ } else if (event.keyCode === UI.KeyboardShortcut.Keys.Enter.code) {
this._saveToHistory();
}
}

Powered by Google App Engine
This is Rietveld 408576698