Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: lib/inspectorObserver.js

Issue 29323107: Issue 2816 - Restore Preview functionality (Closed)
Patch Set: Created July 30, 2015, 1:09 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« chrome/content/frameScript.js ('K') | « lib/aardvark.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This Source Code is subject to the terms of the Mozilla Public License 2 * This Source Code is subject to the terms of the Mozilla Public License
3 * version 2.0 (the "License"). You can obtain a copy of the License at 3 * version 2.0 (the "License"). You can obtain a copy of the License at
4 * http://mozilla.org/MPL/2.0/. 4 * http://mozilla.org/MPL/2.0/.
5 */ 5 */
6 6
7 let InspectorObserver = 7 let InspectorObserver =
8 { 8 {
9 init: function() 9 init: function()
10 { 10 {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 target.client.request({ 58 target.client.request({
59 to: target.form.elemhidehelper, 59 to: target.form.elemhidehelper,
60 type: "nodeinfo", 60 type: "nodeinfo",
61 nodeActor: node.actorID 61 nodeActor: node.actorID
62 }, function(response) 62 }, function(response)
63 { 63 {
64 if (!response.nodeData) 64 if (!response.nodeData)
65 return; 65 return;
66 66
67 panelWindow.openDialog("chrome://elemhidehelper/content/composer.xul", 67 panelWindow.openDialog("chrome://elemhidehelper/content/composer.xul",
68 "_blank", "chrome,centerscreen,resizable,dialog=no", 68 "_blank", "chrome,centerscreen,resizable,dialog=no", response);
69 response.nodeData, response.host);
70 }); 69 });
71 } 70 }
72 }, false); 71 }, false);
73 72
74 //Override button style for light DevTools theme 73 //Override button style for light DevTools theme
75 let style = panelWindow.document.createProcessingInstruction("xml-stylesheet ", 'href="chrome://elemhidehelper/skin/devToolsOverlay.css" type="text/css"'); 74 let style = panelWindow.document.createProcessingInstruction("xml-stylesheet ", 'href="chrome://elemhidehelper/skin/devToolsOverlay.css" type="text/css"');
76 panelWindow.document.insertBefore(style, panelWindow.document.firstChild); 75 panelWindow.document.insertBefore(style, panelWindow.document.firstChild);
77 76
78 inspectBtn.parentNode.insertBefore(button, inspectBtn); 77 inspectBtn.parentNode.insertBefore(button, inspectBtn);
79 } 78 }
80 }; 79 };
81 80
82 InspectorObserver.init(); 81 InspectorObserver.init();
OLDNEW
« chrome/content/frameScript.js ('K') | « lib/aardvark.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld