OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 } | 532 } |
533 | 533 |
534 var shortcutL = shortcut.makeDescriptor("l", WebInspector.KeyboardShortc
ut.Modifiers.Ctrl); | 534 var shortcutL = shortcut.makeDescriptor("l", WebInspector.KeyboardShortc
ut.Modifiers.Ctrl); |
535 this._shortcuts[shortcutL.key] = this._requestClearMessages.bind(this); | 535 this._shortcuts[shortcutL.key] = this._requestClearMessages.bind(this); |
536 | 536 |
537 var shortcutM = shortcut.makeDescriptor("m", WebInspector.KeyboardShortc
ut.Modifiers.CtrlOrMeta | WebInspector.KeyboardShortcut.Modifiers.Shift); | 537 var shortcutM = shortcut.makeDescriptor("m", WebInspector.KeyboardShortc
ut.Modifiers.CtrlOrMeta | WebInspector.KeyboardShortcut.Modifiers.Shift); |
538 this._shortcuts[shortcutM.key] = this._dumpMemory.bind(this); | 538 this._shortcuts[shortcutM.key] = this._dumpMemory.bind(this); |
539 | 539 |
540 var section = WebInspector.shortcutsScreen.section(WebInspector.UIString
("Console")); | 540 var section = WebInspector.shortcutsScreen.section(WebInspector.UIString
("Console")); |
541 var keys = WebInspector.isMac() ? [ shortcutK.name, shortcutL.name ] : [
shortcutL.name ]; | 541 var keys = WebInspector.isMac() ? [ shortcutK.name, shortcutL.name ] : [
shortcutL.name ]; |
542 section.addAlternateKeys(keys, WebInspector.UIString("Clear Console")); | 542 section.addAlternateKeys(keys, WebInspector.UIString("Clear console")); |
543 | 543 |
544 keys = [ | 544 keys = [ |
545 shortcut.shortcutToString(shortcut.Keys.Tab), | 545 shortcut.shortcutToString(shortcut.Keys.Tab), |
546 shortcut.shortcutToString(shortcut.Keys.Tab, shortcut.Modifiers.Shif
t) | 546 shortcut.shortcutToString(shortcut.Keys.Tab, shortcut.Modifiers.Shif
t) |
547 ]; | 547 ]; |
548 section.addRelatedKeys(keys, WebInspector.UIString("Next/previous sugges
tion")); | 548 section.addRelatedKeys(keys, WebInspector.UIString("Next/previous sugges
tion")); |
549 section.addKey(shortcut.shortcutToString(shortcut.Keys.Right), WebInspec
tor.UIString("Accept suggestion")); | 549 section.addKey(shortcut.shortcutToString(shortcut.Keys.Right), WebInspec
tor.UIString("Accept suggestion")); |
550 keys = [ | 550 keys = [ |
551 shortcut.shortcutToString(shortcut.Keys.Down), | 551 shortcut.shortcutToString(shortcut.Keys.Down), |
552 shortcut.shortcutToString(shortcut.Keys.Up) | 552 shortcut.shortcutToString(shortcut.Keys.Up) |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 | 852 |
853 /** | 853 /** |
854 * @type {?WebInspector.ConsoleView} | 854 * @type {?WebInspector.ConsoleView} |
855 */ | 855 */ |
856 WebInspector.consoleView = null; | 856 WebInspector.consoleView = null; |
857 | 857 |
858 WebInspector.ConsoleMessage.create = function(source, level, message, type, url,
line, repeatCount, parameters, stackTrace, request) | 858 WebInspector.ConsoleMessage.create = function(source, level, message, type, url,
line, repeatCount, parameters, stackTrace, request) |
859 { | 859 { |
860 return new WebInspector.ConsoleMessageImpl(source, level, message, WebInspec
tor.consoleView._linkifier, type, url, line, repeatCount, parameters, stackTrace
, request); | 860 return new WebInspector.ConsoleMessageImpl(source, level, message, WebInspec
tor.consoleView._linkifier, type, url, line, repeatCount, parameters, stackTrace
, request); |
861 } | 861 } |
OLD | NEW |