Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 283 section.addAlternateKeys(WebInspector.shortcutRegistry.shortcutDescriptorsFo rAction("timeline.save-to-file"), WebInspector.UIString("Save timeline data")); | 283 section.addAlternateKeys(WebInspector.shortcutRegistry.shortcutDescriptorsFo rAction("timeline.save-to-file"), WebInspector.UIString("Save timeline data")); |
| 284 section.addAlternateKeys(WebInspector.shortcutRegistry.shortcutDescriptorsFo rAction("timeline.load-from-file"), WebInspector.UIString("Load timeline data")) ; | 284 section.addAlternateKeys(WebInspector.shortcutRegistry.shortcutDescriptorsFo rAction("timeline.load-from-file"), WebInspector.UIString("Load timeline data")) ; |
| 285 section.addRelatedKeys(WebInspector.shortcutRegistry.shortcutDescriptorsForA ction("timeline.jump-to-previous-frame").concat(WebInspector.shortcutRegistry.sh ortcutDescriptorsForAction("timeline.jump-to-next-frame")), WebInspector.UIStrin g("Jump to previous/next frame")); | 285 section.addRelatedKeys(WebInspector.shortcutRegistry.shortcutDescriptorsForA ction("timeline.jump-to-previous-frame").concat(WebInspector.shortcutRegistry.sh ortcutDescriptorsForAction("timeline.jump-to-next-frame")), WebInspector.UIStrin g("Jump to previous/next frame")); |
| 286 | 286 |
| 287 | 287 |
| 288 // Profiles panel | 288 // Profiles panel |
| 289 section = WebInspector.shortcutsScreen.section(WebInspector.UIString("Profil es Panel")); | 289 section = WebInspector.shortcutsScreen.section(WebInspector.UIString("Profil es Panel")); |
| 290 section.addAlternateKeys(WebInspector.shortcutRegistry.shortcutDescriptorsFo rAction("profiler.toggle-recording"), WebInspector.UIString("Start/stop recordin g")); | 290 section.addAlternateKeys(WebInspector.shortcutRegistry.shortcutDescriptorsFo rAction("profiler.toggle-recording"), WebInspector.UIString("Start/stop recordin g")); |
| 291 | 291 |
| 292 // Layers panel | 292 // Layers panel |
| 293 if (Runtime.experiments.isEnabled("layersPanel")) { | 293 section = WebInspector.shortcutsScreen.section(WebInspector.UIString("Layers Panel")); |
|
alph
2016/09/03 09:03:29
Profiler doesn't seem to work.
| |
| 294 section = WebInspector.shortcutsScreen.section(WebInspector.UIString("La yers Panel")); | 294 section.addAlternateKeys(WebInspector.ShortcutsScreen.LayersPanelShortcuts.R esetView, WebInspector.UIString("Reset view")); |
| 295 section.addAlternateKeys(WebInspector.ShortcutsScreen.LayersPanelShortcu ts.ResetView, WebInspector.UIString("Reset view")); | 295 section.addAlternateKeys(WebInspector.ShortcutsScreen.LayersPanelShortcuts.P anMode, WebInspector.UIString("Switch to pan mode")); |
| 296 section.addAlternateKeys(WebInspector.ShortcutsScreen.LayersPanelShortcu ts.PanMode, WebInspector.UIString("Switch to pan mode")); | 296 section.addAlternateKeys(WebInspector.ShortcutsScreen.LayersPanelShortcuts.R otateMode, WebInspector.UIString("Switch to rotate mode")); |
| 297 section.addAlternateKeys(WebInspector.ShortcutsScreen.LayersPanelShortcu ts.RotateMode, WebInspector.UIString("Switch to rotate mode")); | 297 section.addAlternateKeys(WebInspector.ShortcutsScreen.LayersPanelShortcuts.T ogglePanRotate, WebInspector.UIString("Temporarily toggle pan/rotate mode while held")); |
| 298 section.addAlternateKeys(WebInspector.ShortcutsScreen.LayersPanelShortcu ts.TogglePanRotate, WebInspector.UIString("Temporarily toggle pan/rotate mode wh ile held")); | 298 section.addAlternateKeys(WebInspector.ShortcutsScreen.LayersPanelShortcuts.Z oomIn, WebInspector.UIString("Zoom in")); |
| 299 section.addAlternateKeys(WebInspector.ShortcutsScreen.LayersPanelShortcu ts.ZoomIn, WebInspector.UIString("Zoom in")); | 299 section.addAlternateKeys(WebInspector.ShortcutsScreen.LayersPanelShortcuts.Z oomOut, WebInspector.UIString("Zoom out")); |
| 300 section.addAlternateKeys(WebInspector.ShortcutsScreen.LayersPanelShortcu ts.ZoomOut, WebInspector.UIString("Zoom out")); | 300 section.addRelatedKeys(WebInspector.ShortcutsScreen.LayersPanelShortcuts.Up. concat(WebInspector.ShortcutsScreen.LayersPanelShortcuts.Down), WebInspector.UIS tring("Pan or rotate up/down")); |
| 301 section.addRelatedKeys(WebInspector.ShortcutsScreen.LayersPanelShortcuts .Up.concat(WebInspector.ShortcutsScreen.LayersPanelShortcuts.Down), WebInspector .UIString("Pan or rotate up/down")); | 301 section.addRelatedKeys(WebInspector.ShortcutsScreen.LayersPanelShortcuts.Lef t.concat(WebInspector.ShortcutsScreen.LayersPanelShortcuts.Right), WebInspector. UIString("Pan or rotate left/right")); |
| 302 section.addRelatedKeys(WebInspector.ShortcutsScreen.LayersPanelShortcuts .Left.concat(WebInspector.ShortcutsScreen.LayersPanelShortcuts.Right), WebInspec tor.UIString("Pan or rotate left/right")); | |
| 303 } | |
| 304 } | 302 } |
| 305 | 303 |
| 306 WebInspector.ShortcutsScreen.ElementsPanelShortcuts = { | 304 WebInspector.ShortcutsScreen.ElementsPanelShortcuts = { |
| 307 NavigateUp: [ | 305 NavigateUp: [ |
| 308 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Up) | 306 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Up) |
| 309 ], | 307 ], |
| 310 | 308 |
| 311 NavigateDown: [ | 309 NavigateDown: [ |
| 312 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Down) | 310 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Down) |
| 313 ], | 311 ], |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 500 Left: [ | 498 Left: [ |
| 501 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Left), | 499 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Left), |
| 502 WebInspector.KeyboardShortcut.makeDescriptor("a") | 500 WebInspector.KeyboardShortcut.makeDescriptor("a") |
| 503 ], | 501 ], |
| 504 | 502 |
| 505 Right: [ | 503 Right: [ |
| 506 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Right), | 504 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Right), |
| 507 WebInspector.KeyboardShortcut.makeDescriptor("d") | 505 WebInspector.KeyboardShortcut.makeDescriptor("d") |
| 508 ] | 506 ] |
| 509 } | 507 } |
| OLD | NEW |