OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 return WebInspector.ConsoleMessage.MessageLevel.Error; | 410 return WebInspector.ConsoleMessage.MessageLevel.Error; |
411 case WebInspector.extensionAPI.console.Severity.Debug: | 411 case WebInspector.extensionAPI.console.Severity.Debug: |
412 return WebInspector.ConsoleMessage.MessageLevel.Debug; | 412 return WebInspector.ConsoleMessage.MessageLevel.Debug; |
413 } | 413 } |
414 } | 414 } |
415 var level = convertSeverity(message.severity); | 415 var level = convertSeverity(message.severity); |
416 if (!level) | 416 if (!level) |
417 return this._status.E_BADARG("message.severity", message.severity); | 417 return this._status.E_BADARG("message.severity", message.severity); |
418 | 418 |
419 var consoleMessage = new WebInspector.ConsoleMessage( | 419 var consoleMessage = new WebInspector.ConsoleMessage( |
| 420 WebInspector.console.target(), |
420 WebInspector.ConsoleMessage.MessageSource.JS, | 421 WebInspector.ConsoleMessage.MessageSource.JS, |
421 level, | 422 level, |
422 message.text, | 423 message.text, |
423 WebInspector.ConsoleMessage.MessageType.Log, | 424 WebInspector.ConsoleMessage.MessageType.Log, |
424 message.url, | 425 message.url, |
425 message.line); | 426 message.line); |
426 WebInspector.console.addMessage(consoleMessage); | 427 WebInspector.console.addMessage(consoleMessage); |
427 }, | 428 }, |
428 | 429 |
429 _makeConsoleMessage: function(message) | 430 _makeConsoleMessage: function(message) |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1059 /** | 1060 /** |
1060 * @typedef {{code: string, description: string, details: !Array.<*>}} | 1061 * @typedef {{code: string, description: string, details: !Array.<*>}} |
1061 */ | 1062 */ |
1062 WebInspector.ExtensionStatus.Record; | 1063 WebInspector.ExtensionStatus.Record; |
1063 | 1064 |
1064 WebInspector.extensionAPI = {}; | 1065 WebInspector.extensionAPI = {}; |
1065 defineCommonExtensionSymbols(WebInspector.extensionAPI); | 1066 defineCommonExtensionSymbols(WebInspector.extensionAPI); |
1066 | 1067 |
1067 importScript("ExtensionPanel.js"); | 1068 importScript("ExtensionPanel.js"); |
1068 importScript("ExtensionView.js"); | 1069 importScript("ExtensionView.js"); |
OLD | NEW |