OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 WebInspector.showPanel("resources"); | 94 WebInspector.showPanel("resources"); |
95 }, | 95 }, |
96 | 96 |
97 setDockingUnavailable: function(unavailable) | 97 setDockingUnavailable: function(unavailable) |
98 { | 98 { |
99 WebInspector.setDockingUnavailable(unavailable); | 99 WebInspector.setDockingUnavailable(unavailable); |
100 }, | 100 }, |
101 | 101 |
102 enterInspectElementMode: function() | 102 enterInspectElementMode: function() |
103 { | 103 { |
104 WebInspector.panel("elements").toggleSearchingForNode(); | 104 WebInspector.toggleSearchingForNode(); |
105 }, | 105 }, |
106 | 106 |
107 savedURL: function(url) | 107 savedURL: function(url) |
108 { | 108 { |
109 WebInspector.fileManager.savedURL(url); | 109 WebInspector.fileManager.savedURL(url); |
110 }, | 110 }, |
111 | 111 |
112 appendedToURL: function(url) | 112 appendedToURL: function(url) |
113 { | 113 { |
114 WebInspector.fileManager.appendedToURL(url); | 114 WebInspector.fileManager.appendedToURL(url); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 } | 159 } |
160 | 160 |
161 if (window.opener) { | 161 if (window.opener) { |
162 function onMessageFromOpener(event) | 162 function onMessageFromOpener(event) |
163 { | 163 { |
164 if (event.source === window.opener) | 164 if (event.source === window.opener) |
165 InspectorFrontendAPI.dispatch(event.data); | 165 InspectorFrontendAPI.dispatch(event.data); |
166 } | 166 } |
167 window.addEventListener("message", onMessageFromOpener, true); | 167 window.addEventListener("message", onMessageFromOpener, true); |
168 } | 168 } |
OLD | NEW |