Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Side by Side Diff: Source/devtools/front_end/InspectorFrontendHostStub.js

Issue 71633003: DevTools: added "overlayContents" mode, where DevTools content is placed around and underneath inse… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: No-op if no overlayContents Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 closeWindow: function() 74 closeWindow: function()
75 { 75 {
76 this._windowVisible = false; 76 this._windowVisible = false;
77 }, 77 },
78 78
79 requestSetDockSide: function(side) 79 requestSetDockSide: function(side)
80 { 80 {
81 InspectorFrontendAPI.setDockSide(side); 81 InspectorFrontendAPI.setDockSide(side);
82 }, 82 },
83 83
84 setWindowBounds: function(x, y, width, height, callback) 84 setContentsOffsets: function(left, top, right, bottom, callback)
85 { 85 {
86 callback(); 86 if (callback)
pfeldman 2013/12/05 15:44:06 Please annotate.
dgozman 2013/12/06 16:17:13 Done.
87 callback();
87 }, 88 },
88 89
89 moveWindowBy: function(x, y) 90 moveWindowBy: function(x, y)
90 { 91 {
91 }, 92 },
92 93
93 setInjectedScriptForOrigin: function(origin, script) 94 setInjectedScriptForOrigin: function(origin, script)
94 { 95 {
95 }, 96 },
96 97
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 "bringToFront", 245 "bringToFront",
245 "closeWindow", 246 "closeWindow",
246 "indexPath", 247 "indexPath",
247 "moveWindowBy", 248 "moveWindowBy",
248 "openInNewTab", 249 "openInNewTab",
249 "removeFileSystem", 250 "removeFileSystem",
250 "requestFileSystems", 251 "requestFileSystems",
251 "requestSetDockSide", 252 "requestSetDockSide",
252 "save", 253 "save",
253 "searchInPath", 254 "searchInPath",
254 "setWindowBounds", 255 "setContentsOffsets",
255 "stopIndexing" 256 "stopIndexing"
256 ]; 257 ];
257 258
258 for (var i = 0; i < methodList.length; ++i) 259 for (var i = 0; i < methodList.length; ++i)
259 InspectorFrontendHost[methodList[i]] = dispatch.bind(null, methodList[i] ); 260 InspectorFrontendHost[methodList[i]] = dispatch.bind(null, methodList[i] );
260 } 261 }
261 262
262 /** 263 /**
263 * @constructor 264 * @constructor
264 * @extends {WebInspector.HelpScreen} 265 * @extends {WebInspector.HelpScreen}
265 */ 266 */
266 WebInspector.RemoteDebuggingTerminatedScreen = function(reason) 267 WebInspector.RemoteDebuggingTerminatedScreen = function(reason)
267 { 268 {
268 WebInspector.HelpScreen.call(this, WebInspector.UIString("Detached from the target")); 269 WebInspector.HelpScreen.call(this, WebInspector.UIString("Detached from the target"));
269 var p = this.contentElement.createChild("p"); 270 var p = this.contentElement.createChild("p");
270 p.addStyleClass("help-section"); 271 p.addStyleClass("help-section");
271 p.createChild("span").textContent = "Remote debugging has been terminated wi th reason: "; 272 p.createChild("span").textContent = "Remote debugging has been terminated wi th reason: ";
272 p.createChild("span", "error-message").textContent = reason; 273 p.createChild("span", "error-message").textContent = reason;
273 p.createChild("br"); 274 p.createChild("br");
274 p.createChild("span").textContent = "Please re-attach to the new target."; 275 p.createChild("span").textContent = "Please re-attach to the new target.";
275 } 276 }
276 277
277 WebInspector.RemoteDebuggingTerminatedScreen.prototype = { 278 WebInspector.RemoteDebuggingTerminatedScreen.prototype = {
278 __proto__: WebInspector.HelpScreen.prototype 279 __proto__: WebInspector.HelpScreen.prototype
279 } 280 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698