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

Side by Side Diff: Source/devtools/front_end/ui/ShortcutRegistry.js

Issue 423433004: DevTools: move the "Capture *" checkboxes from timeline sidebar to the toolbar. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @param {!WebInspector.ActionRegistry} actionRegistry 7 * @param {!WebInspector.ActionRegistry} actionRegistry
8 */ 8 */
9 WebInspector.ShortcutRegistry = function(actionRegistry) 9 WebInspector.ShortcutRegistry = function(actionRegistry)
10 { 10 {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 /** 62 /**
63 * @param {!Array.<string>} actionIds 63 * @param {!Array.<string>} actionIds
64 * @return {!Array.<number>} 64 * @return {!Array.<number>}
65 */ 65 */
66 keysForActions: function(actionIds) 66 keysForActions: function(actionIds)
67 { 67 {
68 var result = []; 68 var result = [];
69 for (var i = 0; i < actionIds.length; ++i) { 69 for (var i = 0; i < actionIds.length; ++i) {
70 var descriptors = this.shortcutDescriptorsForAction(actionIds[i]); 70 var descriptors = this.shortcutDescriptorsForAction(actionIds[i]);
71 for (var j = 0; j < descriptors.length; ++j) 71 for (var j = 0; j < descriptors.length; ++j)
72 result.push(descriptors[j]); 72 result.push(descriptors[j].key);
apavlov 2014/07/25 09:10:10 Seva, was there anything more to your keys-descrip
73 } 73 }
74 return result; 74 return result;
75 }, 75 },
76 76
77 /** 77 /**
78 * @param {!KeyboardEvent} event 78 * @param {!KeyboardEvent} event
79 */ 79 */
80 handleShortcut: function(event) 80 handleShortcut: function(event)
81 { 81 {
82 this.handleKey(WebInspector.KeyboardShortcut.makeKeyFromEvent(event), ev ent.keyIdentifier, event); 82 this.handleKey(WebInspector.KeyboardShortcut.makeKeyFromEvent(event), ev ent.keyIdentifier, event);
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 * @constructor 217 * @constructor
218 */ 218 */
219 WebInspector.ShortcutRegistry.ForwardedShortcut = function() 219 WebInspector.ShortcutRegistry.ForwardedShortcut = function()
220 { 220 {
221 } 221 }
222 222
223 WebInspector.ShortcutRegistry.ForwardedShortcut.instance = new WebInspector.Shor tcutRegistry.ForwardedShortcut(); 223 WebInspector.ShortcutRegistry.ForwardedShortcut.instance = new WebInspector.Shor tcutRegistry.ForwardedShortcut();
224 224
225 /** @type {!WebInspector.ShortcutRegistry} */ 225 /** @type {!WebInspector.ShortcutRegistry} */
226 WebInspector.shortcutRegistry; 226 WebInspector.shortcutRegistry;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698