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

Side by Side Diff: Source/devtools/front_end/SourcesPanelDescriptor.js

Issue 23474010: DevTools: "Jump between editing locations" experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline this patch Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 10 *
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.EvaluateSelectionInConsole, WebInspector.UIString("Evaluate selection in conso le")); 74 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.EvaluateSelectionInConsole, WebInspector.UIString("Evaluate selection in conso le"));
75 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.AddSelectionToWatch, WebInspector.UIString("Add selection to watch")); 75 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.AddSelectionToWatch, WebInspector.UIString("Add selection to watch"));
76 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.GoToMember, WebInspector.UIString("Go to member")); 76 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.GoToMember, WebInspector.UIString("Go to member"));
77 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.ToggleBreakpoint, WebInspector.UIString("Toggle breakpoint")); 77 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.ToggleBreakpoint, WebInspector.UIString("Toggle breakpoint"));
78 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.ToggleComment, WebInspector.UIString("Toggle comment")); 78 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.ToggleComment, WebInspector.UIString("Toggle comment"));
79 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.IncreaseCSSUnitByOne, WebInspector.UIString("Increment CSS unit by 1")); 79 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.IncreaseCSSUnitByOne, WebInspector.UIString("Increment CSS unit by 1"));
80 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.DecreaseCSSUnitByOne, WebInspector.UIString("Decrement CSS unit by 1")); 80 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.DecreaseCSSUnitByOne, WebInspector.UIString("Decrement CSS unit by 1"));
81 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.IncreaseCSSUnitByTen, WebInspector.UIString("Increment CSS unit by 10")); 81 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.IncreaseCSSUnitByTen, WebInspector.UIString("Increment CSS unit by 10"));
82 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.DecreaseCSSUnitByTen, WebInspector.UIString("Decrement CSS unit by 10")); 82 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.DecreaseCSSUnitByTen, WebInspector.UIString("Decrement CSS unit by 10"));
83 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.JumpToPreviousLocation, WebInspector.UIString("Jump to previous editing locati on"));
84 section.addAlternateKeys(WebInspector.SourcesPanelDescriptor.ShortcutKey s.JumpToNextLocation, WebInspector.UIString("Jump to next editing location"));
83 } 85 }
84 } 86 }
85 87
86 WebInspector.SourcesPanelDescriptor.ShortcutKeys = { 88 WebInspector.SourcesPanelDescriptor.ShortcutKeys = {
87 IncreaseCSSUnitByOne: [ 89 IncreaseCSSUnitByOne: [
88 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Up, WebInspector.KeyboardShortcut.Modifiers.Alt) 90 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Up, WebInspector.KeyboardShortcut.Modifiers.Alt)
89 ], 91 ],
90 92
91 DecreaseCSSUnitByOne: [ 93 DecreaseCSSUnitByOne: [
92 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Down, WebInspector.KeyboardShortcut.Modifiers.Alt) 94 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Down, WebInspector.KeyboardShortcut.Modifiers.Alt)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 NextCallFrame: [ 150 NextCallFrame: [
149 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Period, WebInspector.KeyboardShortcut.Modifiers.Ctrl) 151 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Period, WebInspector.KeyboardShortcut.Modifiers.Ctrl)
150 ], 152 ],
151 153
152 PrevCallFrame: [ 154 PrevCallFrame: [
153 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Comma, WebInspector.KeyboardShortcut.Modifiers.Ctrl) 155 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Comma, WebInspector.KeyboardShortcut.Modifiers.Ctrl)
154 ], 156 ],
155 157
156 ToggleComment: [ 158 ToggleComment: [
157 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Slash, WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta) 159 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Slash, WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta)
158 ] 160 ],
161
162 JumpToPreviousLocation: [
163 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Minus, WebInspector.KeyboardShortcut.Modifiers.Alt)
164 ],
165
166 JumpToNextLocation: [
167 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc ut.Keys.Plus, WebInspector.KeyboardShortcut.Modifiers.Alt)
168 ],
159 }; 169 };
OLDNEW
« no previous file with comments | « Source/devtools/front_end/SourcesPanel.js ('k') | Source/devtools/front_end/TabbedEditorContainer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698