| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 closeWindow: function() | 75 closeWindow: function() |
| 76 { | 76 { |
| 77 this._windowVisible = false; | 77 this._windowVisible = false; |
| 78 }, | 78 }, |
| 79 | 79 |
| 80 requestSetDockSide: function(side) | 80 requestSetDockSide: function(side) |
| 81 { | 81 { |
| 82 InspectorFrontendAPI.setDockSide(side); | 82 InspectorFrontendAPI.setDockSide(side); |
| 83 }, | 83 }, |
| 84 | 84 |
| 85 setWindowBounds: function(x, y, width, height, callback) | 85 setContentsOffsets: function(left, top, right, bottom, callback) |
| 86 { | 86 { |
| 87 callback(); | 87 callback(); |
| 88 }, | 88 }, |
| 89 | 89 |
| 90 moveWindowBy: function(x, y) | 90 moveWindowBy: function(x, y) |
| 91 { | 91 { |
| 92 }, | 92 }, |
| 93 | 93 |
| 94 setInjectedScriptForOrigin: function(origin, script) | 94 setInjectedScriptForOrigin: function(origin, script) |
| 95 { | 95 { |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 } | 233 } |
| 234 | 234 |
| 235 var message = { "id": callId, "method": methodName }; | 235 var message = { "id": callId, "method": methodName }; |
| 236 if (argsArray.length) | 236 if (argsArray.length) |
| 237 message.params = argsArray; | 237 message.params = argsArray; |
| 238 InspectorFrontendHost.sendMessageToEmbedder(JSON.stringify(message)); | 238 InspectorFrontendHost.sendMessageToEmbedder(JSON.stringify(message)); |
| 239 }; | 239 }; |
| 240 | 240 |
| 241 var methodList = [ "addFileSystem", "append", "bringToFront", "indexPath", "
moveWindowBy", "openInNewTab", | 241 var methodList = [ "addFileSystem", "append", "bringToFront", "indexPath", "
moveWindowBy", "openInNewTab", |
| 242 "removeFileSystem", "requestFileSystems", "requestSetDock
Side", "save", "searchInPath", | 242 "removeFileSystem", "requestFileSystems", "requestSetDock
Side", "save", "searchInPath", |
| 243 "setWindowBounds", "stopIndexing" ]; | 243 "setContentsOffsets", "stopIndexing" ]; |
| 244 | 244 |
| 245 for (var i = 0; i < methodList.length; ++i) | 245 for (var i = 0; i < methodList.length; ++i) |
| 246 InspectorFrontendHost[methodList[i]] = dispatch.bind(null, methodList[i]
); | 246 InspectorFrontendHost[methodList[i]] = dispatch.bind(null, methodList[i]
); |
| 247 } | 247 } |
| 248 | 248 |
| 249 /** | 249 /** |
| 250 * @constructor | 250 * @constructor |
| 251 * @extends {WebInspector.HelpScreen} | 251 * @extends {WebInspector.HelpScreen} |
| 252 */ | 252 */ |
| 253 WebInspector.RemoteDebuggingTerminatedScreen = function(reason) | 253 WebInspector.RemoteDebuggingTerminatedScreen = function(reason) |
| 254 { | 254 { |
| 255 WebInspector.HelpScreen.call(this, WebInspector.UIString("Detached from the
target")); | 255 WebInspector.HelpScreen.call(this, WebInspector.UIString("Detached from the
target")); |
| 256 var p = this.contentElement.createChild("p"); | 256 var p = this.contentElement.createChild("p"); |
| 257 p.addStyleClass("help-section"); | 257 p.addStyleClass("help-section"); |
| 258 p.createChild("span").textContent = "Remote debugging has been terminated wi
th reason: "; | 258 p.createChild("span").textContent = "Remote debugging has been terminated wi
th reason: "; |
| 259 p.createChild("span", "error-message").textContent = reason; | 259 p.createChild("span", "error-message").textContent = reason; |
| 260 p.createChild("br"); | 260 p.createChild("br"); |
| 261 p.createChild("span").textContent = "Please re-attach to the new target."; | 261 p.createChild("span").textContent = "Please re-attach to the new target."; |
| 262 } | 262 } |
| 263 | 263 |
| 264 WebInspector.RemoteDebuggingTerminatedScreen.prototype = { | 264 WebInspector.RemoteDebuggingTerminatedScreen.prototype = { |
| 265 __proto__: WebInspector.HelpScreen.prototype | 265 __proto__: WebInspector.HelpScreen.prototype |
| 266 } | 266 } |
| OLD | NEW |