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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 closeWindow: function() | 93 closeWindow: function() |
94 { | 94 { |
95 this._windowVisible = false; | 95 this._windowVisible = false; |
96 }, | 96 }, |
97 | 97 |
98 requestSetDockSide: function(side) | 98 requestSetDockSide: function(side) |
99 { | 99 { |
100 InspectorFrontendAPI.setDockSide(side); | 100 InspectorFrontendAPI.setDockSide(side); |
101 }, | 101 }, |
102 | 102 |
103 setWindowBounds: function(x, y, width, height, callback) | 103 /** |
| 104 * Requests inspected page to be placed atop of the inspector frontend |
| 105 * with passed insets from the frontend sides. |
| 106 * @param {number} top |
| 107 * @param {number} left |
| 108 * @param {number} bottom |
| 109 * @param {number} right |
| 110 */ |
| 111 setContentsInsets: function(top, left, bottom, right) |
104 { | 112 { |
105 callback(); | |
106 }, | 113 }, |
107 | 114 |
108 moveWindowBy: function(x, y) | 115 moveWindowBy: function(x, y) |
109 { | 116 { |
110 }, | 117 }, |
111 | 118 |
112 setInjectedScriptForOrigin: function(origin, script) | 119 setInjectedScriptForOrigin: function(origin, script) |
113 { | 120 { |
114 }, | 121 }, |
115 | 122 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 "bringToFront", | 251 "bringToFront", |
245 "closeWindow", | 252 "closeWindow", |
246 "indexPath", | 253 "indexPath", |
247 "moveWindowBy", | 254 "moveWindowBy", |
248 "openInNewTab", | 255 "openInNewTab", |
249 "removeFileSystem", | 256 "removeFileSystem", |
250 "requestFileSystems", | 257 "requestFileSystems", |
251 "requestSetDockSide", | 258 "requestSetDockSide", |
252 "save", | 259 "save", |
253 "searchInPath", | 260 "searchInPath", |
254 "setWindowBounds", | 261 "setContentsInsets", |
255 "stopIndexing" | 262 "stopIndexing" |
256 ]; | 263 ]; |
257 | 264 |
258 for (var i = 0; i < methodList.length; ++i) | 265 for (var i = 0; i < methodList.length; ++i) |
259 InspectorFrontendHost[methodList[i]] = dispatchMethodByName.bind(null, m
ethodList[i]); | 266 InspectorFrontendHost[methodList[i]] = dispatchMethodByName.bind(null, m
ethodList[i]); |
260 } | 267 } |
261 | 268 |
262 /** | 269 /** |
263 * @constructor | 270 * @constructor |
264 * @extends {WebInspector.HelpScreen} | 271 * @extends {WebInspector.HelpScreen} |
265 */ | 272 */ |
266 WebInspector.RemoteDebuggingTerminatedScreen = function(reason) | 273 WebInspector.RemoteDebuggingTerminatedScreen = function(reason) |
267 { | 274 { |
268 WebInspector.HelpScreen.call(this, WebInspector.UIString("Detached from the
target")); | 275 WebInspector.HelpScreen.call(this, WebInspector.UIString("Detached from the
target")); |
269 var p = this.contentElement.createChild("p"); | 276 var p = this.contentElement.createChild("p"); |
270 p.classList.add("help-section"); | 277 p.classList.add("help-section"); |
271 p.createChild("span").textContent = "Remote debugging has been terminated wi
th reason: "; | 278 p.createChild("span").textContent = "Remote debugging has been terminated wi
th reason: "; |
272 p.createChild("span", "error-message").textContent = reason; | 279 p.createChild("span", "error-message").textContent = reason; |
273 p.createChild("br"); | 280 p.createChild("br"); |
274 p.createChild("span").textContent = "Please re-attach to the new target."; | 281 p.createChild("span").textContent = "Please re-attach to the new target."; |
275 } | 282 } |
276 | 283 |
277 WebInspector.RemoteDebuggingTerminatedScreen.prototype = { | 284 WebInspector.RemoteDebuggingTerminatedScreen.prototype = { |
278 __proto__: WebInspector.HelpScreen.prototype | 285 __proto__: WebInspector.HelpScreen.prototype |
279 } | 286 } |
OLD | NEW |