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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/ForwardedInputEventHandler.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/ForwardedInputEventHandler.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/ForwardedInputEventHandler.js b/third_party/WebKit/Source/devtools/front_end/ui/ForwardedInputEventHandler.js
index 23bee65b2656bf5c20382131398ea149ff95c276..ff6e89ff4c49dc1f899da9d7bc9bd9aa5546827c 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/ForwardedInputEventHandler.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/ForwardedInputEventHandler.js
@@ -4,14 +4,14 @@
/**
* @unrestricted
*/
-WebInspector.ForwardedInputEventHandler = class {
+UI.ForwardedInputEventHandler = class {
constructor() {
InspectorFrontendHost.events.addEventListener(
InspectorFrontendHostAPI.Events.KeyEventUnhandled, this._onKeyEventUnhandled, this);
}
/**
- * @param {!WebInspector.Event} event
+ * @param {!Common.Event} event
*/
_onKeyEventUnhandled(event) {
var data = event.data;
@@ -23,12 +23,12 @@ WebInspector.ForwardedInputEventHandler = class {
if (type !== 'keydown')
return;
- WebInspector.context.setFlavor(
- WebInspector.ShortcutRegistry.ForwardedShortcut, WebInspector.ShortcutRegistry.ForwardedShortcut.instance);
- WebInspector.shortcutRegistry.handleKey(WebInspector.KeyboardShortcut.makeKey(keyCode, modifiers), key);
- WebInspector.context.setFlavor(WebInspector.ShortcutRegistry.ForwardedShortcut, null);
+ UI.context.setFlavor(
+ UI.ShortcutRegistry.ForwardedShortcut, UI.ShortcutRegistry.ForwardedShortcut.instance);
+ UI.shortcutRegistry.handleKey(UI.KeyboardShortcut.makeKey(keyCode, modifiers), key);
+ UI.context.setFlavor(UI.ShortcutRegistry.ForwardedShortcut, null);
}
};
-/** @type {!WebInspector.ForwardedInputEventHandler} */
-WebInspector.forwardedEventHandler = new WebInspector.ForwardedInputEventHandler();
+/** @type {!UI.ForwardedInputEventHandler} */
+UI.forwardedEventHandler = new UI.ForwardedInputEventHandler();

Powered by Google App Engine
This is Rietveld 408576698