OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 /** |
| 6 * @interface |
| 7 */ |
| 8 function InspectorAppHostAPI() |
| 9 { |
| 10 } |
| 11 |
| 12 InspectorAppHostAPI.prototype = { |
| 13 /** |
| 14 * @param {!Window} window |
| 15 */ |
| 16 inspectorAppWindowLoaded: function(window) { }, |
| 17 |
| 18 beforeInspectorAppLoad: function() { }, |
| 19 |
| 20 afterInspectorAppLoad: function() { } |
| 21 } |
| 22 |
| 23 /** |
| 24 * @type {!InspectorAppHostAPI} |
| 25 */ |
| 26 var InspectorAppHost; |
| 27 |
| 28 /** |
| 29 * @suppressGlobalPropertiesCheck |
| 30 */ |
| 31 (function() |
| 32 { |
| 33 if (window.parent !== window) { |
| 34 InspectorAppHost = window.parent.InspectorAppHost; |
| 35 InspectorAppHost.inspectorAppWindowLoaded(window); |
| 36 } |
| 37 })(); |
OLD | NEW |