| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 * @param {number} requestId | 174 * @param {number} requestId |
| 175 * @param {string} fileSystemPath | 175 * @param {string} fileSystemPath |
| 176 * @param {!Array.<string>} files | 176 * @param {!Array.<string>} files |
| 177 */ | 177 */ |
| 178 searchCompleted: function(requestId, fileSystemPath, files) | 178 searchCompleted: function(requestId, fileSystemPath, files) |
| 179 { | 179 { |
| 180 WebInspector.fileSystemWorkspaceBinding.searchCompleted(requestId, fileS
ystemPath, files); | 180 WebInspector.fileSystemWorkspaceBinding.searchCompleted(requestId, fileS
ystemPath, files); |
| 181 }, | 181 }, |
| 182 | 182 |
| 183 /** | 183 /** |
| 184 * @param {!InspectorFrontendAPI.ForwardedKeyboardEvent} event |
| 185 */ |
| 186 keyEventUnhandled: function(event) |
| 187 { |
| 188 InspectorFrontendAPI._runOnceLoaded(function() { |
| 189 WebInspector.forwardedEventHandler.keyEventReceived(event.type, even
t.keyIdentifier, event.keyCode, event.modifiers); |
| 190 }); |
| 191 }, |
| 192 |
| 193 /** |
| 184 * @param {string} url | 194 * @param {string} url |
| 185 */ | 195 */ |
| 186 savedURL: function(url) | 196 savedURL: function(url) |
| 187 { | 197 { |
| 188 WebInspector.fileManager.savedURL(url); | 198 WebInspector.fileManager.savedURL(url); |
| 189 }, | 199 }, |
| 190 | 200 |
| 191 /** | 201 /** |
| 192 * @param {string} url | 202 * @param {string} url |
| 193 */ | 203 */ |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 _runOnceLoaded: function(command) | 275 _runOnceLoaded: function(command) |
| 266 { | 276 { |
| 267 if (InspectorFrontendAPI._isLoaded) { | 277 if (InspectorFrontendAPI._isLoaded) { |
| 268 command(); | 278 command(); |
| 269 return; | 279 return; |
| 270 } | 280 } |
| 271 InspectorFrontendAPI._pendingCommands.push(command); | 281 InspectorFrontendAPI._pendingCommands.push(command); |
| 272 } | 282 } |
| 273 } | 283 } |
| 274 | 284 |
| 285 /** @typedef {!Object.<{type: string, keyCode: (number|undefined), keyIdentifier
: (string|undefined), modifiers: (number|undefined)}>} */ |
| 286 InspectorFrontendAPI.ForwardedKeyboardEvent; |
| 287 |
| 275 function onMessageFromOpener(event) | 288 function onMessageFromOpener(event) |
| 276 { | 289 { |
| 277 if (event.source === window.opener) | 290 if (event.source === window.opener) |
| 278 InspectorFrontendAPI._dispatch(event.data); | 291 InspectorFrontendAPI._dispatch(event.data); |
| 279 } | 292 } |
| 280 | 293 |
| 281 if (window.opener && window.dispatchStandaloneTestRunnerMessages) | 294 if (window.opener && window.dispatchStandaloneTestRunnerMessages) |
| 282 window.addEventListener("message", onMessageFromOpener, true); | 295 window.addEventListener("message", onMessageFromOpener, true); |
| OLD | NEW |