| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 inspectedURLChanged: function(url) | 393 inspectedURLChanged: function(url) |
| 394 { | 394 { |
| 395 document.title = WebInspector.UIString("Developer Tools - %s", url); | 395 document.title = WebInspector.UIString("Developer Tools - %s", url); |
| 396 }, | 396 }, |
| 397 | 397 |
| 398 /** | 398 /** |
| 399 * @param {string} text | 399 * @param {string} text |
| 400 */ | 400 */ |
| 401 copyText: function(text) | 401 copyText: function(text) |
| 402 { | 402 { |
| 403 WebInspector.console.addErrorMessage("Clipboard is not enabled in hosted
mode. Please inspect using chrome://inspect", true); | 403 WebInspector.console.error("Clipboard is not enabled in hosted mode. Ple
ase inspect using chrome://inspect"); |
| 404 }, | 404 }, |
| 405 | 405 |
| 406 /** | 406 /** |
| 407 * @param {string} url | 407 * @param {string} url |
| 408 */ | 408 */ |
| 409 openInNewTab: function(url) | 409 openInNewTab: function(url) |
| 410 { | 410 { |
| 411 window.open(url, "_blank"); | 411 window.open(url, "_blank"); |
| 412 }, | 412 }, |
| 413 | 413 |
| 414 /** | 414 /** |
| 415 * @param {string} url | 415 * @param {string} url |
| 416 * @param {string} content | 416 * @param {string} content |
| 417 * @param {boolean} forceSaveAs | 417 * @param {boolean} forceSaveAs |
| 418 */ | 418 */ |
| 419 save: function(url, content, forceSaveAs) | 419 save: function(url, content, forceSaveAs) |
| 420 { | 420 { |
| 421 WebInspector.console.addErrorMessage("Saving files is not enabled in hos
ted mode. Please inspect using chrome://inspect", true); | 421 WebInspector.console.error("Saving files is not enabled in hosted mode.
Please inspect using chrome://inspect"); |
| 422 this.events.dispatchEventToListeners(InspectorFrontendHostAPI.Events.Can
celedSaveURL, url); | 422 this.events.dispatchEventToListeners(InspectorFrontendHostAPI.Events.Can
celedSaveURL, url); |
| 423 }, | 423 }, |
| 424 | 424 |
| 425 /** | 425 /** |
| 426 * @param {string} url | 426 * @param {string} url |
| 427 * @param {string} content | 427 * @param {string} content |
| 428 */ | 428 */ |
| 429 append: function(url, content) | 429 append: function(url, content) |
| 430 { | 430 { |
| 431 WebInspector.console.addErrorMessage("Saving files is not enabled in hos
ted mode. Please inspect using chrome://inspect", true); | 431 WebInspector.console.error("Saving files is not enabled in hosted mode.
Please inspect using chrome://inspect"); |
| 432 }, | 432 }, |
| 433 | 433 |
| 434 /** | 434 /** |
| 435 * @param {string} message | 435 * @param {string} message |
| 436 */ | 436 */ |
| 437 sendMessageToBackend: function(message) | 437 sendMessageToBackend: function(message) |
| 438 { | 438 { |
| 439 }, | 439 }, |
| 440 | 440 |
| 441 /** | 441 /** |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 * @param {number} id | 697 * @param {number} id |
| 698 * @param {?string} error | 698 * @param {?string} error |
| 699 */ | 699 */ |
| 700 embedderMessageAck: function(id, error) | 700 embedderMessageAck: function(id, error) |
| 701 { | 701 { |
| 702 InspectorFrontendHost["embedderMessageAck"](id, error); | 702 InspectorFrontendHost["embedderMessageAck"](id, error); |
| 703 } | 703 } |
| 704 } | 704 } |
| 705 | 705 |
| 706 var InspectorFrontendAPI = new InspectorFrontendAPIImpl(); | 706 var InspectorFrontendAPI = new InspectorFrontendAPIImpl(); |
| OLD | NEW |