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

Unified Diff: third_party/WebKit/Source/devtools/front_end/layer_viewer/TransformController.js

Issue 2623743002: DevTools: extract modules (non-extensions) (Closed)
Patch Set: rebaseline Created 3 years, 11 months 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/layer_viewer/TransformController.js
diff --git a/third_party/WebKit/Source/devtools/front_end/layer_viewer/TransformController.js b/third_party/WebKit/Source/devtools/front_end/layer_viewer/TransformController.js
index b7e5b806dbb1e7cf53b0465a231c257612432a59..b07c5b4dee2b3757f7b08c6dde6c6a4b180d36fd 100644
--- a/third_party/WebKit/Source/devtools/front_end/layer_viewer/TransformController.js
+++ b/third_party/WebKit/Source/devtools/front_end/layer_viewer/TransformController.js
@@ -82,26 +82,21 @@ LayerViewer.TransformController = class extends Common.Object {
}
_registerShortcuts() {
- this._addShortcuts(Components.ShortcutsScreen.LayersPanelShortcuts.ResetView, this.resetAndNotify.bind(this));
+ this._addShortcuts(UI.ShortcutsScreen.LayersPanelShortcuts.ResetView, this.resetAndNotify.bind(this));
this._addShortcuts(
- Components.ShortcutsScreen.LayersPanelShortcuts.PanMode,
+ UI.ShortcutsScreen.LayersPanelShortcuts.PanMode,
this._setMode.bind(this, LayerViewer.TransformController.Modes.Pan));
this._addShortcuts(
- Components.ShortcutsScreen.LayersPanelShortcuts.RotateMode,
+ UI.ShortcutsScreen.LayersPanelShortcuts.RotateMode,
this._setMode.bind(this, LayerViewer.TransformController.Modes.Rotate));
var zoomFactor = 1.1;
+ this._addShortcuts(UI.ShortcutsScreen.LayersPanelShortcuts.ZoomIn, this._onKeyboardZoom.bind(this, zoomFactor));
this._addShortcuts(
- Components.ShortcutsScreen.LayersPanelShortcuts.ZoomIn, this._onKeyboardZoom.bind(this, zoomFactor));
- this._addShortcuts(
- Components.ShortcutsScreen.LayersPanelShortcuts.ZoomOut, this._onKeyboardZoom.bind(this, 1 / zoomFactor));
- this._addShortcuts(
- Components.ShortcutsScreen.LayersPanelShortcuts.Up, this._onKeyboardPanOrRotate.bind(this, 0, -1));
- this._addShortcuts(
- Components.ShortcutsScreen.LayersPanelShortcuts.Down, this._onKeyboardPanOrRotate.bind(this, 0, 1));
- this._addShortcuts(
- Components.ShortcutsScreen.LayersPanelShortcuts.Left, this._onKeyboardPanOrRotate.bind(this, -1, 0));
- this._addShortcuts(
- Components.ShortcutsScreen.LayersPanelShortcuts.Right, this._onKeyboardPanOrRotate.bind(this, 1, 0));
+ UI.ShortcutsScreen.LayersPanelShortcuts.ZoomOut, this._onKeyboardZoom.bind(this, 1 / zoomFactor));
+ this._addShortcuts(UI.ShortcutsScreen.LayersPanelShortcuts.Up, this._onKeyboardPanOrRotate.bind(this, 0, -1));
+ this._addShortcuts(UI.ShortcutsScreen.LayersPanelShortcuts.Down, this._onKeyboardPanOrRotate.bind(this, 0, 1));
+ this._addShortcuts(UI.ShortcutsScreen.LayersPanelShortcuts.Left, this._onKeyboardPanOrRotate.bind(this, -1, 0));
+ this._addShortcuts(UI.ShortcutsScreen.LayersPanelShortcuts.Right, this._onKeyboardPanOrRotate.bind(this, 1, 0));
}
_postChangeEvent() {

Powered by Google App Engine
This is Rietveld 408576698